powerpc: Add I2C bus multiplexer node for B4 and T4240QDS
authorHongtao Jia <hongtao.jia@freescale.com>
Mon, 9 Sep 2013 10:03:33 +0000 (18:03 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 29 Oct 2013 02:11:18 +0000 (21:11 -0500)
In both B4 and T4240QDS platform PCA9547 I2C bus multiplexer is used.
The sub-nodes are also reorganized according to right I2C topology.

Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/boot/dts/b4qds.dtsi
arch/powerpc/boot/dts/t4240qds.dts

index e6d2f8f9054463e567a4f0202147474496a0dadb..8b47edcfabf0716c8747773533cd882554bae620 100644 (file)
                };
 
                i2c@118000 {
-                       eeprom@50 {
-                               compatible = "at24,24c64";
-                               reg = <0x50>;
-                       };
-                       eeprom@51 {
-                               compatible = "at24,24c256";
-                               reg = <0x51>;
-                       };
-                       eeprom@53 {
-                               compatible = "at24,24c256";
-                               reg = <0x53>;
-                       };
-                       eeprom@57 {
-                               compatible = "at24,24c256";
-                               reg = <0x57>;
-                       };
-                       rtc@68 {
-                               compatible = "dallas,ds3232";
-                               reg = <0x68>;
+                       mux@77 {
+                               compatible = "nxp,pca9547";
+                               reg = <0x77>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               i2c@0 {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       reg = <0>;
+
+                                       eeprom@50 {
+                                               compatible = "at24,24c64";
+                                               reg = <0x50>;
+                                       };
+                                       eeprom@51 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x51>;
+                                       };
+                                       eeprom@53 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x53>;
+                                       };
+                                       eeprom@57 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x57>;
+                                       };
+                                       rtc@68 {
+                                               compatible = "dallas,ds3232";
+                                               reg = <0x68>;
+                                       };
+                               };
                        };
                };
 
index eb3c3de4ef539ad59dea32a58e933e86f468705b..63e81b010804f4e552dc14da69632211f2769403 100644 (file)
                };
 
                i2c@118000 {
-                       eeprom@51 {
-                               compatible = "at24,24c256";
-                               reg = <0x51>;
-                       };
-                       eeprom@52 {
-                               compatible = "at24,24c256";
-                               reg = <0x52>;
-                       };
-                       eeprom@53 {
-                               compatible = "at24,24c256";
-                               reg = <0x53>;
-                       };
-                       eeprom@54 {
-                               compatible = "at24,24c256";
-                               reg = <0x54>;
-                       };
-                       eeprom@55 {
-                               compatible = "at24,24c256";
-                               reg = <0x55>;
-                       };
-                       eeprom@56 {
-                               compatible = "at24,24c256";
-                               reg = <0x56>;
-                       };
-                       rtc@68 {
-                               compatible = "dallas,ds3232";
-                               reg = <0x68>;
-                               interrupts = <0x1 0x1 0 0>;
+                       mux@77 {
+                               compatible = "nxp,pca9547";
+                               reg = <0x77>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               i2c@0 {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       reg = <0>;
+
+                                       eeprom@51 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x51>;
+                                       };
+                                       eeprom@52 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x52>;
+                                       };
+                                       eeprom@53 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x53>;
+                                       };
+                                       eeprom@54 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x54>;
+                                       };
+                                       eeprom@55 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x55>;
+                                       };
+                                       eeprom@56 {
+                                               compatible = "at24,24c256";
+                                               reg = <0x56>;
+                                       };
+                                       rtc@68 {
+                                               compatible = "dallas,ds3232";
+                                               reg = <0x68>;
+                                               interrupts = <0x1 0x1 0 0>;
+                                       };
+                               };
                        };
                };