diff options
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 @@ | |||
1 | * Maxim 1027/1029/1031 Analog to Digital Converter (ADC) | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Should be "maxim,max1027" or "maxim,max1029" or "maxim,max1031" | ||
5 | - reg: SPI chip select number for the device | ||
6 | - interrupt-parent: phandle to the parent interrupt controller | ||
7 | see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
8 | - interrupts: IRQ line for the ADC | ||
9 | see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
10 | |||
11 | Recommended properties: | ||
12 | - spi-max-frequency: Definition as per | ||
13 | Documentation/devicetree/bindings/spi/spi-bus.txt | ||
14 | |||
15 | Example: | ||
16 | adc@0 { | ||
17 | compatible = "maxim,max1027"; | ||
18 | reg = <0>; | ||
19 | interrupt-parent = <&gpio5>; | ||
20 | interrupts = <15 IRQ_TYPE_EDGE_RISING>; | ||
21 | spi-max-frequency = <1000000>; | ||
22 | }; | ||