This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AM6548: IIO Interface for INA226

Part Number: AM6548
Other Parts Discussed in Thread: INA226

Tool/software: TI C/C++ Compiler

I am using the AM65xx EVM IDK board with SDK 6.0 latest release. As per schematics the board contains INA226 Current monitoring chip over I2C. 

How can I monitor the current using above SDK and INA 226.

I enabled the IIO driver support from kernel config for INA226 but still INA226 ins not visible in /sys/bus/iio

Thanks,

Sarfaraz

  • Part Number: AM6548

    Tool/software: TI C/C++ Compiler

    What changes needs to be done to get the INA226 current monitoring in /sys/class/hwmon.

    Currently I am using SDK 6.0 but the /sys/class/hwmon folder is empty.

  • Hello Sarfaraz,

    INA226 was included on the board for power characterization (e.g. low power modes, processing intensive usecases, etc). In a lot of those use cases, it does not make sense to read the INA226 from the processor under test. So an external processor (e.g. a beaglebone black) is typically connected to the I2C header and reads the INA226.

    Take a look at the AM65x device tree files in Linux SDK 6.0 under arch/arm64/boot/dts/ti/. INA226 is not currently populated in the dts files, so I would not expect the Linux OS to be aware that the hardware exists.

    So INA226 is not enabled in AM65x Linux software out of the box, but you should still be able to add it to the device tree and get it working.

    Regards,

    Nick