arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485
authorTeresa Remmet <t.remmet@phytec.de>
Wed, 6 Sep 2023 10:08:57 +0000 (12:08 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 01:35:39 +0000 (09:35 +0800)
Add UART2 for RS232/RS485 support.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
(Updated the node by not setting the reserved bits(BIT 0 and BIT 3)
and enabled internal pullup for RX and TX.)
Signed-off-by: Yashwanth Varakala <y.varakala@phytec.de>
Signed-off-by: Cem Tenruh <c.tenruh@phytec.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts

index 562d4fee2011890c0afb3e5fd5e02abb93da3298..c8640cac3edceb15b6531bf2ad33aee4c150171b 100644 (file)
        status = "okay";
 };
 
+/* RS232/RS485 */
+&uart2 {
+       assigned-clocks = <&clk IMX8MP_CLK_UART2>;
+       assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart2>;
+       uart-has-rtscts;
+       status = "okay";
+};
+
 /* SD-Card */
 &usdhc2 {
        assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
                >;
        };
 
+       pinctrl_uart2: uart2grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX    0x140
+                       MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX    0x140
+                       MX8MP_IOMUXC_SAI3_RXC__UART2_DCE_CTS    0x140
+                       MX8MP_IOMUXC_SAI3_RXD__UART2_DCE_RTS    0x140
+               >;
+       };
+
        pinctrl_usdhc2_pins: usdhc2-gpiogrp {
                fsl,pins = <
                        MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12       0x1c4