Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1725125 > unrolled thread

Re: [v2,1/2] hwmon: (adcxx) add devictree bindings documentation

Started byGuenter Roeck <linux@roeck-us.net>
First post2017-09-01 16:40 +0200
Last post2017-09-04 09:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [v2,1/2] hwmon: (adcxx) add devictree bindings documentation Guenter Roeck <linux@roeck-us.net> - 2017-09-01 16:40 +0200
    Re: [v2,1/2] hwmon: (adcxx) add devictree bindings documentation Florian Eckert <fe@dev.tdt.de> - 2017-09-04 09:20 +0200

#1725125 — Re: [v2,1/2] hwmon: (adcxx) add devictree bindings documentation

FromGuenter Roeck <linux@roeck-us.net>
Date2017-09-01 16:40 +0200
SubjectRe: [v2,1/2] hwmon: (adcxx) add devictree bindings documentation
Message-ID<ukVgZ-6lx-1@gated-at.bofh.it>
On Mon, Aug 21, 2017 at 10:19:51AM +0200, Florian Eckert wrote:
> Document the devicetree bindings for the adcxx.
> 
> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
> ---
> v2:
> - use regulator voltage binding
> 
>  Documentation/devicetree/bindings/hwmon/adcxx.txt | 24 +++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/adcxx.txt
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/adcxx.txt b/Documentation/devicetree/bindings/hwmon/adcxx.txt
> new file mode 100644
> index 000000000000..a94a5fe21b6d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/adcxx.txt
> @@ -0,0 +1,24 @@
> +adcxx properties
> +
> +Required properties:
> +- compatible: Must be one of the following:
> +	- "national,adcxx1s" for adcxx1s
> +	- "national,adcxx2s" for adcxx2s
> +	- "national,adcxx4s" for adcxx4s
> +	- "national,adcxx8s" for adcxx8s
> +- reg: SPI address for chip
> +
> +Optional properties:
> +
> +- vref-supply
> +  The external reference in microvolt for this device is set to this value.
> +  If it does not exists the reference will be set to 3300000uV (3.3V).

s/exists/exist/

> +
> +Example:
> +
> +adc@6 {
> +	compatible = "national,adcxx2s";
> +	reg = <6 0>;
> +	spi-max-frequency = <1000000>;

I asssume that means that standard spi properties are accepted / required,
which I think should be documented. We'll need input from Rob for that.

Thanks,
Guenter

> +	vref-supply = <&vref>;
> +};

[toc] | [next] | [standalone]


#1725883

FromFlorian Eckert <fe@dev.tdt.de>
Date2017-09-04 09:20 +0200
Message-ID<ulTPQ-2vA-11@gated-at.bofh.it>
In reply to#1725125
Hello Guenter

Thank you again for reviewing my patches!
It was the first time for me :-) to add something to the kernel.

>> +- vref-supply
>> +  The external reference in microvolt for this device is set to this 
>> value.
>> +  If it does not exists the reference will be set to 3300000uV 
>> (3.3V).
> 
> s/exists/exist/
> 

Sorry for the noise and thank you for the hint.

>> +
>> +Example:
>> +
>> +adc@6 {
>> +	compatible = "national,adcxx2s";
>> +	reg = <6 0>;
>> +	spi-max-frequency = <1000000>;
> 
> I asssume that means that standard spi properties are accepted / 
> required,
> which I think should be documented. We'll need input from Rob for that.

Yes this is a standard option.
I have added this because 
"Documentation/devicetree/bindings/hwmon/lm70.txt"
did the same. This was my pattern.

I will send a follow up patch set if this is clarivied. Let me know if 
this is needed or not.

Thanks
Florian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web