arm64: dts: ti: k3-am62: Enable SPI nodes at the board level
authorAndrew Davis <afd@ti.com>
Tue, 18 Oct 2022 21:15:26 +0000 (16:15 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 28 Oct 2022 13:15:11 +0000 (08:15 -0500)
SPI nodes defined in the top-level AM62x SoC dtsi files are incomplete
and will 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 SPI 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/20221018211533.21335-4-afd@ti.com
arch/arm64/boot/dts/ti/k3-am62-main.dtsi
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi

index 295c9bb22e7da9bcbc65345334e46f400871bd59..83ac2e45998dfaa7fef262945eea730904e3fba7 100644 (file)
                #size-cells = <0>;
                power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 172 0>;
+               status = "disabled";
        };
 
        main_spi1: spi@20110000 {
                #size-cells = <0>;
                power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 173 0>;
+               status = "disabled";
        };
 
        main_spi2: spi@20120000 {
                #size-cells = <0>;
                power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 174 0>;
+               status = "disabled";
        };
 
        main_gpio_intr: interrupt-controller@a00000 {
index 7f715ebe8e24e191eeadabb75f6188d88fb983d3..28daf476e6a9eb2ac124e55fa4a0b8f48240de0e 100644 (file)
@@ -44,6 +44,7 @@
                #size-cells = <0>;
                power-domains = <&k3_pds 147 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 147 0>;
+               status = "disabled";
        };
 
        mcu_spi1: spi@4b10000 {
@@ -54,6 +55,7 @@
                #size-cells = <0>;
                power-domains = <&k3_pds 148 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 148 0>;
+               status = "disabled";
        };
 
        mcu_gpio_intr: interrupt-controller@4210000 {