[PATCH] arm64: dts: ti: k3-j722s-evm: Enable main_uart5 node

From: Bhavya Kapoor
Date: Fri Apr 26 2024 - 06:45:27 EST


Main_uart5 node defined in the top-level J722S SoC dtsi file is
incomplete and may not be functional unless it is extended
with pinmux information.

As the pinmux is only known at the board integration level, main_uart5
node should only be enabled when provided with this information.

Thus, add pinmux for main_uart5 and enable it in the board dts file.

Signed-off-by: Bhavya Kapoor <b-kapoor@xxxxxx>
---
arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
index cee3a8661d5e..b92d5c385f13 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts
@@ -18,6 +18,7 @@ / {
aliases {
serial0 = &wkup_uart0;
serial2 = &main_uart0;
+ serial3 = &main_uart5;
mmc0 = &sdhci0;
mmc1 = &sdhci1;
};
@@ -142,6 +143,14 @@ J722S_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */
bootph-all;
};

+ main_uart5_pins_default: main-uart5-default-pins {
+ pinctrl-single,pins = <
+ J722S_IOPAD(0x0108, PIN_INPUT, 3) /* (J27) UART5_RXD */
+ J722S_IOPAD(0x010c, PIN_OUTPUT, 3) /* (H27) UART5_TXD */
+ >;
+ bootph-all;
+ };
+
vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
pinctrl-single,pins = <
J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */
@@ -243,6 +252,13 @@ &main_uart0 {
bootph-all;
};

+&main_uart5 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_uart5_pins_default>;
+ status = "okay";
+ bootph-all;
+};
+
&mcu_pmx0 {

wkup_uart0_pins_default: wkup-uart0-default-pins {
--
2.40.1