Configure I2C1 as Slave in Jetson TX2 NX

Hi Everyone,

I want to configure i2c1 of NVIDIA Jetson TX2 NX as slave.I tried by enabling the following configs in tegradef_config file
CONFIG_I2C_TEGRA_SLAVE=y
CONFIG_I2C_SLAVE_EEPROM=y
and added the following node in the device tree file
i2c@c240000 {
status=“okay”;
compatible = “nvidia,tegrat186-i2c-slave”;
eeprom@64 {
reg = <0x64>;
compatible=“slave-24c02”;
status = “okay”;
};
};

But after flashing with the above configuration,I am not able to see the device with 0x64 address while tried to read the i2c bus.What all changes are required in the device tree file to configure i2c1 as slave? Kindly guide me

Thanks in advance

this is incorrect. there’s no driver with this compatible.
please try calling this driver, $public_sources/kernel_src/kernel/kernel-4.9/drivers/i2c/busses/i2c-tegra-slave.c by using compatible = "nvidia,tegra210-i2c-slave".

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.