arm64: dts: ti: k3-j7200: Enable UART nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 20 Oct 2022 16:02:58 +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 J7200 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-6-afd@ti.com
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi

index 7e8552fd2b6ae67fdd91af683093434f9edb311e..bc3d1831f5cdaa0283eaeaa03d0b1b06cbac6fc9 100644 (file)
        status = "reserved";
 };
 
+&mcu_uart0 {
+       status = "okay";
+       /* Default pinmux */
+};
+
 &main_uart0 {
+       status = "okay";
        /* Shared with ATF on this platform */
        power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
 };
 
+&main_uart1 {
+       status = "okay";
+       /* Default pinmux */
+};
+
 &main_uart2 {
        /* MAIN UART 2 is used by R5F firmware */
        status = "reserved";
 };
 
-&main_uart3 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
-&main_uart4 {
-       /* 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 {
-       /* UART not brought out */
-       status = "disabled";
-};
-
 &main_gpio2 {
        status = "disabled";
 };
index 80a57916bcb3e391a999e23aedd884b8754bcd98..f9aefd3dbdcaf12abdc61356d6b13d397ec870ae 100644 (file)
                power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 146 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart1: serial@2810000 {
                power-domains = <&k3_pds 278 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 278 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart2: serial@2820000 {
                power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 279 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart3: serial@2830000 {
                power-domains = <&k3_pds 280 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 280 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart4: serial@2840000 {
                power-domains = <&k3_pds 281 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 281 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart5: serial@2850000 {
                power-domains = <&k3_pds 282 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 282 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart6: serial@2860000 {
                power-domains = <&k3_pds 283 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 283 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart7: serial@2870000 {
                power-domains = <&k3_pds 284 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 284 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart8: serial@2880000 {
                power-domains = <&k3_pds 285 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 285 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_uart9: serial@2890000 {
                power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 286 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        main_i2c0: i2c@2000000 {
index e5be78a58682d542a3ce90a0956409b8bcef9a91..7c205b347f813922569e7e1168c0037086684432 100644 (file)
@@ -79,6 +79,7 @@
                power-domains = <&k3_pds 287 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 287 2>;
                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 2>;
                clock-names = "fclk";
+               status = "disabled";
        };
 
        wkup_gpio_intr: interrupt-controller@42200000 {