arm64: dts: ti: k3-j721e: Enable I2C nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 20 Oct 2022 16:02:55 +0000 (11:02 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 28 Oct 2022 13:15:32 +0000 (08:15 -0500)
I2C nodes defined in the top-level J721e 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/20221020160305.18711-3-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 01afacf..24e9db5 100644 (file)
 };
 
 &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_i2c3 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c3_pins_default>;
        clock-frequency = <400000>;
 };
 
 &main_i2c6 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c6_pins_default>;
        clock-frequency = <400000>;
index 5f85d1c..61bba78 100644 (file)
                clock-names = "fck";
                clocks = <&k3_clks 187 0>;
                power-domains = <&k3_pds 187 TI_SCI_PD_SHARED>;
+               status = "disabled";
        };
 
        main_i2c1: i2c@2010000 {
                clock-names = "fck";
                clocks = <&k3_clks 188 0>;
                power-domains = <&k3_pds 188 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c2: i2c@2020000 {
                clock-names = "fck";
                clocks = <&k3_clks 189 0>;
                power-domains = <&k3_pds 189 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c3: i2c@2030000 {
                clock-names = "fck";
                clocks = <&k3_clks 190 0>;
                power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c4: i2c@2040000 {
                clock-names = "fck";
                clocks = <&k3_clks 191 0>;
                power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c5: i2c@2050000 {
                clock-names = "fck";
                clocks = <&k3_clks 192 0>;
                power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c6: i2c@2060000 {
                clock-names = "fck";
                clocks = <&k3_clks 193 0>;
                power-domains = <&k3_pds 193 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        ufs_wrapper: ufs-wrapper@4e80000 {
index fce88ed..7bb6613 100644 (file)
                clock-names = "fck";
                clocks = <&k3_clks 194 0>;
                power-domains = <&k3_pds 194 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        mcu_i2c1: i2c@40b10000 {
                clock-names = "fck";
                clocks = <&k3_clks 195 0>;
                power-domains = <&k3_pds 195 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        wkup_i2c0: i2c@42120000 {
                clock-names = "fck";
                clocks = <&k3_clks 197 0>;
                power-domains = <&k3_pds 197 TI_SCI_PD_SHARED>;
+               status = "disabled";
        };
 
        fss: fss@47000000 {
index 23538c5..1d5a90d 100644 (file)
 };
 
 &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>;
        /* i2c1 is used for DVI DDC, so we need to use 100kHz */
        clock-frequency = <100000>;
 };
 
-&main_i2c2 {
-       /* Unused */
-       status = "disabled";
-};
-
 &main_i2c3 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c3_pins_default>;
        clock-frequency = <400000>;
        };
 };
 
-&main_i2c4 {
-       /* Unused */
-       status = "disabled";
-};
-
-&main_i2c5 {
-       /* Brought out on RPi Header */
-       status = "disabled";
-};
-
-&main_i2c6 {
-       /* Unused */
-       status = "disabled";
-};
-
 &main_gpio2 {
        status = "disabled";
 };