xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/palmas-gpadc.txt (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1* Palmas general purpose ADC IP block devicetree bindings
2
3Channels list:
4	0 battery type
5	1 battery temp NTC (optional current source)
6	2 GP
7	3 temp (with ext. diode, optional current source)
8	4 GP
9	5 GP
10	6 VBAT_SENSE
11	7 VCC_SENSE
12	8 Backup Battery voltage
13	9 external charger (VCHG)
14	10 VBUS
15	11 DC-DC current probe (how does this work?)
16	12 internal die temp
17	13 internal die temp
18	14 USB ID pin voltage
19	15 test network
20
21Required properties:
22- compatible : Must be "ti,palmas-gpadc".
23- #io-channel-cells: Should be set to <1>.
24
25Optional sub-nodes:
26ti,channel0-current-microamp: Channel 0 current in uA.
27	Values are rounded to derive 0uA, 5uA, 15uA, 20uA.
28ti,channel3-current-microamp: Channel 3 current in uA.
29	Values are rounded to derive 0uA, 10uA, 400uA, 800uA.
30ti,enable-extended-delay: Enable extended delay.
31
32Example:
33
34pmic {
35	compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
36	...
37	gpadc {
38		compatible = "ti,palmas-gpadc";
39		interrupts = <18 0
40			      16 0
41			      17 0>;
42		#io-channel-cells = <1>;
43		ti,channel0-current-microamp = <5>;
44		ti,channel3-current-microamp = <10>;
45		};
46	};
47	...
48};
49