Reading out the LTC2945
Added by Jonas Mair over 2 years ago
I am currently benchmarking my design and want to know the power draw by the system. Under https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/Power_Supply_Requirements I read, that there is a chip on the board, which gives me exactly that, but in the datasheet under the listed I2C devices, this chip is not shown. What is the I2C Address of this chip or how would I go about reading that chip out? Do you maybe have an already working driver for that?
If not, is there another way to read out the power draw of the system?
RE: Reading out the LTC2945 - Added by Tim Iskander over 2 years ago
the schematic for the baseboard is available here... https://support.criticallink.com/redmine/attachments/download/22646/80-000578RC-10_SCH_RevB.PDF
The LTC2945 is at address 6F on I2C bus 1
There is user-space hwmon entry for this device (if you are using the CL provided device tree)
cat /sys/class/hwmon/hwmon1/power1_input will show you the power used on the 5V rail, although it is in strange units
on a dev kit here, I get
root@mitysom-c5:~# cat /sys/class/hwmon/hwmon1/power1_input 18523750
which corresponds to 1.85 Watts.
The corresponding driver is drivers/hwmon/ltc2945.c in the linux kernel source tree