Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

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>

authored by

Hongtao Jia and committed by
Scott Wood
afc4b473 788d399d

+73 -47
+32 -19
arch/powerpc/boot/dts/b4qds.dtsi
··· 120 120 }; 121 121 122 122 i2c@118000 { 123 - eeprom@50 { 124 - compatible = "at24,24c64"; 125 - reg = <0x50>; 126 - }; 127 - eeprom@51 { 128 - compatible = "at24,24c256"; 129 - reg = <0x51>; 130 - }; 131 - eeprom@53 { 132 - compatible = "at24,24c256"; 133 - reg = <0x53>; 134 - }; 135 - eeprom@57 { 136 - compatible = "at24,24c256"; 137 - reg = <0x57>; 138 - }; 139 - rtc@68 { 140 - compatible = "dallas,ds3232"; 141 - reg = <0x68>; 123 + mux@77 { 124 + compatible = "nxp,pca9547"; 125 + reg = <0x77>; 126 + #address-cells = <1>; 127 + #size-cells = <0>; 128 + 129 + i2c@0 { 130 + #address-cells = <1>; 131 + #size-cells = <0>; 132 + reg = <0>; 133 + 134 + eeprom@50 { 135 + compatible = "at24,24c64"; 136 + reg = <0x50>; 137 + }; 138 + eeprom@51 { 139 + compatible = "at24,24c256"; 140 + reg = <0x51>; 141 + }; 142 + eeprom@53 { 143 + compatible = "at24,24c256"; 144 + reg = <0x53>; 145 + }; 146 + eeprom@57 { 147 + compatible = "at24,24c256"; 148 + reg = <0x57>; 149 + }; 150 + rtc@68 { 151 + compatible = "dallas,ds3232"; 152 + reg = <0x68>; 153 + }; 154 + }; 142 155 }; 143 156 }; 144 157
+41 -28
arch/powerpc/boot/dts/t4240qds.dts
··· 118 118 }; 119 119 120 120 i2c@118000 { 121 - eeprom@51 { 122 - compatible = "at24,24c256"; 123 - reg = <0x51>; 124 - }; 125 - eeprom@52 { 126 - compatible = "at24,24c256"; 127 - reg = <0x52>; 128 - }; 129 - eeprom@53 { 130 - compatible = "at24,24c256"; 131 - reg = <0x53>; 132 - }; 133 - eeprom@54 { 134 - compatible = "at24,24c256"; 135 - reg = <0x54>; 136 - }; 137 - eeprom@55 { 138 - compatible = "at24,24c256"; 139 - reg = <0x55>; 140 - }; 141 - eeprom@56 { 142 - compatible = "at24,24c256"; 143 - reg = <0x56>; 144 - }; 145 - rtc@68 { 146 - compatible = "dallas,ds3232"; 147 - reg = <0x68>; 148 - interrupts = <0x1 0x1 0 0>; 121 + mux@77 { 122 + compatible = "nxp,pca9547"; 123 + reg = <0x77>; 124 + #address-cells = <1>; 125 + #size-cells = <0>; 126 + 127 + i2c@0 { 128 + #address-cells = <1>; 129 + #size-cells = <0>; 130 + reg = <0>; 131 + 132 + eeprom@51 { 133 + compatible = "at24,24c256"; 134 + reg = <0x51>; 135 + }; 136 + eeprom@52 { 137 + compatible = "at24,24c256"; 138 + reg = <0x52>; 139 + }; 140 + eeprom@53 { 141 + compatible = "at24,24c256"; 142 + reg = <0x53>; 143 + }; 144 + eeprom@54 { 145 + compatible = "at24,24c256"; 146 + reg = <0x54>; 147 + }; 148 + eeprom@55 { 149 + compatible = "at24,24c256"; 150 + reg = <0x55>; 151 + }; 152 + eeprom@56 { 153 + compatible = "at24,24c256"; 154 + reg = <0x56>; 155 + }; 156 + rtc@68 { 157 + compatible = "dallas,ds3232"; 158 + reg = <0x68>; 159 + interrupts = <0x1 0x1 0 0>; 160 + }; 161 + }; 149 162 }; 150 163 }; 151 164