Re: [PATCH v2] hwmon: Add LTC2990 sensor driver

From: Guenter Roeck
Date: Wed Jan 13 2016 - 08:57:42 EST


On 01/13/2016 05:51 AM, Mike Looijmans wrote:
On 13-01-16 14:24, Guenter Roeck wrote:
On 01/13/2016 03:05 AM, Mike Looijmans wrote:
This adds support for the Linear Technology LTC2990 I2C System Monitor.
The LTC2990 supports a combination of voltage, current and temperature
monitoring. This driver currently only supports reading two currents
by measuring two differential voltages across series resistors, in
addition to the Vcc supply voltage and internal temperature.

This is sufficient to support the Topic Miami SOM which uses this chip
to monitor the currents flowing into the FPGA and the CPU parts.

Signed-off-by: Mike Looijmans <mike.looijmans@xxxxxxxx>

Mike,

That looks much better. Can you send me the output of i2cdump for the chip ?
That would help me writing module test code for it.

I'm kinda interested into how that would work.

https://github.com/groeck/module-tests

I'll have to remove the driver first to get i2cdump to work on the chip. I cannot force a device removal from user space while running, can I?
And i suppose you want a dump of a chip in running status? (On boot, all are registers are simply set to zero)


Just use i2cdump -f while the driver is active.

Thanks,
Guenter