From: Jonathan Cameron <jic23@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: jacopo mondi <jacopo@jmondi.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Jacopo Mondi <jacopo+renesas@jmondi.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Magnus Damm <magnus.damm@gmail.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hartmut Knaack <knaack.h@gmx.de>,
meerw@pmeerw.net, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-iio@vger.kernel.org,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 1/4] Documentation: dt-bindings: iio: Add max961x
Date: Sat, 25 Feb 2017 15:56:12 +0000 [thread overview]
Message-ID: <5a02d05b-0626-cac5-a378-d83d9ff41fa1@kernel.org> (raw)
In-Reply-To: <CAMuHMdUzT5gSoXEyDeaKSdKBaT4jEVCKOSChxdR0bbniaz_qvA@mail.gmail.com>
On 25/02/17 15:34, Geert Uytterhoeven wrote:
> Hi Jonathan,
>
> On Sat, Feb 25, 2017 at 4:19 PM, Jonathan Cameron <jic23@kernel.org> wrote:
>> On 24/02/17 15:48, jacopo mondi wrote:
>>> On 24/02/2017 16:33, Lars-Peter Clausen wrote:
>>>> On 02/24/2017 04:22 PM, Geert Uytterhoeven wrote:
>>>>> On Fri, Feb 24, 2017 at 4:05 PM, Jacopo Mondi <jacopo+renesas@jmondi.org> wrote:
>>>>>> --- /dev/null
>>>>>> +++ b/Documentation/devicetree/bindings/iio/adc/max961x.txt
>>>>>> @@ -0,0 +1,27 @@
>>>>>> +* Maxim max9611/max9612 current sense amplifier with 12-bits ADC interface
>>>>>> +
>>>>>> +Maxim max9611/max9612 is an high-side current sense amplifier with integrated
>>>>>> +12-bits ADC communicating over I2c bus.
>>>>>> +The device node for this driver shall be a child of a I2c controller.
>>>>>> +
>>>>>> +Required properties
>>>>>> + - compatible: Should be "maxim,max961x"
>>>>>> + - reg: The 7-bits long I2c address of the device
>>>>>> + - shunt-resistor: Resistor value, in uOhm, of the current sense shunt
>>>>>> + resistor.
>>>>>
>>>>> shunt-resistor-micro-ohms?
>>>>
>>>> I'll take this one further:
>>>>
>>>> maxim,shunt-resistor-micro-ohms?
>>>>
>>>> Although there is precedence for just 'shunt-resistor' in the ina2xx bindings.
>>>>
>>>
>>> And that's where I took "inspiration" from :)
>> Which raises another open question. Why IIO rather than hwmon like the ina2xx?
>
> Actually we have both drivers/hwmon/ina2xx.c and drivers/iio/adc/ina2xx-adc.c.
Oops,. I'd forgotten about that.
Need that discussion to happen though before I take it into IIO though.
>
>> Whether we are better going for the existing binding without units, or
>> 'fixing' that is a question for the device tree maintainers. I guess that
>> one snuck through.
>
> ltc4151 uses shunt-resistor-micro-ohms.
> sgtl5000 uses micbias-resistor-k-ohms.
>
> So there's precedence for everything ;-)
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2017-02-25 15:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 15:05 [PATCH 0/4] iio: adc: Maxim max961x driver Jacopo Mondi
2017-02-24 15:05 ` [PATCH 3/4] iio: adc: Add max9611/9612 ADC driver Jacopo Mondi
[not found] ` <1487948756-25172-4-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-02-25 15:53 ` Jonathan Cameron
[not found] ` <61af9d83-ec8f-33f9-52b5-feb50b399edd-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-27 7:45 ` jacopo mondi
2017-03-05 10:39 ` Jonathan Cameron
[not found] ` <1487948756-25172-1-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-02-24 15:05 ` [PATCH 1/4] Documentation: dt-bindings: iio: Add max961x Jacopo Mondi
[not found] ` <1487948756-25172-2-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-02-24 15:22 ` Geert Uytterhoeven
[not found] ` <CAMuHMdU9UL9ZyiPJqtTTNS=KOScu6M3c7jQgD1vZ+gTiTCAYMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-24 15:33 ` Lars-Peter Clausen
[not found] ` <64ed3cde-7627-eb60-c507-b68447012502-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2017-02-24 15:48 ` jacopo mondi
2017-02-25 15:19 ` Jonathan Cameron
[not found] ` <a0217564-0730-16f2-491f-86ea3561dc2e-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-25 15:34 ` Geert Uytterhoeven
2017-02-25 15:56 ` Jonathan Cameron [this message]
2017-02-24 15:29 ` Geert Uytterhoeven
[not found] ` <CAMuHMdWjtRZpjGi8BPkDGKGPr5uBr5jsjLi80COUDruZLuTXfQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-24 15:50 ` jacopo mondi
2017-02-24 15:54 ` Geert Uytterhoeven
2017-02-24 15:05 ` [PATCH 2/4] iio: Documentation: Add max961x sysfs documentation Jacopo Mondi
[not found] ` <1487948756-25172-3-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-02-25 15:54 ` Jonathan Cameron
[not found] ` <56b35a65-a23d-68ac-17d6-cf46f9352ab7-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-03-21 16:09 ` jacopo
2017-03-22 20:43 ` Jonathan Cameron
2017-02-24 15:05 ` [PATCH 4/4] arm64: dts: salvator-x: Add current sense amplifiers Jacopo Mondi
2017-02-25 16:09 ` [PATCH 0/4] iio: adc: Maxim max961x driver Jonathan Cameron
[not found] ` <f6b94b05-c0f8-239e-733d-dc93a7683184-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-02-27 9:09 ` jacopo mondi
[not found] ` <9a1d0108-8508-adc5-8985-d1133a3317fd-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-03-05 10:49 ` Jonathan Cameron
[not found] ` <3e4b368b-102b-e626-3777-97e49bb5ae56-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-03-07 19:12 ` jacopo mondi
[not found] ` <4a8af859-7fe8-3ef9-21b5-42cbb41eb36b-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2017-03-13 20:41 ` Jonathan Cameron
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=5a02d05b-0626-cac5-a378-d83d9ff41fa1@kernel.org \
--to=jic23@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=jacopo+renesas@jmondi.org \
--cc=jacopo@jmondi.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=meerw@pmeerw.net \
--cc=robh+dt@kernel.org \
--cc=wsa+renesas@sang-engineering.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).