Reading out the LTC2945

Added by Jonas Mair almost 3 years ago


I am currently benchmarking my design and want to know the power draw by the system. Under 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?


Replies (2)

RE: Reading out the LTC2945 - Added by Tim Iskander almost 3 years ago

the schematic for the baseboard is available here...
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

which corresponds to 1.85 Watts.

The corresponding driver is drivers/hwmon/ltc2945.c in the linux kernel source tree


RE: Reading out the LTC2945 - Added by Jonas Mair almost 3 years ago

Thanks for the information Tim, that helps a lot.
I've got a custom dev tree, but then I know where to look and copy the entry from^^


    Go to top
    Add picture from clipboard (Maximum size: 1 GB)