All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Ina219 with linux kernel driver
@ 2014-04-08 13:29 Pierre Kancir
  2014-04-08 13:50 ` Guenter Roeck
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Pierre Kancir @ 2014-04-08 13:29 UTC (permalink / raw)
  To: lm-sensors

Hi,

I am trying to use ina219 sensor (http://www.adafruit.com/products/904)
with linux kernel driver on beaglebone black.

I want to use device tree overlay to use the sensor. I follow kernel
indications (
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/i2c/ina2xx.txt)
and the sensor works as expected.

But adafruit board use 0.1ohms and default driver value for shunt-resistor
is 10mOhms so return value are wrong.

I want to modify value in device tree as indicated

ina219@40 {
          compatible = "ti,ina219";
          reg = <0x40>;
          shunt-resistor = <100000>;
 };

but changing shunt-resistor value does nothing. The sensor is always create
with 10mOhms value

ina2xx 1-0040: power monitor ina219 (Rshunt = 10000 uOhm)

How can i change the shunt-resistor value to get the proper return?

thanks,

Pierre
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-08 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-08 13:29 [lm-sensors] Ina219 with linux kernel driver Pierre Kancir
2014-04-08 13:50 ` Guenter Roeck
2014-04-08 14:13 ` Pierre Kancir
2014-04-08 15:08 ` Guenter Roeck
2014-04-08 15:57 ` Pierre Kancir
2014-04-08 16:00 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.