[PATCH linux dev-4.13 v1 1/2] dt-binding: iio: document NPCM7xx ADC DT bindings
Tomer Maimon
tmaimon77 at gmail.com
Wed Dec 27 19:30:25 AEDT 2017
Added device tree binding documentation for Nuvoton NPCM7xx ADC.
Signed-off-by: Tomer Maimon <tmaimon77 at gmail.com>
---
.../devicetree/bindings/iio/adc/npcm7xx-adc.txt | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100755 Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt
diff --git a/Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt b/Documentation/devicetree/bindings/iio/adc/npcm7xx-adc.txt
new file mode 100755
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 at f000c000 {
+ compatible = "nuvoton,npcm750-adc";
+ reg = <0xf000c000 0x1000>;
+ clocks = <&clk NPCM7XX_CLK_ADC>;
+ clock-names = "clk_adc";
+ vref = <2048>;
+};
--
2.14.1
More information about the openbmc
mailing list