Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp249847ybv; Wed, 12 Feb 2020 23:27:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxczz2CdytTfMBWrFu56HF1zH0+b0dt/XZ4w59m6/twtJgWtEYvcE+fYKA9G6KMBAL9L+k2 X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr12233001otp.306.1581578862257; Wed, 12 Feb 2020 23:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581578862; cv=none; d=google.com; s=arc-20160816; b=eHuXivyn91bXYrNwITZe342G70F+grZWvizHp3uDwfVnOQdLSni1ISx7JiwyXJ1qyX VAQm0DJXwLHXM5ZBrC+d7KzdRpiCSoJLTB+IRrsj77yXqEDLO78QDTUMkCtP8x6bzBwA ip/zkamPf6/6dAWI7HwDRJ7lOsQaqP1vKTB8e0m7bWqgHjZuvjr5Y8VB12am2K/hTS9e Hf0sdLj+SdbNxTK3KB4qLN2D1JrBZ6yD4zSyWXbU9hfgI/H/bDc6IC0ATHbP4E1O0m+l c1d5PkhOvAqQ5ie4UADYs1XANjUE9QXgHTSoeDbIcjCQL5jA9srSJePGLNWPhiv5f1EY bPwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=rbVNOBH2DkGKs97t2XK5cFW6lt+3lYfrrtYG/ZeiBGY=; b=OX8NomzvBLrCG6t/3nAS2U4iFs6KMxpD64bTip/8nIKv+oWXzhfA6OfcfP2tmOWABh oXuUx0xgLgxECnZG+Yc7VcFjktACPCVBzk8iynTm/jlH91j5RO9kiqFPaVT+isK54X+O opEWKwp58AE1xSWQxzmGzEV6mIYrDxkhhc1S7Pt3LfKuq+UQLV2OIf9QVnPuxLGon+ux 4sIgk+OK6j/tEF+DIsA5CjsQSvjGN4GZue6sBVhlBog7rPwOnjVFAw6GzDvrqFqszsLp 5hxzzUSAYGZJF1gwEHt/G8qk3VTO5lCw+H48sHCxCcKfq/RIqbNypmAi8+/1wyKJhVxN TAqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si699074otp.124.2020.02.12.23.27.29; Wed, 12 Feb 2020 23:27:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729845AbgBMH1S (ORCPT + 99 others); Thu, 13 Feb 2020 02:27:18 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:40163 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729735AbgBMH1S (ORCPT ); Thu, 13 Feb 2020 02:27:18 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j28u0-0005XO-CY; Thu, 13 Feb 2020 08:27:12 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j28ty-0007vn-A1; Thu, 13 Feb 2020 08:27:10 +0100 Date: Thu, 13 Feb 2020 08:27:10 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Anson Huang Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH] ARM: dts: imx6sx: Add missing uart mux function Message-ID: <20200213072710.4snwbo3i7vfbroqy@pengutronix.de> References: <1581576189-20490-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1581576189-20490-1-git-send-email-Anson.Huang@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 13, 2020 at 02:43:09PM +0800, Anson Huang wrote: > From: Anson Huang > > Update i.MX6SX pinfunc header to add uart mux function. I'm aware you add the macros in a consistent way to the already existing stuff. Still I think there is something to improve here. We now have definitions like: MX6SX_PAD_GPIO1_IO06__UART1_RTS_B MX6SX_PAD_GPIO1_IO06__UART1_CTS_B MX6SX_PAD_GPIO1_IO07__UART1_CTS_B MX6SX_PAD_GPIO1_IO07__UART1_RTS_B where (ignoring other pins that could be used) only the following combinations are valid: MX6SX_PAD_GPIO1_IO04__UART1_TX MX6SX_PAD_GPIO1_IO05__UART1_RX MX6SX_PAD_GPIO1_IO06__UART1_RTS_B MX6SX_PAD_GPIO1_IO07__UART1_CTS_B (in DCE mode) and MX6SX_PAD_GPIO1_IO04__UART1_RX MX6SX_PAD_GPIO1_IO05__UART1_TX MX6SX_PAD_GPIO1_IO06__UART1_CTS_B MX6SX_PAD_GPIO1_IO07__UART1_RTS_B (in DTE mode). For i.MX6SLL, i.MX6UL, imx6ULL and i.MX7 the naming convention is saner, a typical definition there is: MX7D_PAD_LPSR_GPIO1_IO04__UART5_DTE_RTS where the name includes DTE and where is it (more) obvious that this cannot be combined with MX7D_PAD_LPSR_GPIO1_IO07__UART5_DCE_TX . I suggest to adapt the latter naming convention also for the other i.MX pinfunc headers, probably with introducing defines for not breaking existing dts files. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |