linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] iio: sun4i-lradc: Add binding documentation
@ 2016-07-12 19:04 Alexandre Belloni
  2016-07-12 19:04 ` [PATCH v2 2/2] iio: adc: sun4i_lradc: new driver Alexandre Belloni
  2016-07-13  8:20 ` [PATCH v2 1/2] iio: sun4i-lradc: Add binding documentation Maxime Ripard
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Belloni @ 2016-07-12 19:04 UTC (permalink / raw)
  To: linux-arm-kernel

Document the bindings for the Allwinner LRADC.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 .../devicetree/bindings/iio/adc/sun4i-lradc.txt       | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt

diff --git a/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt b/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt
new file mode 100644
index 000000000000..c75a6067b8a5
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt
@@ -0,0 +1,19 @@
+Allwinner sun4i Low Resolution ADC
+----------------------------------
+
+Required properties:
+ - compatible: "allwinner,sun4i-a10-lradc"
+ - reg: mmio address range of the chip
+ - interrupts: interrupt to which the chip is connected
+ - vref-supply: powersupply for the lradc reference voltage
+ - #io-channel-cells = <1>; As ADC has multiple outputs
+
+Example:
+
+	lradc: lradc at 01c22800 {
+		compatible = "allwinner,sun4i-a10-lradc";
+		reg = <0x01c22800 0x100>;
+		interrupts = <31>;
+		vref-supply = <&reg_vcc3v0>;
+		#io-channel-cells = <1>;
+	};
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-18 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 19:04 [PATCH v2 1/2] iio: sun4i-lradc: Add binding documentation Alexandre Belloni
2016-07-12 19:04 ` [PATCH v2 2/2] iio: adc: sun4i_lradc: new driver Alexandre Belloni
2016-07-18  8:38   ` Maxime Ripard
2016-07-18 13:38   ` Jonathan Cameron
2016-07-13  8:20 ` [PATCH v2 1/2] iio: sun4i-lradc: Add binding documentation Maxime Ripard

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).