[ELDK] device tree bindings for cascaded i2c switches

Vijay Shrivastav vijays at nubroad.com
Sat Jul 4 02:28:54 CEST 2015


Hello, 

 

looking for some help in creating the device tree file. I have a chain of
9548 i2c mux/switch. On boot Linux is creating /dev/i2c* device files for
all the channels of the first level 9548, but the no i2c bus device files
area created for second level 9548 channels. Also other devices such as
EEPROM and temperature sensors are ignored.

 

Attached here is the section of the dts file, for PPC. Is this is a
restriction in how i2c busses are traversed  or there is something wrong in
the declaration? Linux kernel is 2.6.27.

 

Thanks.

 

--dts file--

 

IIC0: i2c at ef600700 {

compatible = "ibm,iic-460ex", "ibm,iic";

reg = <0xef600700 0x00000014>;

interrupt-parent = <&UIC0>;

interrupts = <0x2 0x4>; 

#address-cells = <1>;

#size-cells = <0>;

switch at 76 {

#address-cells = <1>;

#size-cells = <0>;

compatible = "nxp,pca9548";

reg = <0x76>;

 

i2c at 0 {

reg = <0>;

#address-cells = <1>;

#size-cells = <0>;

 

eeprom at 57 {

compatible = "at24,24c64";

reg = <0x57>;

pagesize = <32>;

};

 

switch at 77 {

compatible = "nxp,pca9548";

reg = <0x77>;

#address-cells = <1>;

#size-cells = <0>;

....

...ending lines not included.

...

}

Vijay Shrivastav

 



More information about the eldk mailing list