* [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings
@ 2017-01-21 14:42 Marek Vasut
[not found] ` <20170121144212.8858-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2017-01-21 14:42 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA
Cc: Marek Vasut, Geert Uytterhoeven, Simon Horman, Jonathan Cameron,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang,
Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA
Add DT bindings for the Renesas RCar GyroADC block. This block is
a simple 4/8-channel ADC which samples 12/15/24 bits of data every
cycle from all channels.
Signed-off-by: Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
Cc: Simon Horman <horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
.../bindings/iio/adc/renesas,gyroadc.txt | 93 ++++++++++++++++++++++
1 file changed, 93 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
new file mode 100644
index 000000000000..081947367135
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
@@ -0,0 +1,93 @@
+* Renesas RCar GyroADC device driver
+
+Required properties:
+- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc".
+ Use "renesas,r8a7792-gyroadc" for a GyroADC with interrupt
+ block found in R8A7792.
+- reg: Address and length of the register set for the device
+- clocks: References to all the clocks specified in the clock-names
+ property as specified in
+ Documentation/devicetree/bindings/clock/clock-bindings.txt.
+- clock-names: Shall contain "fck" and "if". The "fck" is the GyroADC block
+ clock, the "if" is the interface clock.
+- power-domains: Must contain a reference to the PM domain, if available.
+- #address-cells: Should be <1> (setting for the subnodes) for all ADCs
+ except for "fujitsu,mb88101a". Should be <0> (setting for
+ only subnode) for "fujitsu,mb88101a".
+- #size-cells: Should be <0> (setting for the subnodes)
+
+Sub-nodes:
+Optionally you can define subnodes which select the connected ADC type and
+reference voltage for the GyroADC channels.
+
+Required properties for subnodes:
+- compatible: Should be either of:
+ "fujitsu,mb88101a"
+ - Fujitsu MB88101A compatible mode,
+ 12bit sampling, up to 4 channels can be sampled in
+ round-robin fashion. One Fujitsu chip supplies four
+ GyroADC channels with data as it contains four ADCs
+ on the chip and thus for 4-channel operation, single
+ MB88101A is required. The Cx chipselect lines of the
+ MB88101A connect directly to two CHS lines of the
+ GyroADC, no demuxer is required. The data out line
+ of each MB88101A connects to a shared input pin of
+ the GyroADC.
+ "ti,adcs7476" or "ti,adc121" or "adi,ad7476"
+ - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode,
+ 15bit sampling, up to 8 channels can be sampled in
+ round-robin fashion. One TI/ADI chip supplies single
+ ADC channel with data, thus for 8-channel operation,
+ 8 chips are required. A 3:8 chipselect demuxer is
+ required to connect the nCS line of the TI/ADI chips
+ to the GyroADC, while MISO line of each TI/ADI ADC
+ connects to a shared input pin of the GyroADC.
+ "maxim,max1162" or "maxim,max11100"
+ - Maxim MAX1162 / Maxim MAX11100 compatible mode,
+ 16bit sampling, up to 8 channels can be sampled in
+ round-robin fashion. One Maxim chip supplies single
+ ADC channel with data, thus for 8-channel operation,
+ 8 chips are required. A 3:8 chipselect demuxer is
+ required to connect the nCS line of the MAX chips
+ to the GyroADC, while MISO line of each Maxim ADC
+ connects to a shared input pin of the GyroADC.
+- reg: Should be the number of the analog input. Should be present
+ for all ADCs except "fujitsu,mb88101a".
+- vref-supply: Reference to the channel reference voltage regulator.
+
+Example:
+ vref_max1162: regulator-vref-max1162 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "MAX1162 Vref";
+ regulator-min-microvolt = <4096000>;
+ regulator-max-microvolt = <4096000>;
+ };
+
+ &adc {
+ compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
+ reg = <0 0xe6e54000 0 64>;
+ clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&clk_65m>;
+ clock-names = "fck", "if";
+ power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
+
+ pinctrl-0 = <&adc_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ adc@0 {
+ reg = <0>;
+ compatible = "maxim,max1162";
+ vref-supply = <&vref_max1162>;
+ };
+
+ adc@1 {
+ reg = <1>;
+ compatible = "maxim,max1162";
+ vref-supply = <&vref_max1162>;
+ };
+ };
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread[parent not found: <20170121144212.8858-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings [not found] ` <20170121144212.8858-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-01-23 17:08 ` Rob Herring 2017-01-23 19:56 ` Marek Vasut 0 siblings, 1 reply; 10+ messages in thread From: Rob Herring @ 2017-01-23 17:08 UTC (permalink / raw) To: Marek Vasut Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang, devicetree-u79uwXL29TY76Z2rM5mHXA On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: > Add DT bindings for the Renesas RCar GyroADC block. This block is > a simple 4/8-channel ADC which samples 12/15/24 bits of data every > cycle from all channels. Isn't this v7? > > Signed-off-by: Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org> > Cc: Simon Horman <horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> > Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> > Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > .../bindings/iio/adc/renesas,gyroadc.txt | 93 ++++++++++++++++++++++ > 1 file changed, 93 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > > diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > new file mode 100644 > index 000000000000..081947367135 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > @@ -0,0 +1,93 @@ > +* Renesas RCar GyroADC device driver What's a GyroADC? > + > +Required properties: > +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". Need to enumerate <chip>. > + Use "renesas,r8a7792-gyroadc" for a GyroADC with interrupt > + block found in R8A7792. > +- reg: Address and length of the register set for the device > +- clocks: References to all the clocks specified in the clock-names > + property as specified in > + Documentation/devicetree/bindings/clock/clock-bindings.txt. > +- clock-names: Shall contain "fck" and "if". The "fck" is the GyroADC block > + clock, the "if" is the interface clock. > +- power-domains: Must contain a reference to the PM domain, if available. > +- #address-cells: Should be <1> (setting for the subnodes) for all ADCs > + except for "fujitsu,mb88101a". Should be <0> (setting for > + only subnode) for "fujitsu,mb88101a". > +- #size-cells: Should be <0> (setting for the subnodes) > + > +Sub-nodes: > +Optionally you can define subnodes which select the connected ADC type and > +reference voltage for the GyroADC channels. Seems strange to be optional. How many nodes are possible? > + > +Required properties for subnodes: > +- compatible: Should be either of: > + "fujitsu,mb88101a" > + - Fujitsu MB88101A compatible mode, > + 12bit sampling, up to 4 channels can be sampled in > + round-robin fashion. One Fujitsu chip supplies four > + GyroADC channels with data as it contains four ADCs > + on the chip and thus for 4-channel operation, single > + MB88101A is required. The Cx chipselect lines of the > + MB88101A connect directly to two CHS lines of the > + GyroADC, no demuxer is required. The data out line > + of each MB88101A connects to a shared input pin of > + the GyroADC. > + "ti,adcs7476" or "ti,adc121" or "adi,ad7476" > + - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, > + 15bit sampling, up to 8 channels can be sampled in > + round-robin fashion. One TI/ADI chip supplies single > + ADC channel with data, thus for 8-channel operation, > + 8 chips are required. A 3:8 chipselect demuxer is > + required to connect the nCS line of the TI/ADI chips > + to the GyroADC, while MISO line of each TI/ADI ADC > + connects to a shared input pin of the GyroADC. > + "maxim,max1162" or "maxim,max11100" > + - Maxim MAX1162 / Maxim MAX11100 compatible mode, > + 16bit sampling, up to 8 channels can be sampled in > + round-robin fashion. One Maxim chip supplies single > + ADC channel with data, thus for 8-channel operation, > + 8 chips are required. A 3:8 chipselect demuxer is > + required to connect the nCS line of the MAX chips > + to the GyroADC, while MISO line of each Maxim ADC > + connects to a shared input pin of the GyroADC. > +- reg: Should be the number of the analog input. Should be present > + for all ADCs except "fujitsu,mb88101a". > +- vref-supply: Reference to the channel reference voltage regulator. > + > +Example: > + vref_max1162: regulator-vref-max1162 { > + compatible = "regulator-fixed"; > + > + regulator-name = "MAX1162 Vref"; > + regulator-min-microvolt = <4096000>; > + regulator-max-microvolt = <4096000>; > + }; > + > + &adc { > + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; > + reg = <0 0xe6e54000 0 64>; > + clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&clk_65m>; > + clock-names = "fck", "if"; > + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; > + > + pinctrl-0 = <&adc_pins>; > + pinctrl-names = "default"; > + > + status = "okay"; Drop status from examples. > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + adc@0 { > + reg = <0>; > + compatible = "maxim,max1162"; > + vref-supply = <&vref_max1162>; > + }; > + > + adc@1 { > + reg = <1>; > + compatible = "maxim,max1162"; > + vref-supply = <&vref_max1162>; > + }; > + }; > -- > 2.11.0 > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings 2017-01-23 17:08 ` Rob Herring @ 2017-01-23 19:56 ` Marek Vasut [not found] ` <63b3660b-6ce0-134c-ef79-c06430c735c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Marek Vasut @ 2017-01-23 19:56 UTC (permalink / raw) To: Rob Herring Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang, devicetree-u79uwXL29TY76Z2rM5mHXA On 01/23/2017 06:08 PM, Rob Herring wrote: > On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: >> Add DT bindings for the Renesas RCar GyroADC block. This block is >> a simple 4/8-channel ADC which samples 12/15/24 bits of data every >> cycle from all channels. > > Isn't this v7? Technically yes, it was part of the 2/2 until now. >> Signed-off-by: Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> Cc: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org> >> Cc: Simon Horman <horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> >> Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> >> Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> >> Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> >> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> --- >> .../bindings/iio/adc/renesas,gyroadc.txt | 93 ++++++++++++++++++++++ >> 1 file changed, 93 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >> >> diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >> new file mode 100644 >> index 000000000000..081947367135 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >> @@ -0,0 +1,93 @@ >> +* Renesas RCar GyroADC device driver > > What's a GyroADC? The GyroADC block is a reduced SPI block with up to 8 chipselect lines, which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs are sampled by the GyroADC block in a round-robin fashion and the result presented in the GyroADC registers. Good ? >> + >> +Required properties: >> +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". > > Need to enumerate <chip>. It's enumerated below , the only special-case we handle at this point is the r8a7792 , which has extra interrupt block which we don't use anyway, but the driver disables those interrupts. >> + Use "renesas,r8a7792-gyroadc" for a GyroADC with interrupt >> + block found in R8A7792. I can add .... otherwise use the matching SoC model in <chip> field. >> +- reg: Address and length of the register set for the device >> +- clocks: References to all the clocks specified in the clock-names >> + property as specified in >> + Documentation/devicetree/bindings/clock/clock-bindings.txt. >> +- clock-names: Shall contain "fck" and "if". The "fck" is the GyroADC block >> + clock, the "if" is the interface clock. >> +- power-domains: Must contain a reference to the PM domain, if available. >> +- #address-cells: Should be <1> (setting for the subnodes) for all ADCs >> + except for "fujitsu,mb88101a". Should be <0> (setting for >> + only subnode) for "fujitsu,mb88101a". >> +- #size-cells: Should be <0> (setting for the subnodes) >> + >> +Sub-nodes: >> +Optionally you can define subnodes which select the connected ADC type and >> +reference voltage for the GyroADC channels. > > Seems strange to be optional. How many nodes are possible? 1, up-to 4 or up-to 8, depending on the ADC you connect. I guess it can be made mandatory as not having any ADC attached would make it pretty pointless to enable this block in the first place ... >> + >> +Required properties for subnodes: >> +- compatible: Should be either of: >> + "fujitsu,mb88101a" >> + - Fujitsu MB88101A compatible mode, >> + 12bit sampling, up to 4 channels can be sampled in >> + round-robin fashion. One Fujitsu chip supplies four >> + GyroADC channels with data as it contains four ADCs >> + on the chip and thus for 4-channel operation, single >> + MB88101A is required. The Cx chipselect lines of the >> + MB88101A connect directly to two CHS lines of the >> + GyroADC, no demuxer is required. The data out line >> + of each MB88101A connects to a shared input pin of >> + the GyroADC. >> + "ti,adcs7476" or "ti,adc121" or "adi,ad7476" >> + - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, >> + 15bit sampling, up to 8 channels can be sampled in >> + round-robin fashion. One TI/ADI chip supplies single >> + ADC channel with data, thus for 8-channel operation, >> + 8 chips are required. A 3:8 chipselect demuxer is >> + required to connect the nCS line of the TI/ADI chips >> + to the GyroADC, while MISO line of each TI/ADI ADC >> + connects to a shared input pin of the GyroADC. >> + "maxim,max1162" or "maxim,max11100" >> + - Maxim MAX1162 / Maxim MAX11100 compatible mode, >> + 16bit sampling, up to 8 channels can be sampled in >> + round-robin fashion. One Maxim chip supplies single >> + ADC channel with data, thus for 8-channel operation, >> + 8 chips are required. A 3:8 chipselect demuxer is >> + required to connect the nCS line of the MAX chips >> + to the GyroADC, while MISO line of each Maxim ADC >> + connects to a shared input pin of the GyroADC. >> +- reg: Should be the number of the analog input. Should be present >> + for all ADCs except "fujitsu,mb88101a". >> +- vref-supply: Reference to the channel reference voltage regulator. >> + >> +Example: >> + vref_max1162: regulator-vref-max1162 { >> + compatible = "regulator-fixed"; >> + >> + regulator-name = "MAX1162 Vref"; >> + regulator-min-microvolt = <4096000>; >> + regulator-max-microvolt = <4096000>; >> + }; >> + >> + &adc { >> + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; >> + reg = <0 0xe6e54000 0 64>; >> + clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&clk_65m>; >> + clock-names = "fck", "if"; >> + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; >> + >> + pinctrl-0 = <&adc_pins>; >> + pinctrl-names = "default"; >> + >> + status = "okay"; > > Drop status from examples. Dropped. >> + >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + adc@0 { >> + reg = <0>; >> + compatible = "maxim,max1162"; >> + vref-supply = <&vref_max1162>; >> + }; >> + >> + adc@1 { >> + reg = <1>; >> + compatible = "maxim,max1162"; >> + vref-supply = <&vref_max1162>; >> + }; >> + }; >> -- >> 2.11.0 >> -- Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <63b3660b-6ce0-134c-ef79-c06430c735c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings [not found] ` <63b3660b-6ce0-134c-ef79-c06430c735c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-01-23 20:41 ` Geert Uytterhoeven [not found] ` <CAMuHMdUVwQoqQbrsGtbvxK9PoHae3n=UuJYijTMToUsdc=8=mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Geert Uytterhoeven @ 2017-01-23 20:41 UTC (permalink / raw) To: Marek Vasut Cc: Rob Herring, linux-iio-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, Linux-Renesas, Wolfram Sang, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Marek, On Mon, Jan 23, 2017 at 8:56 PM, Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 01/23/2017 06:08 PM, Rob Herring wrote: >> On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: >>> new file mode 100644 >>> index 000000000000..081947367135 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >>> +Required properties: >>> +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >> >> Need to enumerate <chip>. > > It's enumerated below , the only special-case we handle at this point is > the r8a7792 , which has extra interrupt block which we don't use anyway, > but the driver disables those interrupts. It is not enumerated below. You just give an example for r8a7791. Please list all supported/tested compatible values, so checkpatch can validate compatible values in DTS patches adding GyroADC device nodes. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAMuHMdUVwQoqQbrsGtbvxK9PoHae3n=UuJYijTMToUsdc=8=mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings [not found] ` <CAMuHMdUVwQoqQbrsGtbvxK9PoHae3n=UuJYijTMToUsdc=8=mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-01-23 23:15 ` Marek Vasut [not found] ` <d4fc63bf-c455-2ac4-15d2-6f240799d3e9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Marek Vasut @ 2017-01-23 23:15 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Rob Herring, linux-iio-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, Linux-Renesas, Wolfram Sang, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 01/23/2017 09:41 PM, Geert Uytterhoeven wrote: > Hi Marek, > > On Mon, Jan 23, 2017 at 8:56 PM, Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On 01/23/2017 06:08 PM, Rob Herring wrote: >>> On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: >>>> new file mode 100644 >>>> index 000000000000..081947367135 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > >>>> +Required properties: >>>> +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >>> >>> Need to enumerate <chip>. >> >> It's enumerated below , the only special-case we handle at this point is >> the r8a7792 , which has extra interrupt block which we don't use anyway, >> but the driver disables those interrupts. > > It is not enumerated below. You just give an example for r8a7791. > > Please list all supported/tested compatible values, so checkpatch > can validate compatible values in DTS patches adding GyroADC device > nodes. What about this ? - compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". The <chip> can be either of: r8a7791 - for the GyroADC block present in r8a7791 SoC r8a7792 - for the GyroADC with interrupt block present in r8a7792 SoC -- Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <d4fc63bf-c455-2ac4-15d2-6f240799d3e9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings [not found] ` <d4fc63bf-c455-2ac4-15d2-6f240799d3e9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-01-24 7:30 ` Geert Uytterhoeven 2017-01-24 16:39 ` Marek Vasut 0 siblings, 1 reply; 10+ messages in thread From: Geert Uytterhoeven @ 2017-01-24 7:30 UTC (permalink / raw) To: Marek Vasut Cc: Rob Herring, linux-iio-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, Linux-Renesas, Wolfram Sang, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Marek, On Tue, Jan 24, 2017 at 12:15 AM, Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 01/23/2017 09:41 PM, Geert Uytterhoeven wrote: >> On Mon, Jan 23, 2017 at 8:56 PM, Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> On 01/23/2017 06:08 PM, Rob Herring wrote: >>>> On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: >>>>> new file mode 100644 >>>>> index 000000000000..081947367135 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >> >>>>> +Required properties: >>>>> +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >>>> >>>> Need to enumerate <chip>. >>> >>> It's enumerated below , the only special-case we handle at this point is >>> the r8a7792 , which has extra interrupt block which we don't use anyway, >>> but the driver disables those interrupts. >> >> It is not enumerated below. You just give an example for r8a7791. >> >> Please list all supported/tested compatible values, so checkpatch >> can validate compatible values in DTS patches adding GyroADC device >> nodes. > > What about this ? > > - compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". > The <chip> can be either of: > r8a7791 - for the GyroADC block present in r8a7791 SoC > r8a7792 - for the GyroADC with interrupt block present > in r8a7792 SoC No, we need the exact string in the document, cfr. all other Renesas bindings. "renesas,r8a7791-gyroadc" "renesas,r8a7792-gyroadc" Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings 2017-01-24 7:30 ` Geert Uytterhoeven @ 2017-01-24 16:39 ` Marek Vasut 2017-01-24 18:19 ` Geert Uytterhoeven 0 siblings, 1 reply; 10+ messages in thread From: Marek Vasut @ 2017-01-24 16:39 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Rob Herring, linux-iio, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, Linux-Renesas, Wolfram Sang, devicetree@vger.kernel.org On 01/24/2017 08:30 AM, Geert Uytterhoeven wrote: > Hi Marek, > > On Tue, Jan 24, 2017 at 12:15 AM, Marek Vasut <marek.vasut@gmail.com> wrote: >> On 01/23/2017 09:41 PM, Geert Uytterhoeven wrote: >>> On Mon, Jan 23, 2017 at 8:56 PM, Marek Vasut <marek.vasut@gmail.com> wrote: >>>> On 01/23/2017 06:08 PM, Rob Herring wrote: >>>>> On Sat, Jan 21, 2017 at 03:42:11PM +0100, Marek Vasut wrote: >>>>>> new file mode 100644 >>>>>> index 000000000000..081947367135 >>>>>> --- /dev/null >>>>>> +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt >>> >>>>>> +Required properties: >>>>>> +- compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >>>>> >>>>> Need to enumerate <chip>. >>>> >>>> It's enumerated below , the only special-case we handle at this point is >>>> the r8a7792 , which has extra interrupt block which we don't use anyway, >>>> but the driver disables those interrupts. >>> >>> It is not enumerated below. You just give an example for r8a7791. >>> >>> Please list all supported/tested compatible values, so checkpatch >>> can validate compatible values in DTS patches adding GyroADC device >>> nodes. >> >> What about this ? >> >> - compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >> The <chip> can be either of: >> r8a7791 - for the GyroADC block present in r8a7791 SoC >> r8a7792 - for the GyroADC with interrupt block present >> in r8a7792 SoC > > No, we need the exact string in the document, cfr. all other Renesas bindings. > > "renesas,r8a7791-gyroadc" > "renesas,r8a7792-gyroadc" This ? - compatible: Should be "<soc-specific>", "renesas,rcar-gyroadc". The <soc-specific> should be one of: renesas,r8a7791-gyroadc - for the GyroADC block present in r8a7791 SoC renesas,r8a7792-gyroadc - for the GyroADC with interrupt block present in r8a7792 SoC -- Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings 2017-01-24 16:39 ` Marek Vasut @ 2017-01-24 18:19 ` Geert Uytterhoeven 0 siblings, 0 replies; 10+ messages in thread From: Geert Uytterhoeven @ 2017-01-24 18:19 UTC (permalink / raw) To: Marek Vasut Cc: Rob Herring, linux-iio, Geert Uytterhoeven, Simon Horman, Jonathan Cameron, Linux-Renesas, Wolfram Sang, devicetree@vger.kernel.org Hi Marek, On Tue, Jan 24, 2017 at 5:39 PM, Marek Vasut <marek.vasut@gmail.com> wrote: > On 01/24/2017 08:30 AM, Geert Uytterhoeven wrote: >> On Tue, Jan 24, 2017 at 12:15 AM, Marek Vasut <marek.vasut@gmail.com> wrote: >>> What about this ? >>> >>> - compatible: Should be "renesas,<chip>-gyroadc", "renesas,rcar-gyroadc". >>> The <chip> can be either of: >>> r8a7791 - for the GyroADC block present in r8a7791 SoC >>> r8a7792 - for the GyroADC with interrupt block present >>> in r8a7792 SoC >> >> No, we need the exact string in the document, cfr. all other Renesas bindings. >> >> "renesas,r8a7791-gyroadc" >> "renesas,r8a7792-gyroadc" > > This ? > > - compatible: Should be "<soc-specific>", "renesas,rcar-gyroadc". > The <soc-specific> should be one of: > renesas,r8a7791-gyroadc - for the GyroADC block present > in r8a7791 SoC > renesas,r8a7792-gyroadc - for the GyroADC with interrupt > block present in r8a7792 SoC Yes. I had expected that double quotes were mandatory, but apparently checkpatch doesn't require that. 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings
@ 2017-01-27 23:08 Marek Vasut
[not found] ` <20170127230837.9322-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2017-01-27 23:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA
Cc: Marek Vasut, Geert Uytterhoeven, Simon Horman, Jonathan Cameron,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang,
Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA
From: Marek Vasut <marek.vasut+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Add DT bindings for the Renesas RCar GyroADC block. This block is
a simple 4/8-channel ADC which samples 12/15/24 bits of data every
cycle from all channels.
Signed-off-by: Marek Vasut <marek.vasut+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
Cc: Simon Horman <horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
V8: - Sync the version with the 2/2 driver patch
- Drop status prop from example
- Add GyroADC block description
- Enumerate the compatible string values
- Make subnodes mandatory
V9: - Replace &adc with adc@e6e54000
- Add Rob's ACK
---
.../bindings/iio/adc/renesas,gyroadc.txt | 99 ++++++++++++++++++++++
1 file changed, 99 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
new file mode 100644
index 000000000000..f5b0adae6010
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt
@@ -0,0 +1,99 @@
+* Renesas RCar GyroADC device driver
+
+The GyroADC block is a reduced SPI block with up to 8 chipselect lines,
+which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs
+are sampled by the GyroADC block in a round-robin fashion and the result
+presented in the GyroADC registers.
+
+Required properties:
+- compatible: Should be "<soc-specific>", "renesas,rcar-gyroadc".
+ The <soc-specific> should be one of:
+ renesas,r8a7791-gyroadc - for the GyroADC block present
+ in r8a7791 SoC
+ renesas,r8a7792-gyroadc - for the GyroADC with interrupt
+ block present in r8a7792 SoC
+- reg: Address and length of the register set for the device
+- clocks: References to all the clocks specified in the clock-names
+ property as specified in
+ Documentation/devicetree/bindings/clock/clock-bindings.txt.
+- clock-names: Shall contain "fck" and "if". The "fck" is the GyroADC block
+ clock, the "if" is the interface clock.
+- power-domains: Must contain a reference to the PM domain, if available.
+- #address-cells: Should be <1> (setting for the subnodes) for all ADCs
+ except for "fujitsu,mb88101a". Should be <0> (setting for
+ only subnode) for "fujitsu,mb88101a".
+- #size-cells: Should be <0> (setting for the subnodes)
+
+Sub-nodes:
+You must define subnode(s) which select the connected ADC type and reference
+voltage for the GyroADC channels.
+
+Required properties for subnodes:
+- compatible: Should be either of:
+ "fujitsu,mb88101a"
+ - Fujitsu MB88101A compatible mode,
+ 12bit sampling, up to 4 channels can be sampled in
+ round-robin fashion. One Fujitsu chip supplies four
+ GyroADC channels with data as it contains four ADCs
+ on the chip and thus for 4-channel operation, single
+ MB88101A is required. The Cx chipselect lines of the
+ MB88101A connect directly to two CHS lines of the
+ GyroADC, no demuxer is required. The data out line
+ of each MB88101A connects to a shared input pin of
+ the GyroADC.
+ "ti,adcs7476" or "ti,adc121" or "adi,ad7476"
+ - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode,
+ 15bit sampling, up to 8 channels can be sampled in
+ round-robin fashion. One TI/ADI chip supplies single
+ ADC channel with data, thus for 8-channel operation,
+ 8 chips are required. A 3:8 chipselect demuxer is
+ required to connect the nCS line of the TI/ADI chips
+ to the GyroADC, while MISO line of each TI/ADI ADC
+ connects to a shared input pin of the GyroADC.
+ "maxim,max1162" or "maxim,max11100"
+ - Maxim MAX1162 / Maxim MAX11100 compatible mode,
+ 16bit sampling, up to 8 channels can be sampled in
+ round-robin fashion. One Maxim chip supplies single
+ ADC channel with data, thus for 8-channel operation,
+ 8 chips are required. A 3:8 chipselect demuxer is
+ required to connect the nCS line of the MAX chips
+ to the GyroADC, while MISO line of each Maxim ADC
+ connects to a shared input pin of the GyroADC.
+- reg: Should be the number of the analog input. Should be present
+ for all ADCs except "fujitsu,mb88101a".
+- vref-supply: Reference to the channel reference voltage regulator.
+
+Example:
+ vref_max1162: regulator-vref-max1162 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "MAX1162 Vref";
+ regulator-min-microvolt = <4096000>;
+ regulator-max-microvolt = <4096000>;
+ };
+
+ adc@e6e54000 {
+ compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
+ reg = <0 0xe6e54000 0 64>;
+ clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&clk_65m>;
+ clock-names = "fck", "if";
+ power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
+
+ pinctrl-0 = <&adc_pins>;
+ pinctrl-names = "default";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ adc@0 {
+ reg = <0>;
+ compatible = "maxim,max1162";
+ vref-supply = <&vref_max1162>;
+ };
+
+ adc@1 {
+ reg = <1>;
+ compatible = "maxim,max1162";
+ vref-supply = <&vref_max1162>;
+ };
+ };
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread[parent not found: <20170127230837.9322-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings [not found] ` <20170127230837.9322-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-01-28 11:36 ` Jonathan Cameron 0 siblings, 0 replies; 10+ messages in thread From: Jonathan Cameron @ 2017-01-28 11:36 UTC (permalink / raw) To: Marek Vasut, linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: Marek Vasut, Geert Uytterhoeven, Simon Horman, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA On 27/01/17 23:08, Marek Vasut wrote: > From: Marek Vasut <marek.vasut+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Add DT bindings for the Renesas RCar GyroADC block. This block is > a simple 4/8-channel ADC which samples 12/15/24 bits of data every > cycle from all channels. > > Signed-off-by: Marek Vasut <marek.vasut+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Cc: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org> > Cc: Simon Horman <horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> > Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> > Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > V8: - Sync the version with the 2/2 driver patch > - Drop status prop from example > - Add GyroADC block description > - Enumerate the compatible string values > - Make subnodes mandatory > V9: - Replace &adc with adc@e6e54000 > - Add Rob's ACK > --- > .../bindings/iio/adc/renesas,gyroadc.txt | 99 ++++++++++++++++++++++ > 1 file changed, 99 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > > diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > new file mode 100644 > index 000000000000..f5b0adae6010 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/renesas,gyroadc.txt > @@ -0,0 +1,99 @@ > +* Renesas RCar GyroADC device driver > + > +The GyroADC block is a reduced SPI block with up to 8 chipselect lines, > +which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs > +are sampled by the GyroADC block in a round-robin fashion and the result > +presented in the GyroADC registers. > + > +Required properties: > +- compatible: Should be "<soc-specific>", "renesas,rcar-gyroadc". > + The <soc-specific> should be one of: > + renesas,r8a7791-gyroadc - for the GyroADC block present > + in r8a7791 SoC > + renesas,r8a7792-gyroadc - for the GyroADC with interrupt > + block present in r8a7792 SoC > +- reg: Address and length of the register set for the device > +- clocks: References to all the clocks specified in the clock-names > + property as specified in > + Documentation/devicetree/bindings/clock/clock-bindings.txt. > +- clock-names: Shall contain "fck" and "if". The "fck" is the GyroADC block > + clock, the "if" is the interface clock. > +- power-domains: Must contain a reference to the PM domain, if available. > +- #address-cells: Should be <1> (setting for the subnodes) for all ADCs > + except for "fujitsu,mb88101a". Should be <0> (setting for > + only subnode) for "fujitsu,mb88101a". > +- #size-cells: Should be <0> (setting for the subnodes) > + > +Sub-nodes: > +You must define subnode(s) which select the connected ADC type and reference > +voltage for the GyroADC channels. > + > +Required properties for subnodes: > +- compatible: Should be either of: > + "fujitsu,mb88101a" > + - Fujitsu MB88101A compatible mode, > + 12bit sampling, up to 4 channels can be sampled in > + round-robin fashion. One Fujitsu chip supplies four > + GyroADC channels with data as it contains four ADCs > + on the chip and thus for 4-channel operation, single > + MB88101A is required. The Cx chipselect lines of the > + MB88101A connect directly to two CHS lines of the > + GyroADC, no demuxer is required. The data out line > + of each MB88101A connects to a shared input pin of > + the GyroADC. > + "ti,adcs7476" or "ti,adc121" or "adi,ad7476" > + - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, > + 15bit sampling, up to 8 channels can be sampled in > + round-robin fashion. One TI/ADI chip supplies single > + ADC channel with data, thus for 8-channel operation, > + 8 chips are required. A 3:8 chipselect demuxer is > + required to connect the nCS line of the TI/ADI chips > + to the GyroADC, while MISO line of each TI/ADI ADC > + connects to a shared input pin of the GyroADC. > + "maxim,max1162" or "maxim,max11100" > + - Maxim MAX1162 / Maxim MAX11100 compatible mode, > + 16bit sampling, up to 8 channels can be sampled in > + round-robin fashion. One Maxim chip supplies single > + ADC channel with data, thus for 8-channel operation, > + 8 chips are required. A 3:8 chipselect demuxer is > + required to connect the nCS line of the MAX chips > + to the GyroADC, while MISO line of each Maxim ADC > + connects to a shared input pin of the GyroADC. > +- reg: Should be the number of the analog input. Should be present > + for all ADCs except "fujitsu,mb88101a". > +- vref-supply: Reference to the channel reference voltage regulator. > + > +Example: > + vref_max1162: regulator-vref-max1162 { > + compatible = "regulator-fixed"; > + > + regulator-name = "MAX1162 Vref"; > + regulator-min-microvolt = <4096000>; > + regulator-max-microvolt = <4096000>; > + }; > + > + adc@e6e54000 { > + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; > + reg = <0 0xe6e54000 0 64>; > + clocks = <&mstp9_clks R8A7791_CLK_GYROADC>, <&clk_65m>; > + clock-names = "fck", "if"; > + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; > + > + pinctrl-0 = <&adc_pins>; > + pinctrl-names = "default"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + adc@0 { > + reg = <0>; > + compatible = "maxim,max1162"; > + vref-supply = <&vref_max1162>; > + }; > + > + adc@1 { > + reg = <1>; > + compatible = "maxim,max1162"; > + vref-supply = <&vref_max1162>; > + }; > + }; > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-01-28 11:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-21 14:42 [PATCH 1/2] iio: adc: Add Renesas GyroADC bindings Marek Vasut
[not found] ` <20170121144212.8858-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-23 17:08 ` Rob Herring
2017-01-23 19:56 ` Marek Vasut
[not found] ` <63b3660b-6ce0-134c-ef79-c06430c735c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-23 20:41 ` Geert Uytterhoeven
[not found] ` <CAMuHMdUVwQoqQbrsGtbvxK9PoHae3n=UuJYijTMToUsdc=8=mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-23 23:15 ` Marek Vasut
[not found] ` <d4fc63bf-c455-2ac4-15d2-6f240799d3e9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-24 7:30 ` Geert Uytterhoeven
2017-01-24 16:39 ` Marek Vasut
2017-01-24 18:19 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2017-01-27 23:08 Marek Vasut
[not found] ` <20170127230837.9322-1-marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-28 11:36 ` 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).