diff options
author | Philippe Reynes <tremyfr@yahoo.fr> | 2014-06-15 02:27:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-28 12:54:14 +0400 |
commit | fc167f62483325aea9137e70e6773fe7ad1ca2ac (patch) | |
tree | 767e25d7c2937a1747c02c91fc2599f513e202f6 /Documentation/devicetree/bindings/iio/adc/max1027-adc.txt | |
parent | b97855354aaacd65d68805bce38af4af1ef703f9 (diff) | |
download | linux-fc167f62483325aea9137e70e6773fe7ad1ca2ac.tar.xz |
iio: add support of the max1027
This driver add partial support of the
maxim 1027/1029/1031. Differential mode is not
supported.
It was tested on armadeus apf27 board.
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/adc/max1027-adc.txt')
-rw-r--r-- | Documentation/devicetree/bindings/iio/adc/max1027-adc.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/max1027-adc.txt b/Documentation/devicetree/bindings/iio/adc/max1027-adc.txt new file mode 100644 index 000000000000..a8770cc6bcad --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/max1027-adc.txt @@ -0,0 +1,22 @@ +* Maxim 1027/1029/1031 Analog to Digital Converter (ADC) + +Required properties: + - compatible: Should be "maxim,max1027" or "maxim,max1029" or "maxim,max1031" + - reg: SPI chip select number for the device + - interrupt-parent: phandle to the parent interrupt controller + see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + - interrupts: IRQ line for the ADC + see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + +Recommended properties: +- spi-max-frequency: Definition as per + Documentation/devicetree/bindings/spi/spi-bus.txt + +Example: +adc@0 { + compatible = "maxim,max1027"; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <15 IRQ_TYPE_EDGE_RISING>; + spi-max-frequency = <1000000>; +}; |