]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: aspeed: yosemite4: Add i2c-mux for Management Board
authorRicky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Thu, 26 Sep 2024 03:35:33 +0000 (11:35 +0800)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Fri, 13 Dec 2024 05:16:59 +0000 (15:46 +1030)
Add I2C mux for Management Board to separate the I2C bus 35 for
updating CPLD firmware and I2C bus 34 for the other devices.

Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Link: https://patch.msgid.link/20240926033534.4174707-1-Delphine_CC_Chiu@wiwynn.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts

index 1c4b640ed4ea326edcac6628f413156f65188795..15331838fb577f1825d5e025dd441cbf678a52e0 100644 (file)
@@ -17,6 +17,9 @@
                serial6 = &uart7;
                serial7 = &uart8;
                serial8 = &uart9;
+
+               i2c34 = &imux34;
+               i2c35 = &imux35;
        };
 
        chosen {
 };
 
 &i2c12 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
        bus-frequency = <400000>;
 
-       temperature-sensor@48 {
-               compatible = "ti,tmp75";
-               reg = <0x48>;
-       };
+       i2c-mux@70 {
+               compatible = "nxp,pca9544";
+               reg = <0x70>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               i2c-mux-idle-disconnect;
 
-       eeprom@50 {
-               compatible = "atmel,24c128";
-               reg = <0x50>;
-       };
+               imux34: i2c@0 {
+                       reg = <0>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       temperature-sensor@48 {
+                               compatible = "ti,tmp75";
+                               reg = <0x48>;
+                       };
+
+                       eeprom@50 {
+                               compatible = "atmel,24c128";
+                               reg = <0x50>;
+                       };
+
+                       eeprom@54 {
+                               compatible = "atmel,24c64";
+                               reg = <0x54>;
+                       };
+
+                       rtc@6f {
+                               compatible = "nuvoton,nct3018y";
+                               reg = <0x6f>;
+                       };
+
+                       gpio@20 {
+                               compatible = "nxp,pca9506";
+                               reg = <0x20>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                       };
+
+                       gpio@21 {
+                               compatible = "nxp,pca9506";
+                               reg = <0x21>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                       };
+
+                       gpio@22 {
+                               compatible = "nxp,pca9506";
+                               reg = <0x22>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                       };
+
+                       gpio@23 {
+                               compatible = "nxp,pca9506";
+                               reg = <0x23>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                       };
+               };
 
-       rtc@6f {
-               compatible = "nuvoton,nct3018y";
-               reg = <0x6f>;
+               imux35: i2c@1 {
+                       reg = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
        };
 };