I am using the TX2 NX with a custom carrier board. My understanding from the 32.6.1 Software Features Documentation is that all modules include the INA3221 module for power monitoring, but communication on the i2c bus seems to be timing out and I cannot get power monitoring details.
the Jetson TX2 NX module has a three-channel INA3221 power monitors at I2C address 0x40, bus 2.
could you please check via system nodes, /sys/bus/i2c/drivers/ina3221x/2-0040/iio:device0/
nvidia@tx2-nx:~$ ls -la /sys/bus/i2c/drivers/ina3221x/2-0040/iio:device0/
ls: cannot access '/sys/bus/i2c/drivers/ina3221x/2-0040/iio:device0/': No such file or directory
here is the section from decompiled from the device tree I’m using. i2c_bus_2_dts.txt (1.5 KB)
this is available by default, you don’t even modify device tree to check ina3221.
you should assign a \ before : for checking the node,
for example, $ ls -la /sys/bus/i2c/drivers/ina3221x/2-0040/iio\:device0/
I retried with your modification. Device still does not exist. From my original post, the driver fails to probe due to communication errors with the ina3221.
nvidia@tx2-nx:~$ ls -la /sys/bus/i2c/drivers/ina3221x/
total 0
drwxr-xr-x 2 root root 0 Aug 26 09:21 .
drwxr-xr-x 40 root root 0 Aug 26 09:21 ..
--w------- 1 root root 4096 Aug 26 09:21 bind
--w------- 1 root root 4096 Aug 26 09:21 uevent
--w------- 1 root root 4096 Aug 26 09:21 unbind
nvidia@tx2-nx:~$ ls -la /sys/bus/i2c/drivers/ina3221x/2-0040/iio\:device0/
ls: cannot access '/sys/bus/i2c/drivers/ina3221x/2-0040/iio:device0/': No such file or directory
I am currently investigating other reasons why communication may be failing for that bus. Does the carrier card need to supply pull up resistors for that bus? The documentation doesn’t say it should, but the voltages on those pins of the SODIMM connector are too low.
I added pullup resistors to those pins on the SODIMM connector. I am now seeing proper 3.3V on those pins, but communication still times out and the driver for the ina3221 fails to probe.
I realized that I had created a flawed pinmux that was being flashed to the mb1_bct. After making a correction and reflashing that partition the i2c bus works correctly and I now have communication with the ina3221 device.