]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: ti: k3-j722s-evm: Describe main_uart5
authorBhavya Kapoor <b-kapoor@ti.com>
Tue, 27 Aug 2024 10:56:44 +0000 (16:26 +0530)
committerNishanth Menon <nm@ti.com>
Wed, 28 Aug 2024 17:31:37 +0000 (12:31 -0500)
System firmware uses main_uart5 in J722S EVM for trace data.
Thus, describe it in device tree for completeness,
adding the pinmux and mark it as reserved.

Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
Link: https://lore.kernel.org/r/20240827105644.575862-3-b-kapoor@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j722s-evm.dts

index dd3b5f7039d7c1c6fd78bd56b3cd5304f1eb7f7b..ee2bd7d26b9e41e837ea5a0b7c8e02541fdb01dc 100644 (file)
@@ -20,6 +20,7 @@
        aliases {
                serial0 = &wkup_uart0;
                serial2 = &main_uart0;
+               serial3 = &main_uart5;
                mmc0 = &sdhci0;
                mmc1 = &sdhci1;
        };
                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 */
+               >;
+       };
+
        vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
                pinctrl-single,pins = <
                        J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */
        bootph-all;
 };
 
+&main_uart5 {
+       /* MAIN UART 5 is used by System firmware */
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_uart5_pins_default>;
+       status = "reserved";
+};
+
 &mcu_pmx0 {
 
        wkup_uart0_pins_default: wkup-uart0-default-pins {