Before using tx2 nx, I was able to access the /dev/i2c-0 device in xavier nx and access the SOM’s eeprom and the carrier board’s eeprom with the following command.
$ i2cdetect -y 0
Then there was an eeprom at address 0x50 and 0x57 respectively, and I could flash him.
Currently, we are testing the tx2 nx board with our carrier board, and when trying to check the slave through the same process, no list appears.
And when using the i2cdump command, all bytes appear in the form of “XX”, and when you check the log with dmesg, you can see the message below.
“tegra-i2c 3160000.i2c: no acknowledge from address 0x50”
And when I used the i2cdump command for SCL and SDA, when I checked through the scope that the signal was passing, I could see the waveform in Xavier NX, but no signal in tx2-nx.
it’s board-id saved in the eeprom; this EEPROM ID for your custom board is not required.
please refer to Board Configuration session for details.
thanks
We will put certain data into the eeprom of the carrier board and use it for that purpose. It is not intended to modify the SOM’s eeprom.
If I read the board ID at boot time, it will read the eeprom with the board ID with a specific i2c driver, but I can’t read all the i2c drivers that appear by searching for i2cdetect -l.
The questions are summarized below:
Is the tx2-nx tested suitable carrier board match the xavier nx?
Can tx2-nx read EEPROM, etc., which can be checked from the slave of /dev/i2c-0 that can be checked on xaiver nx? What if I can read it?
you should enable i2c controller for EEPROM, please add below into TX2 NX device tree.
for example, $L4T_Sources/r32.5.1/Linux_for_Tegra/source/public/hardware/nvidia/platform/t18x/lanai/kernel-dts/common/tegra186-p3636-0001-common.dtsi
diff --git a/kernel-dts/common/tegra186-p3636-0001-common.dtsi b/kernel-dts/common/tegra186-p3636-0001-common.dtsi
index a4d80f3..cf66d45 100644
@@ -69,6 +69,11 @@
status = "okay";
};
+ /* gen8-i2c - ID EEPROM */
+ i2c@c250000 {
+ status="okay";
+ };
it’ll enable /dev/i2c-7 interface for EEPROM reading on TX2 NX.
thanks