summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-11-27 23:13:33 +0300
committerJoel Stanley <joel@jms.id.au>2017-12-08 09:25:12 +0300
commit42c1aca7ef5a624357d7ca590768e55d20f50780 (patch)
tree55019d263daf539d583740eb87c49f98f4894dde
parent33b40df2426bf1b3802c44c95a5d0f8f191d77a5 (diff)
downloadlinux-42c1aca7ef5a624357d7ca590768e55d20f50780.tar.xz
ARM: dts: aspeed: quanta: add i2cmux for frus
The memory riser frus on the board are controlled by a gpio mux. OpenBMC-Staging-Count: 1 Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts93
1 files changed, 69 insertions, 24 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts b/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts
index 252932983de8..c0f9b3ab1438 100644
--- a/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts
@@ -124,6 +124,75 @@
compatible = "iio-hwmon";
io-channels = <&adc 11>;
};
+
+ i2cmux {
+ compatible = "i2c-mux-gpio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mux-gpios = <&sgpio 10 GPIO_ACTIVE_HIGH>;
+ i2c-parent = <&i2c1>;
+
+ i2c@0 {
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* Memory Riser 1 FRU */
+ eeprom@50 {
+ compatible = "atmel,24c02";
+ reg = <0x50>;
+ };
+
+ /* Memory Riser 2 FRU */
+ eeprom@51 {
+ compatible = "atmel,24c02";
+ reg = <0x51>;
+ };
+
+ /* Memory Riser 3 FRU */
+ eeprom@52 {
+ compatible = "atmel,24c02";
+ reg = <0x52>;
+ };
+
+ /* Memory Riser 4 FRU */
+ eeprom@53 {
+ compatible = "atmel,24c02";
+ reg = <0x53>;
+ };
+ };
+
+ i2c@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* Memory Riser 5 FRU */
+ eeprom@50 {
+ compatible = "atmel,24c02";
+ reg = <0x50>;
+ };
+
+ /* Memory Riser 6 FRU */
+ eeprom@51 {
+ compatible = "atmel,24c02";
+ reg = <0x51>;
+ };
+
+ /* Memory Riser 7 FRU */
+ eeprom@52 {
+ compatible = "atmel,24c02";
+ reg = <0x52>;
+ };
+
+ /* Memory Riser 8 FRU */
+ eeprom@53 {
+ compatible = "atmel,24c02";
+ reg = <0x53>;
+ };
+ };
+ };
};
&fmc {
@@ -204,30 +273,6 @@
reg = <0x4f>;
};
- /* Memory Riser 1/5 FRU */
- eeprom@50 {
- compatible = "atmel,24c02";
- reg = <0x50>;
- };
-
- /* Memory Riser 2/6 FRU */
- eeprom@51 {
- compatible = "atmel,24c02";
- reg = <0x51>;
- };
-
- /* Memory Riser 3/7 FRU */
- eeprom@52 {
- compatible = "atmel,24c02";
- reg = <0x52>;
- };
-
- /* Memory Riser 4/8 FRU */
- eeprom@53 {
- compatible = "atmel,24c02";
- reg = <0x53>;
- };
-
/* Baseboard FRU */
eeprom@54 {
compatible = "atmel,24c64";