]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
arm64: dts: ti: k3-j7200: Enable I2C nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 20 Oct 2022 16:02:59 +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 J7200 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-7-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 bc3d1831f5cdaa0283eaeaa03d0b1b06cbac6fc9..6240856e48631d6ccbc0e9d2e7b52eae488b16f2 100644 (file)
 };
 
 &main_i2c0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c0_pins_default>;
        clock-frequency = <400000>;
  * The i2c1 of the CPB (as it is labeled) is not connected to j7200.
  */
 &main_i2c1 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c1_pins_default>;
        clock-frequency = <400000>;
index f9aefd3dbdcaf12abdc61356d6b13d397ec870ae..610d042ffa1d6746240e3891732d3b2e42688a28 100644 (file)
                clock-names = "fck";
                clocks = <&k3_clks 187 1>;
                power-domains = <&k3_pds 187 TI_SCI_PD_SHARED>;
+               status = "disabled";
        };
 
        main_i2c1: i2c@2010000 {
                clock-names = "fck";
                clocks = <&k3_clks 188 1>;
                power-domains = <&k3_pds 188 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c2: i2c@2020000 {
                clock-names = "fck";
                clocks = <&k3_clks 189 1>;
                power-domains = <&k3_pds 189 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c3: i2c@2030000 {
                clock-names = "fck";
                clocks = <&k3_clks 190 1>;
                power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c4: i2c@2040000 {
                clock-names = "fck";
                clocks = <&k3_clks 191 1>;
                power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c5: i2c@2050000 {
                clock-names = "fck";
                clocks = <&k3_clks 192 1>;
                power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_i2c6: i2c@2060000 {
                clock-names = "fck";
                clocks = <&k3_clks 193 1>;
                power-domains = <&k3_pds 193 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        main_sdhci0: mmc@4f80000 {
index 7c205b347f813922569e7e1168c0037086684432..2006933f9b49752a30e0ec541577b53a0bac8afa 100644 (file)
                clock-names = "fck";
                clocks = <&k3_clks 194 1>;
                power-domains = <&k3_pds 194 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        mcu_i2c1: i2c@40b10000 {
                clock-names = "fck";
                clocks = <&k3_clks 195 1>;
                power-domains = <&k3_pds 195 TI_SCI_PD_EXCLUSIVE>;
+               status = "disabled";
        };
 
        wkup_i2c0: i2c@42120000 {
                clock-names = "fck";
                clocks = <&k3_clks 197 1>;
                power-domains = <&k3_pds 197 TI_SCI_PD_SHARED>;
+               status = "disabled";
        };
 
        fss: syscon@47000000 {