Merge branch 'x86-tsx-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / adc / ingenic,adc.txt
1 * Ingenic JZ47xx ADC controller IIO bindings
2
3 Required properties:
4
5 - compatible: Should be one of:
6   * ingenic,jz4725b-adc
7   * ingenic,jz4740-adc
8 - reg: ADC controller registers location and length.
9 - clocks: phandle to the SoC's ADC clock.
10 - clock-names: Must be set to "adc".
11 - #io-channel-cells: Must be set to <1> to indicate channels are selected
12   by index.
13
14 ADC clients must use the format described in iio-bindings.txt, giving
15 a phandle and IIO specifier pair ("io-channels") to the ADC controller.
16
17 Example:
18
19 #include <dt-bindings/iio/adc/ingenic,adc.h>
20
21 adc: adc@10070000 {
22         compatible = "ingenic,jz4740-adc";
23         #io-channel-cells = <1>;
24
25         reg = <0x10070000 0x30>;
26
27         clocks = <&cgu JZ4740_CLK_ADC>;
28         clock-names = "adc";
29
30         interrupt-parent = <&intc>;
31         interrupts = <18>;
32 };
33
34 adc-keys {
35         ...
36         compatible = "adc-keys";
37         io-channels = <&adc INGENIC_ADC_AUX>;
38         io-channel-names = "buttons";
39         ...
40 };
41
42 battery {
43         ...
44         compatible = "ingenic,jz4740-battery";
45         io-channels = <&adc INGENIC_ADC_BATTERY>;
46         io-channel-names = "battery";
47         ...
48 };