Commit 6456bc88 authored by Ben Pai's avatar Ben Pai Committed by Joel Stanley

ARM: dts: aspeed: mihawk: add aliases for i2c

Set the bus id for each mux channel to avoid switching channels
multiple times
Signed-off-by: default avatarBen Pai <Ben_Pai@wistron.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 39d8a73c
...@@ -8,6 +8,52 @@ / { ...@@ -8,6 +8,52 @@ / {
model = "Mihawk BMC"; model = "Mihawk BMC";
compatible = "ibm,mihawk-bmc", "aspeed,ast2500"; 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 { chosen {
stdout-path = &uart5; stdout-path = &uart5;
...@@ -619,6 +665,54 @@ pca9548@70 { ...@@ -619,6 +665,54 @@ pca9548@70 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x70>; 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>;
};
}; };
}; };
...@@ -633,6 +727,54 @@ pca9548@70 { ...@@ -633,6 +727,54 @@ pca9548@70 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x70>; 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>;
};
}; };
}; };
...@@ -673,6 +815,30 @@ pca9545riser@70 { ...@@ -673,6 +815,30 @@ pca9545riser@70 {
i2c-mux-idle-disconnect; i2c-mux-idle-disconnect;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #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 { pca9545@71 {
...@@ -684,6 +850,30 @@ pca9545@71 { ...@@ -684,6 +850,30 @@ pca9545@71 {
i2c-mux-idle-disconnect; i2c-mux-idle-disconnect;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #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>;
};
}; };
}; };
...@@ -714,6 +904,30 @@ pca9545riser@70 { ...@@ -714,6 +904,30 @@ pca9545riser@70 {
i2c-mux-idle-disconnect; i2c-mux-idle-disconnect;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #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 { pca9545@71 {
...@@ -725,6 +939,30 @@ pca9545@71 { ...@@ -725,6 +939,30 @@ pca9545@71 {
i2c-mux-idle-disconnect; i2c-mux-idle-disconnect;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #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>;
};
}; };
}; };
...@@ -785,7 +1023,7 @@ pca9545@70 { ...@@ -785,7 +1023,7 @@ pca9545@70 {
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
i2c@0 { bus12_mux247: i2c@0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0>; reg = <0>;
...@@ -796,7 +1034,7 @@ eeprom@50 { ...@@ -796,7 +1034,7 @@ eeprom@50 {
}; };
}; };
i2c@1 { bus12_mux248: i2c@1 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <1>; reg = <1>;
...@@ -807,7 +1045,7 @@ eeprom@50 { ...@@ -807,7 +1045,7 @@ eeprom@50 {
}; };
}; };
i2c@2 { bus12_mux249: i2c@2 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <2>; reg = <2>;
...@@ -818,7 +1056,7 @@ eeprom@50 { ...@@ -818,7 +1056,7 @@ eeprom@50 {
}; };
}; };
i2c@3 { bus12_mux250: i2c@3 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <3>; reg = <3>;
...@@ -846,6 +1084,53 @@ pca9548@70 { ...@@ -846,6 +1084,53 @@ pca9548@70 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x70>; 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>;
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment