Other Parts Discussed in Thread: AM3352, TPS65217
Tool/software: Linux
Hi, i am trying to configure USB HUB(USB2517) using SMBus protocol but read, write is failing , below settings i am using in dts file,
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
status = "okay";
clock-frequency = <100000>;
lm75@48 {
compatible = "lm75";
reg = <0x48>;
status = "okay";
};
usb2517@58 {
compatible = "microchip,usb2517";
reg = <0x58>;
tatus = "okay";
};
};
//application to read data:
rc = ioctl(file, I2C_SLAVE, 0x58);
if (rc < 0)
err(errno, "Tried to set device address '0x%02x'", addr);
data = i2c_smbus_read_byte_data(file, 0x00);
printf("%s: device 0x%02x at address 0x%02x: 0x%02x\n", path, addr, reg, data);
thankyou,