[linux,dev-4.13,v2,1/2] dt-binding: iio: document NPCM7xx ADC DT bindings

Message ID 1515315091-15381-2-git-send-email-tmaimon77@gmail.com
State Not Applicable, archived
Headers show
Series
  • ADC: npcm: add NPCM7xx ADC iio driver
Related show

Commit Message

Tomer Maimon Jan. 7, 2018, 8:51 a.m.
Added device tree binding documentation for Nuvoton NPCM7xx ADC.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
 .../devicetree/bindings/iio/adc/npcm7xx-adc.txt    | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt b/Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt
new file mode 100644
index 000000000000..c4eb433563b6
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt
@@ -0,0 +1,23 @@ 
+Nuvoton NPCM7XX Analog to Digital Converter (ADC)
+
+The NPCM7XX ADC is a 10-bit converter for eight channel inputs,
+The ADC module includes an eight-to-one multiplexer.
+
+Required properties:
+- compatible      : "nuvoton,npcm750-adc" for Poleg NPCM750.
+- reg             : Offset and length of the register set for the device.
+
+Required clocking property, have to be one of:
+- clocks          : phandle of timer reference clock.
+- clock-names	  : Must contain "clk_adc", matching entry in the clocks property.
+- vref			  : ADC Reference voltage, defualt 2048.
+
+Example:
+
+adc: adc@f000c000 {
+	compatible = "nuvoton,npcm750-adc";
+	reg = <0xf000c000 0x1000>;
+	clocks = <&clk NPCM7XX_CLK_ADC>;
+	clock-names = "clk_adc";
+	vref = <2048>;
+};