Other Parts Discussed in Thread: INA226
Tool/software:
Can we use Linux to enable the on-board INA226 instances to measure power?
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.
Tool/software:
Can we use Linux to enable the on-board INA226 instances to measure power?
Hello,
Using the below patch we can enable the INA226 to measure power on TDA4AEN/AM67-EVM.
0001-arm64-dts-ti-k3-j722s-evm-Add-INA226-nodes-for-power.patch
Download the above patch to:
$SDK_Path/board-support/ti-linux-kernel-6.6.44+git-ti cd $SDK_Path/board-support/ti-linux-kernel-6.6.44+git-ti git am 0001-arm64-dts-ti-k3-j722s-evm-Add-INA226-nodes-for-power.patch cd ../.. make linux
Edit $SDK_Path/Rules.make file sudh that ROOTFS_PART=/media/$USER/root
Insert the SD card of 10.1 SDK.
sudo make linux-install
Once you boot with SD after the above steps you can see the hwmon interfaces in Linux giving Live power numbers:
root@j722s-evm:~# cat /sys/class/hwmon/hwmon*/power1_input 1962500 81250 12500 81250 0 18750 18750 5281250 181250 68750 81250 Above are the power numbers in micro Watts root@j722s-evm:~# cat /sys/class/hwmon/hwmon*/in1_input 863 850 3300 1798 749 1800 1798 3300 1099 3295 1801 Above are the voltage rails in milli Volts
Note: I have used the latest 10.1 Linux SDK to enable the feature.
Best Regards,
Keerthy