* [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation [not found] <20181022210243.837-1-charles-antoine.couret@essensium.com> @ 2018-10-22 21:02 ` Charles-Antoine Couret 2018-10-23 15:43 ` Rob Herring 0 siblings, 1 reply; 3+ messages in thread From: Charles-Antoine Couret @ 2018-10-22 21:02 UTC (permalink / raw) To: linux-iio; +Cc: Charles-Antoine Couret, robh+dt, mark.rutland, devicetree Description how to invoke ad7949 driver from device tree file. Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com> --- V1 to V3: * Add prefix vendor * Improve patch description .../devicetree/bindings/iio/adc/ad7949.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ad7949.txt diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt new file mode 100644 index 000000000000..f1c3af53f5cc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt @@ -0,0 +1,18 @@ +* Analog Devices AD7949/AD7682/AD7689 + +Required properties: + - compatible: Should be one of + * "adi,ad7949" + * "adi,ad7682" + * "adi,ad7689" + - reg: spi chip select number for the device + - vref-supply: The regulator supply for ADC reference voltage + - spi-max-frequency: Max SPI frequency to use (< 33000000) + +Example: +adc@0 { + compatible = "adi,ad7949"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <200000>; +}; -- 2.19.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation 2018-10-22 21:02 ` [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation Charles-Antoine Couret @ 2018-10-23 15:43 ` Rob Herring 2018-10-28 15:20 ` Jonathan Cameron 0 siblings, 1 reply; 3+ messages in thread From: Rob Herring @ 2018-10-23 15:43 UTC (permalink / raw) To: Charles-Antoine Couret; +Cc: linux-iio, mark.rutland, devicetree On Mon, Oct 22, 2018 at 11:02:43PM +0200, Charles-Antoine Couret wrote: > Description how to invoke ad7949 driver from device tree file. Use subject prefixes that match the subsystem (i.e run git log --oneline <dir> to see). Something like this would be better: dt-bindings: iio: adc: Add Analog Devices AD7949, AD7682 and AD7689 > > Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com> > --- > V1 to V3: > * Add prefix vendor > * Improve patch description > > .../devicetree/bindings/iio/adc/ad7949.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ad7949.txt > > diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt > new file mode 100644 > index 000000000000..f1c3af53f5cc > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt > @@ -0,0 +1,18 @@ > +* Analog Devices AD7949/AD7682/AD7689 > + > +Required properties: > + - compatible: Should be one of > + * "adi,ad7949" > + * "adi,ad7682" > + * "adi,ad7689" > + - reg: spi chip select number for the device > + - vref-supply: The regulator supply for ADC reference voltage > + - spi-max-frequency: Max SPI frequency to use (< 33000000) This should be optional and only be needed if the frequency needs to be limited below what the host and device can support. IOW, a board limitation. The host and device drivers already need to know their maximum frequencies to validate this value. > + > +Example: > +adc@0 { > + compatible = "adi,ad7949"; > + reg = <0>; > + vref-supply = <&vdd_supply>; > + spi-max-frequency = <200000>; > +}; > -- > 2.19.1 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation 2018-10-23 15:43 ` Rob Herring @ 2018-10-28 15:20 ` Jonathan Cameron 0 siblings, 0 replies; 3+ messages in thread From: Jonathan Cameron @ 2018-10-28 15:20 UTC (permalink / raw) To: Rob Herring; +Cc: Charles-Antoine Couret, linux-iio, mark.rutland, devicetree On Tue, 23 Oct 2018 10:43:19 -0500 Rob Herring <robh@kernel.org> wrote: > On Mon, Oct 22, 2018 at 11:02:43PM +0200, Charles-Antoine Couret wrote: > > Description how to invoke ad7949 driver from device tree file. > > Use subject prefixes that match the subsystem (i.e run git log --oneline > <dir> to see). Something like this would be better: > > dt-bindings: iio: adc: Add Analog Devices AD7949, AD7682 and AD7689 I've modified this and changed as below in the interests of saving everyone time that a V4 and it's review would take! Thanks for the review Rob. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > > > > > Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@essensium.com> > > --- > > V1 to V3: > > * Add prefix vendor > > * Improve patch description > > > > .../devicetree/bindings/iio/adc/ad7949.txt | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/adc/ad7949.txt > > > > diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt > > new file mode 100644 > > index 000000000000..f1c3af53f5cc > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt > > @@ -0,0 +1,18 @@ > > +* Analog Devices AD7949/AD7682/AD7689 > > + > > +Required properties: > > + - compatible: Should be one of > > + * "adi,ad7949" > > + * "adi,ad7682" > > + * "adi,ad7689" > > + - reg: spi chip select number for the device > > + - vref-supply: The regulator supply for ADC reference voltage > > + - spi-max-frequency: Max SPI frequency to use (< 33000000) > > This should be optional and only be needed if the frequency needs to be > limited below what the host and device can support. IOW, a board > limitation. The host and device drivers already need to know their > maximum frequencies to validate this value. I dropped this from the binding as it is generic anyway rather than device specific. > > > + > > +Example: > > +adc@0 { > > + compatible = "adi,ad7949"; > > + reg = <0>; > > + vref-supply = <&vdd_supply>; > > + spi-max-frequency = <200000>; > > +}; > > -- > > 2.19.1 > > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-28 15:20 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20181022210243.837-1-charles-antoine.couret@essensium.com> 2018-10-22 21:02 ` [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation Charles-Antoine Couret 2018-10-23 15:43 ` Rob Herring 2018-10-28 15:20 ` Jonathan Cameron
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).