video: tegra: edid: Verify checksum of edid
[linux-3.10.git] / Documentation / devicetree / bindings / iio / adc / palmas-gpadc.txt
1 * Palmas general purpose ADC IP block devicetree bindings
2
3 Required properties:
4 - compatible : Must be "ti,palmas-gpadc".
5
6 Optional sub-nodes:
7 ti,channel0-current-microamp: Channel 0 current in uA.
8         Valid values 0uA, 5uA, 15uA, 20uA.
9 ti,channel3-current-microamp: Channel 3 current in uA.
10         Valid value 0uA, 10uA, 400uA, 800uA.
11 ti,enable-channel3-dual-current: Enable dual current on channel 3.
12 ti,enable-extended-delay: Enable extended delay.
13
14 Optional sub-node:
15 The Palmas ADC node has optional subnode to define the iio mapping.
16 It is the name with "iio_map". This node has again subnode to define
17 the property of the channel. The sub subnode has following properties:
18 - ti,adc-channel-number: ADC channel numbber.
19 - ti,adc-consumer-device: Consumer device name.
20 - ti,adc-consumer-channel: ADC consumer channel name.
21
22 Example:
23
24 pmic {
25         compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
26         ...
27         gpadc {
28                 compatible = "ti,palmas-gpadc";
29                 interrupts = <18 0
30                               16 0
31                               17 0>;
32                 ti,channel0-current-microamp = <5>;
33                 ti,channel3-current-microamp = <10>;
34                 iio_map {
35                         ch1 {
36                                 ti,adc-channel-number = <1>;
37                                 ti,adc-consumer-device = "generic-adc-thermal.0";
38                                 ti,adc-consumer-channel ="battery-temp-channel";
39                         };
40
41                         ch6 {
42                                 ti,adc-channel-number = <6>;
43                                 ti,adc-consumer-device = "palmas-battery";
44                                 ti,adc-consumer-channel ="vbat_channel";
45                         };
46                 };
47         };
48         ...
49 };