Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4517366ybv; Mon, 17 Feb 2020 00:25:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxVtXosBfxsO1sdGsqbHuocrWolkgvgy0T9nWQg7eovPUc+pdaj4esJVwI5ZybEGj6oB/Xl X-Received: by 2002:a9d:6290:: with SMTP id x16mr10848210otk.343.1581927938175; Mon, 17 Feb 2020 00:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581927938; cv=none; d=google.com; s=arc-20160816; b=0bqcbihri7Td1X7DhztSv/BdzuRQUt+oetbpLktXEHjJrt6tOBhNxFXsj9qVefukyR LYiQRwVdmdzylkPUtGz7veXNzpnu9cK/yc4w0zl5BSN9BEXNeMW81yTWgtZjfpWyMbxZ 5gucbMibz7Yp83EFUNJU5KphiM5a7nMNlm2y7XRVA6oiPiNsN/4Q5Y2/o8bQ+BH3MU3p fIvkCRFtvxqP1nqXpKrI5f/EBoiSEKwBgRNqQ4pZ3fFjRhjcI1mpnX78RSywG4kAJAtl Y+PhKu+tjMC6PmdDd6917tPdLlwXAQvpVNe6VbaZgietqcj4jwBgpIbMlJulAA4Qr5lA 1E0A== 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=uUAa3G8IYRbMH6XzjApM4VUGyxOPUMFrWX/ZcuSsano=; b=pIvrzCpApjZQRVA3W+6fauxeIYM5XtDE2ViBxG9DLspS5JsSU+/hJ5isdA7HJWga1f /01s3Rtjw1kJ04Eu3oFLwVM7tCdCs1bkUCjb3eWiRKUnnTPwsPlRRpKu3c6o75zTGpgk dMC3PYa0+S2lxDYNwo5oD8XvfYNKMDP8QfK7FUJV0ajVf3zndsa6SPJbew9zdnmi14wB fXJpd1hpD83EDBdvEZCrTMpoIpkT+bdBwy2lpsmpPkpnXwYYJAhfl+HyliJ4c96ELOmL 0AqQCWSGe/Y/mVbnUPQCGI9IMqwddloCTB/ygRWXK3T0ijMIk0nTu0ItAW2TGyAuJ0jj z85Q== 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 l19si5946481oii.54.2020.02.17.00.25.26; Mon, 17 Feb 2020 00:25:38 -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 S1728204AbgBQIX4 (ORCPT + 99 others); Mon, 17 Feb 2020 03:23:56 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58507 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbgBQIX4 (ORCPT ); Mon, 17 Feb 2020 03:23:56 -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 1j3bh0-0004ma-Ne; Mon, 17 Feb 2020 09:23:50 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j3bh0-000772-9G; Mon, 17 Feb 2020 09:23:50 +0100 Date: Mon, 17 Feb 2020 09:23:50 +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 V2 1/7] ARM: dts: imx6sx: Improve UART pins macro defines Message-ID: <20200217082350.o4jjnoslptv74fh6@pengutronix.de> References: <1581743758-4475-1-git-send-email-Anson.Huang@nxp.com> <1581743758-4475-2-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: <1581743758-4475-2-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 Hello Anson, On Sat, Feb 15, 2020 at 01:15:52PM +0800, Anson Huang wrote: > Add DCE/DTE to UART pins macro defines to distinguish the > DCE and DTE functions, keep old defines at the end of file > for some time to make it backward compatible. > > Signed-off-by: Anson Huang Please squash the following diff into your patch: diff --git a/arch/arm/boot/dts/imx6sx-pinfunc.h b/arch/arm/boot/dts/imx6sx-pinfunc.h index 738a0000f212..9814db090487 100644 --- a/arch/arm/boot/dts/imx6sx-pinfunc.h +++ b/arch/arm/boot/dts/imx6sx-pinfunc.h @@ -1016,8 +1016,8 @@ #define MX6SX_PAD_QSPI1B_SCLK__WEIM_DATA_8 0x01B4 0x04FC 0x0000 0x6 0x0 #define MX6SX_PAD_QSPI1B_SCLK__SIM_M_HADDR_11 0x01B4 0x04FC 0x0000 0x7 0x0 #define MX6SX_PAD_QSPI1B_SS0_B__QSPI1_B_SS0_B 0x01B8 0x0500 0x0000 0x0 0x0 -#define MX6SX_PAD_QSPI1B_SS0_B__UART3_DTE_RX 0x01B8 0x0500 0x0840 0x1 0x5 #define MX6SX_PAD_QSPI1B_SS0_B__UART3_DCE_TX 0x01B8 0x0500 0x0000 0x1 0x0 +#define MX6SX_PAD_QSPI1B_SS0_B__UART3_DTE_RX 0x01B8 0x0500 0x0840 0x1 0x5 #define MX6SX_PAD_QSPI1B_SS0_B__ECSPI3_SS0 0x01B8 0x0500 0x073C 0x2 0x1 #define MX6SX_PAD_QSPI1B_SS0_B__ESAI_TX_HF_CLK 0x01B8 0x0500 0x0784 0x3 0x3 #define MX6SX_PAD_QSPI1B_SS0_B__CSI1_DATA_17 0x01B8 0x0500 0x06E0 0x4 0x1 @@ -1334,8 +1334,8 @@ #define MX6SX_PAD_SD3_CLK__TPSMP_HDATA_29 0x0250 0x0598 0x0000 0x7 0x0 #define MX6SX_PAD_SD3_CLK__SDMA_DEBUG_EVENT_CHANNEL_5 0x0250 0x0598 0x0000 0x9 0x0 #define MX6SX_PAD_SD3_CMD__USDHC3_CMD 0x0254 0x059C 0x0000 0x0 0x0 -#define MX6SX_PAD_SD3_CMD__UART4_DTE_RX 0x0254 0x059C 0x0848 0x1 0x0 #define MX6SX_PAD_SD3_CMD__UART4_DCE_TX 0x0254 0x059C 0x0000 0x1 0x0 +#define MX6SX_PAD_SD3_CMD__UART4_DTE_RX 0x0254 0x059C 0x0848 0x1 0x0 #define MX6SX_PAD_SD3_CMD__ECSPI4_MOSI 0x0254 0x059C 0x0748 0x2 0x0 #define MX6SX_PAD_SD3_CMD__AUDMUX_AUD6_RXC 0x0254 0x059C 0x067C 0x3 0x0 #define MX6SX_PAD_SD3_CMD__LCDIF2_HSYNC 0x0254 0x059C 0x07E4 0x4 0x1 @@ -1621,11 +1621,11 @@ #define MX6SX_PAD_SD2_DATA3__UART6_RX MX6SX_PAD_SD2_DATA3__UART6_DTE_RX #define MX6SX_PAD_SD2_DATA3__UART6_TX MX6SX_PAD_SD2_DATA3__UART6_DCE_TX #define MX6SX_PAD_SD3_CLK__UART4_CTS_B MX6SX_PAD_SD3_CLK__UART4_DCE_CTS +#define MX6SX_PAD_SD3_CMD__UART4_RX MX6SX_PAD_SD3_CMD__UART4_DTE_RX +#define MX6SX_PAD_SD3_CMD__UART4_TX MX6SX_PAD_SD3_CMD__UART4_DCE_TX #define MX6SX_PAD_SD3_DATA2__UART4_RTS_B MX6SX_PAD_SD3_DATA2__UART4_DCE_RTS #define MX6SX_PAD_SD3_DATA3__UART4_RX MX6SX_PAD_SD3_DATA3__UART4_DCE_RX #define MX6SX_PAD_SD3_DATA3__UART4_TX MX6SX_PAD_SD3_DATA3__UART4_DTE_TX -#define MX6SX_PAD_SD3_CMD__UART4_RX MX6SX_PAD_SD3_CMD__UART4_DTE_RX -#define MX6SX_PAD_SD3_CMD__UART4_TX MX6SX_PAD_SD3_CMD__UART4_DCE_TX #define MX6SX_PAD_SD3_DATA4__UART3_RX MX6SX_PAD_SD3_DATA4__UART3_DCE_RX #define MX6SX_PAD_SD3_DATA4__UART3_TX MX6SX_PAD_SD3_DATA4__UART3_DTE_TX #define MX6SX_PAD_SD3_DATA5__UART3_RX MX6SX_PAD_SD3_DATA5__UART3_DTE_RX @@ -1636,7 +1636,7 @@ #define MX6SX_PAD_SD4_DATA4__UART5_TX MX6SX_PAD_SD4_DATA4__UART5_DTE_TX #define MX6SX_PAD_SD4_DATA5__UART5_RX MX6SX_PAD_SD4_DATA5__UART5_DTE_RX #define MX6SX_PAD_SD4_DATA5__UART5_TX MX6SX_PAD_SD4_DATA5__UART5_DCE_TX -#define MX6SX_PAD_SD4_DATA7__UART5_CTS_B MX6SX_PAD_SD4_DATA7__UART5_DCE_CTS #define MX6SX_PAD_SD4_DATA6__UART5_RTS_B MX6SX_PAD_SD4_DATA6__UART5_DCE_RTS +#define MX6SX_PAD_SD4_DATA7__UART5_CTS_B MX6SX_PAD_SD4_DATA7__UART5_DCE_CTS -#endif /* __DTS_IMX6SX_PINFUNC_H */ +#endif /* __DTS_IMX6SX_PINFUNC_H */ Apart from the last change it is just about ordering. i.e. always list the DCE function first consistently and have the compat defines in the same order than the old definition. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |