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.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_arm64_2D00_dts_2D00_ti_2D00_k3_2D00_j722s_2D00_evm_2D00_Add_2D00_INA226_2D00_nodes_2D00_for_2D00_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