arm64: dts: ti: k3-am62: Enable I2C nodes at the board level
authorAndrew Davis <afd@ti.com>
Tue, 18 Oct 2022 21:15:25 +0000 (16:15 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 28 Oct 2022 13:15:11 +0000 (08:15 -0500)
I2C 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 I2C 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-3-afd@ti.com
arch/arm64/boot/dts/ti/k3-am62-main.dtsi
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
arch/arm64/boot/dts/ti/k3-am625-sk.dts

index f6f8ccdb5f55f3026899b072e01e7f98420b54d9..295c9bb22e7da9bcbc65345334e46f400871bd59 100644 (file)
                power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 102 2>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        main_i2c1: i2c@20010000 {
                power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 103 2>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        main_i2c2: i2c@20020000 {
                power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 104 2>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        main_i2c3: i2c@20030000 {
                power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 105 2>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        main_spi0: spi@20100000 {
index 8dff39723628df5b6db805a4ed137d0384591970..7f715ebe8e24e191eeadabb75f6188d88fb983d3 100644 (file)
@@ -33,6 +33,7 @@
                power-domains = <&k3_pds 106 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 106 2>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        mcu_spi0: spi@4b00000 {
index 94cfc549f644526ed37056d93d801543a83d21bf..ff936d547c994ebb548b3bd1aa9576e17f87445d 100644 (file)
@@ -38,5 +38,6 @@
                power-domains = <&k3_pds 107 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 107 4>;
                clock-names = "fck";
+               status = "disabled";
        };
 };
index 0c7b25213e977a436cd53966701c7c2ceaf11756..c280d6c0041205b292b56c3802702329dbcb8cc3 100644 (file)
        status = "reserved";
 };
 
-&mcu_i2c0 {
-       status = "disabled";
-};
-
-&wkup_i2c0 {
-       status = "disabled";
-};
-
 &main_i2c0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c0_pins_default>;
        clock-frequency = <400000>;
 };
 
 &main_i2c1 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c1_pins_default>;
        clock-frequency = <400000>;
        };
 };
 
-&main_i2c2 {
-       status = "disabled";
-};
-
-&main_i2c3 {
-       status = "disabled";
-};
-
 &sdhci0 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc0_pins_default>;