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 * ingenic,jz4770-adc
9 - reg: ADC controller registers location and length.
10 - clocks: phandle to the SoC's ADC clock.
11 - clock-names: Must be set to "adc".
12 - #io-channel-cells: Must be set to <1> to indicate channels are selected
13 by index.
14
15 ADC clients must use the format described in iio-bindings.txt, giving
16 a phandle and IIO specifier pair ("io-channels") to the ADC controller.
17
18 Example:
19
20 #include <dt-bindings/iio/adc/ingenic,adc.h>
21
22 adc: adc@10070000 {
23 compatible = "ingenic,jz4740-adc";
24 #io-channel-cells = <1>;
25
26 reg = <0x10070000 0x30>;
27
28 clocks = <&cgu JZ4740_CLK_ADC>;
29 clock-names = "adc";
30
31 interrupt-parent = <&intc>;
32 interrupts = <18>;
33 };
34
35 adc-keys {
36 ...
37 compatible = "adc-keys";
38 io-channels = <&adc INGENIC_ADC_AUX>;
39 io-channel-names = "buttons";
40 ...
41 };
42
43 battery {
44 ...
45 compatible = "ingenic,jz4740-battery";
46 io-channels = <&adc INGENIC_ADC_BATTERY>;
47 io-channel-names = "battery";
48 ...
49 };
Cache object: 9c109306583480da93a218868049912c
|