Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1395353 > unrolled thread

[PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode

Started byStefan Agner <stefan@agner.ch>
First post2016-05-05 22:20 +0200
Last post2016-05-06 00:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode Stefan Agner <stefan@agner.ch> - 2016-05-05 22:20 +0200
    RE: [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE  mode Frank Li <frank.li@nxp.com> - 2016-05-06 00:10 +0200

#1395353 — [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode

FromStefan Agner <stefan@agner.ch>
Date2016-05-05 22:20 +0200
Subject[PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode
Message-ID<rvxUC-6Rk-15@gated-at.bofh.it>
Add input mux for UART2 RX in DTE mode. This allows to use the pad
UART2_TX_DATA_ALT0 as UART2 RX. This particular input select seems
to be missing in current reference manuals (Rev. B), but when looking
at the tables and other UART input select registers (e.g. UART3) it
seems naturally that this input mux register also has a fourth pad
option for UART2_TX_DATA_ALT0. It has also been proven to be required
to use UART2 in DTE mode and the particular pads on the Colibri iMX7
platform.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 arch/arm/boot/dts/imx7d-pinfunc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx7d-pinfunc.h b/arch/arm/boot/dts/imx7d-pinfunc.h
index eeda783..3f9f0d9 100644
--- a/arch/arm/boot/dts/imx7d-pinfunc.h
+++ b/arch/arm/boot/dts/imx7d-pinfunc.h
@@ -594,7 +594,7 @@
 #define MX7D_PAD_UART2_RX_DATA__GPIO4_IO2                         0x0130 0x03A0 0x0000 0x5 0x0
 #define MX7D_PAD_UART2_RX_DATA__ENET2_MDIO                        0x0130 0x03A0 0x0000 0x6 0x0
 #define MX7D_PAD_UART2_TX_DATA__UART2_DCE_TX                      0x0134 0x03A4 0x0000 0x0 0x0
-#define MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX                      0x0134 0x03A4 0x0000 0x0 0x0
+#define MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX                      0x0134 0x03A4 0x06FC 0x0 0x3
 #define MX7D_PAD_UART2_TX_DATA__I2C2_SDA                          0x0134 0x03A4 0x05E0 0x1 0x0
 #define MX7D_PAD_UART2_TX_DATA__SAI3_RX_DATA0                     0x0134 0x03A4 0x06C8 0x2 0x0
 #define MX7D_PAD_UART2_TX_DATA__ECSPI1_RDY                        0x0134 0x03A4 0x0000 0x3 0x0
-- 
2.8.2

[toc] | [next] | [standalone]


#1395400 — RE: [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode

FromFrank Li <frank.li@nxp.com>
Date2016-05-06 00:10 +0200
SubjectRE: [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode
Message-ID<rvzD4-9z-15@gated-at.bofh.it>
In reply to#1395353

> -----Original Message-----
> From: Stefan Agner [mailto:stefan@agner.ch]
> Sent: Thursday, May 05, 2016 3:12 PM
> To: shawnguo@kernel.org
> Cc: kernel@pengutronix.de; Frank.Li@freescale.com;
> aalonso@freescale.com; devicetree@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Stefan Agner
> <stefan@agner.ch>
> Subject: [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE
> mode
> 
> Add input mux for UART2 RX in DTE mode. This allows to use the pad
> UART2_TX_DATA_ALT0 as UART2 RX. This particular input select seems to be
> missing in current reference manuals (Rev. B), but when looking at the tables
> and other UART input select registers (e.g. UART3) it seems naturally that this
> input mux register also has a fourth pad option for UART2_TX_DATA_ALT0. It
> has also been proven to be required to use UART2 in DTE mode and the
> particular pads on the Colibri iMX7 platform.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>

Acked-by: Frank Li  <Frank.Li@nxp.com>

> ---
>  arch/arm/boot/dts/imx7d-pinfunc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/imx7d-pinfunc.h b/arch/arm/boot/dts/imx7d-
> pinfunc.h
> index eeda783..3f9f0d9 100644
> --- a/arch/arm/boot/dts/imx7d-pinfunc.h
> +++ b/arch/arm/boot/dts/imx7d-pinfunc.h
> @@ -594,7 +594,7 @@
>  #define MX7D_PAD_UART2_RX_DATA__GPIO4_IO2                         0x0130
> 0x03A0 0x0000 0x5 0x0
>  #define MX7D_PAD_UART2_RX_DATA__ENET2_MDIO                        0x0130
> 0x03A0 0x0000 0x6 0x0
>  #define MX7D_PAD_UART2_TX_DATA__UART2_DCE_TX                      0x0134
> 0x03A4 0x0000 0x0 0x0
> -#define MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX                      0x0134
> 0x03A4 0x0000 0x0 0x0
> +#define MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX                      0x0134
> 0x03A4 0x06FC 0x0 0x3
>  #define MX7D_PAD_UART2_TX_DATA__I2C2_SDA                          0x0134
> 0x03A4 0x05E0 0x1 0x0
>  #define MX7D_PAD_UART2_TX_DATA__SAI3_RX_DATA0                     0x0134
> 0x03A4 0x06C8 0x2 0x0
>  #define MX7D_PAD_UART2_TX_DATA__ECSPI1_RDY                        0x0134
> 0x03A4 0x0000 0x3 0x0
> --
> 2.8.2

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web