From: Tomer Maimon <tmaimon77@gmail.com>
To: openbmc@lists.ozlabs.org
Cc: Joel Stanley <joel@jms.id.au>, Tomer Maimon <tmaimon77@gmail.com>
Subject: [PATCH linux dev-4.13 v1 1/2] dt-binding: iio: document NPCM7xx ADC DT bindings
Date: Wed, 27 Dec 2017 10:30:25 +0200 [thread overview]
Message-ID: <1514363426-9079-2-git-send-email-tmaimon77@gmail.com> (raw)
In-Reply-To: <1514363426-9079-1-git-send-email-tmaimon77@gmail.com>
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 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@f000c000 {
+ compatible = "nuvoton,npcm750-adc";
+ reg = <0xf000c000 0x1000>;
+ clocks = <&clk NPCM7XX_CLK_ADC>;
+ clock-names = "clk_adc";
+ vref = <2048>;
+};
--
2.14.1
next prev parent reply other threads:[~2017-12-27 8:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-27 8:30 [PATCH linux dev-4.13 v1 0/2] ADC: npcm: add NPCM7xx ADC iio driver Tomer Maimon
2017-12-27 8:30 ` Tomer Maimon [this message]
2017-12-27 8:30 ` [PATCH linux dev-4.13 v1 2/2] ADC: npcm: add NPCM7xx ADC driver Tomer Maimon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1514363426-9079-2-git-send-email-tmaimon77@gmail.com \
--to=tmaimon77@gmail.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.