]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: dts: add/fix I2C controllers for sc5xx
authorJie Zhang <jie.zhang@analog.com>
Thu, 2 Apr 2026 17:13:16 +0000 (13:13 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jun 2026 17:58:28 +0000 (11:58 -0600)
sc59x processors have 6 I2C controllers, but their devicetrees
currently have only 3. The length of its register block should
be 0x100 instead of 0x1000. All I2C nodes should be disabled in
sc5xx.dtsi. They can be enabled in board devicetree files if
they are used on the boards. Add missing I2C controllers and
fix the above issues.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
arch/arm/dts/sc573-ezlite.dts
arch/arm/dts/sc584-ezkit.dts
arch/arm/dts/sc589-ezkit.dts
arch/arm/dts/sc594-som.dtsi
arch/arm/dts/sc598-som-revD.dtsi
arch/arm/dts/sc598-som-revE.dtsi
arch/arm/dts/sc598-som.dtsi
arch/arm/dts/sc59x.dtsi
arch/arm/dts/sc5xx.dtsi

index 57604d707f73a42d174f1c5acd94ab01c8949d29..f128c4f9697b74ac199db8692fd3f8c8a99746ae 100644 (file)
@@ -14,6 +14,8 @@
 };
 
 &i2c0 {
+       status = "okay";
+
        gpio_expander0: mcp23017@21 {
                compatible = "microchip,mcp23017";
                reg = <0x21>;
index 176faa5067253e2f6cb0812ccc42ce681c7c171f..3a6d60b3f29497e6f0656e8570e168228b4a2906 100644 (file)
@@ -13,6 +13,8 @@
 };
 
 &i2c2 {
+       status = "okay";
+
        gpio_expander0: mcp23017@21 {
                compatible = "microchip,mcp23017";
                reg = <0x21>;
index d8eb5b6f8fef6131c4b48336d18b94f2851b2cab..04ad8e44cbbea7a7718ada16877ed7e03a2add6d 100644 (file)
@@ -17,6 +17,8 @@
 &i2c0 {
        #address-cells = <1>;
        #size-cells = <0>;
+       status = "okay";
+
        gpio_expander0: mcp23017@21 {
                compatible = "microchip,mcp23017";
                reg = <0x21>;
index 1c2adc601ddc7c2e7a41fbc5d3fc2df99b70c4ed..c4373aea60f450bb8cea595b777313a39dabff88 100644 (file)
@@ -79,6 +79,7 @@
 
 &i2c2 {
        clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
+       status = "okay";
 
        som_gpio_expander: mcp23017@21 {
                compatible = "microchip,mcp23017";
        };
 };
 
+&i2c3 {
+       clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
+};
+
+&i2c4 {
+       clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
+};
+
+&i2c5 {
+       clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
+};
+
 &ospi {
        status = "okay";
 
index 26e272966fffe6aa71c87b11ab4219e828dba5ff..06d550b85329750a78409c9927c27bb564b39108 100644 (file)
@@ -8,6 +8,8 @@
 #include "sc598-som.dtsi"
 
 &i2c2 {
+       status = "okay";
+
        som_gpio_expander: mcp23018@20 {
                compatible = "microchip,mcp23018";
                reg = <0x20>;
index bec504102e7146e3890f62a3dbcad14b5f67d5fb..1f48d52109b34d72f67a77105c03d31e9febacbf 100644 (file)
@@ -8,6 +8,8 @@
 #include "sc598-som.dtsi"
 
 &i2c2 {
+       status = "okay";
+
        som_gpio_expander: adp5587@34 {
                compatible = "adi,adp5587";
                reg = <0x34>;
index bc212ef25cb75137354e282989187f15ed05dc25..ac1f24c86c3909423bb47e35c2edb7f44c3d5aca 100644 (file)
        clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
 };
 
+&i2c3 {
+       clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
+};
+
+&i2c4 {
+       clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
+};
+
+&i2c5 {
+       clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
+};
+
 &spi2 {
        clocks = <&clk ADSP_SC598_CLK_SPI>;
 };
index ff279cca2d177ccff08d2d376c6d14cab0066d0f..64e5a1afc5396095ce89cada8ce555d57c0aeaf0 100644 (file)
                        pinctrl-0 = <&usb0_default>;
                        status = "disabled";
                };
+
+               i2c3: i2c3@31001000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "adi-i2c";
+                       reg = <0x31001000 0x100>;
+                       clock-names = "i2c";
+                       status = "disabled";
+                       bootph-pre-ram;
+               };
+
+               i2c4: i2c4@31001100 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "adi-i2c";
+                       reg = <0x31001100 0x100>;
+                       clock-names = "i2c";
+                       status = "disabled";
+                       bootph-pre-ram;
+               };
+
+               i2c5: i2c5@31001200 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "adi-i2c";
+                       reg = <0x31001200 0x100>;
+                       clock-names = "i2c";
+                       status = "disabled";
+                       bootph-pre-ram;
+               };
        };
 };
 
index 072631e34f7b7940cf67e421d45ddb8df0bbec3a..b821deddda77dfb63aa6bc4e2d5fe82b7e7e9dad 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <0>;
                        compatible = "adi-i2c";
-                       reg = <0x31001400 0x1000>;
+                       reg = <0x31001400 0x100>;
                        clock-names = "i2c";
-                       status = "okay";
+                       status = "disabled";
                        bootph-pre-ram;
                };
 
                        #address-cells = <1>;
                        #size-cells = <0>;
                        compatible = "adi-i2c";
-                       reg = <0x31001500 0x1000>;
+                       reg = <0x31001500 0x100>;
                        clock-names = "i2c";
-                       status = "okay";
+                       status = "disabled";
                        bootph-pre-ram;
                };
 
                        #address-cells = <1>;
                        #size-cells = <0>;
                        compatible = "adi-i2c";
-                       reg = <0x31001600 0x1000>;
+                       reg = <0x31001600 0x100>;
                        clock-names = "i2c";
-                       status = "okay";
+                       status = "disabled";
                        bootph-pre-ram;
                };
        };