[PATCH 4/4] arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485

Cem Tenruh c.tenruh at phytec.de
Fri Sep 1 06:25:02 PDT 2023


From: Teresa Remmet <t.remmet at phytec.de>

UART2 is now used for RS232/RS485 support. Added UART2 node.
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: Teresa Remmet <t.remmet at phytec.de>
Signed-off-by: Yashwanth Varakala <y.varakala at phytec.de>
---
 .../freescale/imx8mp-phyboard-pollux-rdk.dts   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
index f2620dea19ed..d7b347c53f7b 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts
@@ -178,6 +178,15 @@ &usb_dwc3_1 {
 	status = "okay";
 };
 
+&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>;
@@ -299,6 +308,15 @@ MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12     0x10
 		>;
 	};
 
+	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
-- 
2.25.1




More information about the linux-arm-kernel mailing list