ARM: dts: aspeed: mihawk: add aliases for i2c
authorBen Pai <Ben_Pai@wistron.com>
Thu, 23 Apr 2020 09:52:30 +0000 (17:52 +0800)
committerJoel Stanley <joel@jms.id.au>
Tue, 5 May 2020 07:07:16 +0000 (16:37 +0930)
Set the bus id for each mux channel to avoid switching channels
multiple times

Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts

index d1f452a..60e545b 100644 (file)
@@ -8,6 +8,52 @@
        model = "Mihawk BMC";
        compatible = "ibm,mihawk-bmc", "aspeed,ast2500";
 
+       aliases {
+               i2c215 = &bus6_mux215;
+               i2c216 = &bus6_mux216;
+               i2c217 = &bus6_mux217;
+               i2c218 = &bus6_mux218;
+               i2c219 = &bus6_mux219;
+               i2c220 = &bus6_mux220;
+               i2c221 = &bus6_mux221;
+               i2c222 = &bus6_mux222;
+               i2c223 = &bus7_mux223;
+               i2c224 = &bus7_mux224;
+               i2c225 = &bus7_mux225;
+               i2c226 = &bus7_mux226;
+               i2c227 = &bus7_mux227;
+               i2c228 = &bus7_mux228;
+               i2c229 = &bus7_mux229;
+               i2c230 = &bus7_mux230;
+               i2c231 = &bus9_mux231;
+               i2c232 = &bus9_mux232;
+               i2c233 = &bus9_mux233;
+               i2c234 = &bus9_mux234;
+               i2c235 = &bus9_mux235;
+               i2c236 = &bus9_mux236;
+               i2c237 = &bus9_mux237;
+               i2c238 = &bus9_mux238;
+               i2c239 = &bus10_mux239;
+               i2c240 = &bus10_mux240;
+               i2c241 = &bus10_mux241;
+               i2c242 = &bus10_mux242;
+               i2c243 = &bus10_mux243;
+               i2c244 = &bus10_mux244;
+               i2c245 = &bus10_mux245;
+               i2c246 = &bus10_mux246;
+               i2c247 = &bus12_mux247;
+               i2c248 = &bus12_mux248;
+               i2c249 = &bus12_mux249;
+               i2c250 = &bus12_mux250;
+               i2c251 = &bus13_mux251;
+               i2c252 = &bus13_mux252;
+               i2c253 = &bus13_mux253;
+               i2c254 = &bus13_mux254;
+               i2c255 = &bus13_mux255;
+               i2c256 = &bus13_mux256;
+               i2c257 = &bus13_mux257;
+               i2c258 = &bus13_mux258;
+       };
 
        chosen {
                stdout-path = &uart5;
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x70>;
+
+               bus7_mux223: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus7_mux224: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus7_mux225: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus7_mux226: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
+
+               bus7_mux227: i2c@4 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+               };
+
+               bus7_mux228: i2c@5 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <5>;
+               };
+
+               bus7_mux229: i2c@6 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <6>;
+               };
+
+               bus7_mux230: i2c@7 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <7>;
+               };
        };
 
 };
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x70>;
+
+               bus6_mux215: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus6_mux216: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus6_mux217: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus6_mux218: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
+
+               bus6_mux219: i2c@4 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+               };
+
+               bus6_mux220: i2c@5 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <5>;
+               };
+
+               bus6_mux221: i2c@6 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <6>;
+               };
+
+               bus6_mux222: i2c@7 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <7>;
+               };
        };
 
 };
                i2c-mux-idle-disconnect;
                interrupt-controller;
                #interrupt-cells = <2>;
+
+               bus9_mux231: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus9_mux232: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus9_mux233: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus9_mux234: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
        };
 
        pca9545@71 {
                i2c-mux-idle-disconnect;
                interrupt-controller;
                #interrupt-cells = <2>;
+
+               bus9_mux235: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus9_mux236: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus9_mux237: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus9_mux238: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
        };
 };
 
                i2c-mux-idle-disconnect;
                interrupt-controller;
                #interrupt-cells = <2>;
+
+               bus10_mux239: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus10_mux240: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus10_mux241: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus10_mux242: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
        };
 
        pca9545@71 {
                i2c-mux-idle-disconnect;
                interrupt-controller;
                #interrupt-cells = <2>;
+
+               bus10_mux243: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus10_mux244: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus10_mux245: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus10_mux246: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
        };
 };
 
                interrupt-controller;
                #interrupt-cells = <2>;
 
-               i2c@0 {
+               bus12_mux247: i2c@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
                        };
                };
 
-               i2c@1 {
+               bus12_mux248: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
                        };
                };
 
-               i2c@2 {
+               bus12_mux249: i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
                        };
                };
 
-               i2c@3 {
+               bus12_mux250: i2c@3 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <3>;
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x70>;
+               bus13_mux251: i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+               };
+
+               bus13_mux252: i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+               };
+
+               bus13_mux253: i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+               };
+
+               bus13_mux254: i2c@3 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+               };
+
+               bus13_mux255: i2c@4 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+               };
+
+               bus13_mux256: i2c@5 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <5>;
+               };
+
+               bus13_mux257: i2c@6 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <6>;
+               };
+
+               bus13_mux258: i2c@7 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <7>;
+               };
        };
 };