]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dt: Document Holt HI-8435 bindings
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>
Fri, 28 Aug 2015 14:28:20 +0000 (17:28 +0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:18 +0000 (20:23 +0100)
These bindings can be used to register Holt HI-8435 threshold detector

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/adc/hi8435.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/iio/adc/hi8435.txt b/Documentation/devicetree/bindings/iio/adc/hi8435.txt
new file mode 100644 (file)
index 0000000..3b0348c
--- /dev/null
@@ -0,0 +1,21 @@
+Holt Integrated Circuits HI-8435 threshold detector bindings
+
+Required properties:
+ - compatible: should be "holt,hi8435"
+ - reg: spi chip select number for the device
+
+Recommended properties:
+ - spi-max-frequency: definition as per
+               Documentation/devicetree/bindings/spi/spi-bus.txt
+
+Optional properties:
+ - gpios: GPIO used for controlling the reset pin
+
+Example:
+sensor@0 {
+       compatible = "holt,hi8435";
+       reg = <0>;
+       gpios = <&gpio6 1 0>;
+
+       spi-max-frequency = <1000000>;
+};