From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Ina219 with linux kernel driver
Date: Tue, 08 Apr 2014 13:50:44 +0000 [thread overview]
Message-ID: <5343FEB4.6090808@roeck-us.net> (raw)
In-Reply-To: <CAK=2HV2_fnfPcK41i2fnAsgR7BMruKq1XB846Tt87wgmBP=NXA@mail.gmail.com>
On 04/08/2014 06:29 AM, Pierre Kancir wrote:
> 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?
>
Good question. This functionality was added mid-2013. What is your kernel version ?
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2014-04-08 13:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-08 13:29 [lm-sensors] Ina219 with linux kernel driver Pierre Kancir
2014-04-08 13:50 ` Guenter Roeck [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5343FEB4.6090808@roeck-us.net \
--to=linux@roeck-us.net \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.