public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] hwmon: (adcxx) add devictree bindings documentation
@ 2017-08-21  8:19 Florian Eckert
  2017-08-21  8:19 ` [PATCH v2 2/2] hwmon: (adcxx) Add device tree support Florian Eckert
  2017-09-01 14:32 ` [v2,1/2] hwmon: (adcxx) add devictree bindings documentation Guenter Roeck
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Eckert @ 2017-08-21  8:19 UTC (permalink / raw)
  To: linux, jdelvare, linux-hwmon, linux-kernel

Document the devicetree bindings for the adcxx.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
---
v2:
- use regulator voltage binding

 Documentation/devicetree/bindings/hwmon/adcxx.txt | 24 +++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/adcxx.txt

diff --git a/Documentation/devicetree/bindings/hwmon/adcxx.txt b/Documentation/devicetree/bindings/hwmon/adcxx.txt
new file mode 100644
index 000000000000..a94a5fe21b6d
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/adcxx.txt
@@ -0,0 +1,24 @@
+adcxx properties
+
+Required properties:
+- compatible: Must be one of the following:
+	- "national,adcxx1s" for adcxx1s
+	- "national,adcxx2s" for adcxx2s
+	- "national,adcxx4s" for adcxx4s
+	- "national,adcxx8s" for adcxx8s
+- reg: SPI address for chip
+
+Optional properties:
+
+- vref-supply
+  The external reference in microvolt for this device is set to this value.
+  If it does not exists the reference will be set to 3300000uV (3.3V).
+
+Example:
+
+adc@6 {
+	compatible = "national,adcxx2s";
+	reg = <6 0>;
+	spi-max-frequency = <1000000>;
+	vref-supply = <&vref>;
+};
-- 
2.11.0


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

end of thread, other threads:[~2017-09-04  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21  8:19 [PATCH v2 1/2] hwmon: (adcxx) add devictree bindings documentation Florian Eckert
2017-08-21  8:19 ` [PATCH v2 2/2] hwmon: (adcxx) Add device tree support Florian Eckert
2017-09-01 14:32 ` [v2,1/2] hwmon: (adcxx) add devictree bindings documentation Guenter Roeck
2017-09-04  7:13   ` Florian Eckert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox