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@ef600700 {
compatible = "ibm,iic-460ex", "ibm,iic";
reg = <0xef600700 0x00000014>;
interrupt-parent = <&UIC0>;
interrupts = <0x2 0x4>;
#address-cells = <1>;
#size-cells = <0>;
switch@76 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "nxp,pca9548";
reg = <0x76>;
i2c@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
eeprom@57 {
compatible = "at24,24c64";
reg = <0x57>;
pagesize = <32>;
};
switch@77 {
compatible = "nxp,pca9548";
reg = <0x77>;
#address-cells = <1>;
#size-cells = <0>;
....
...ending lines not included.
...
}
Vijay Shrivastav
_______________________________________________
eldk mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/eldk