Hi yipingwang,
Thank you for your reply.
I followed drivers/i2c/muxes/i2c-mux-pca954x.c and created i2c hub device driver for TCA9548APWR device as attached with this post.
Below is my dts modifuication:
&i2c2 {
status = "okay";
// i2c-sda-hold-time-ns = <1000>;
// clock-frequency = <0x186a0>;
i2c-mux@71 {
compatible = "ti,tca9548";
//compatible = "nxp,pca9548";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x71>;
i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1>;
rtc:rtc_dev@51 {
#sound-dai-cells = <0>;
compatible = "nxp,pcf2129";
reg = <0x51>;
};
};
i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x02>;
eeprom:eeprom@50 {
compatible = "nxp,24lc02";
reg = <0x50>;
#shunt-resistor = <500>;
};
};
i2c@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x3>;
pcie:pcie@38 {
compatible = "nxp,sa56004";
reg = <0x38>;
#vcc-supply = <&sb_3v3>;
};
};
i2c@4 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x4>;
temp_sensor:temp-sensor@4d {
compatible = "nxp,sa56004";
reg = <0x4d>;
#vcc-supply = <&sb_3v3>;
};
};
};
};
while booting linux it is showing error as given below
i2c /dev entries driver
tca954x 2-0071: probe failed
I tried to read and write in i2c hub switch as given below:
i2ctransfer 2 w17@0x71 0x4 0x56-
i2ctransfer 2 w1@0x71 0x4 r1
but it is showing "i2ctransfer: I2C_RDWR: Resource temporarily unavailable".
I have attached for linux booting log file,tca9548 driver code .
Please suggest me what wrong i am doing ?.
Is my dts and driver file for TCA9548 i2c hub switch is correct?.
Regards,
Amit Keshri