arm64: dts: ti: k3-j721e: Enable UART nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 20 Oct 2022 16:02:54 +0000 (11:02 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 28 Oct 2022 13:15:32 +0000 (08:15 -0500)
UART nodes defined in the top-level J721e SoC dtsi files are incomplete
and may not be functional unless they are extended with pinmux
information.

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

Disable the UART nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20221020160305.18711-2-afd@ti.com
arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
arch/arm64/boot/dts/ti/k3-j721e-sk.dts

index b1691ac3442dc77a211d755625a49cc1ed0be1f3..01afacfe6faaa08d8b0347375ca9fcc3a3dba22d 100644 (file)
        status = "reserved";
 };
 
-&main_uart0 {
-       power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
-};
-
-&main_uart3 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart5 {
-       /* UART not brought out */
-       status = "disabled";
+&mcu_uart0 {
+       status = "okay";
+       /* Default pinmux */
 };
 
-&main_uart6 {
-       /* UART not brought out */
-       status = "disabled";
+&main_uart0 {
+       status = "okay";
+       /* Shared with ATF on this platform */
+       power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
 };
 
-&main_uart7 {
-       /* UART not brought out */
-       status = "disabled";
+&main_uart1 {
+       status = "okay";
+       /* Default pinmux */
 };
 
-&main_uart8 {
-       /* UART not brought out */
-       status = "disabled";
+&main_uart2 {
+       status = "okay";
+       /* Default pinmux */
 };
 
-&main_uart9 {
-       /* UART not brought out */
-       status = "disabled";
+&main_uart4 {
+       status = "okay";
+       /* Default pinmux */
 };
 
 &main_gpio2 {
index 917c9dc99efaa867d82dde4a33394dc025799363..5f85d1cc8b27702b05291808b2ea6246957f86ab 100644 (file)
                power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 146 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart1: serial@2810000 {
                power-domains = <&k3_pds 278 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 278 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart2: serial@2820000 {
                power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 279 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart3: serial@2830000 {
                power-domains = <&k3_pds 280 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 280 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart4: serial@2840000 {
                power-domains = <&k3_pds 281 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 281 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart5: serial@2850000 {
                power-domains = <&k3_pds 282 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 282 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart6: serial@2860000 {
                power-domains = <&k3_pds 283 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 283 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart7: serial@2870000 {
                power-domains = <&k3_pds 284 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 284 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart8: serial@2880000 {
                power-domains = <&k3_pds 285 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 285 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart9: serial@2890000 {
                power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 286 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_gpio0: gpio@600000 {
index df08724bbf1c51c35912532a9fe17e3a78841269..fce88ed23596d8118f25bea73f7607ef6ebb3364 100644 (file)
@@ -79,6 +79,7 @@
                power-domains = <&k3_pds 287 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 287 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        mcu_uart0: serial@40a00000 {
@@ -90,6 +91,7 @@
                power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 149 0>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        wkup_gpio_intr: interrupt-controller@42200000 {
index 80358cba6954c8140b74e47bea2123a798f2016e..23538c5f43575f1732948f5c5d8d425440766c22 100644 (file)
        status = "reserved";
 };
 
+&mcu_uart0 {
+       status = "okay";
+       /* Default pinmux */
+};
+
 &main_uart0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
        /* Shared with ATF on this platform */
        power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
 };
 
-&main_uart2 {
-       /* Brought out on RPi header */
-       status = "disabled";
-};
-
-&main_uart3 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart5 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart6 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart7 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart8 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart9 {
-       /* Brought out on M.2 E Key */
-       status = "disabled";
+&main_uart1 {
+       status = "okay";
+       /* Default pinmux */
 };
 
 &main_sdhci0 {