xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/cpcap-battery.txt (revision 9768746ba83efa02837c5b9c66348db6e900208f)
1Motorola CPCAP PMIC battery driver binding
2
3Required properties:
4- compatible: Shall be "motorola,cpcap-battery"
5- interrupts: Interrupt specifier for each name in interrupt-names
6- interrupt-names: Should contain the following entries:
7		   "lowbph", "lowbpl", "chrgcurr1", "battdetb"
8- io-channels: IIO ADC channel specifier for each name in io-channel-names
9- io-channel-names: Should contain the following entries:
10		    "battdetb", "battp", "chg_isense", "batti"
11- power-supplies: List of phandles for power-supplying devices, as
12		  described in power_supply.txt. Typically a reference
13		  to cpcap_charger.
14
15Example:
16
17cpcap_battery: battery {
18	compatible = "motorola,cpcap-battery";
19	interrupts-extended = <
20		&cpcap 5 0 &cpcap 3 0
21		&cpcap 20 0 &cpcap 54 0
22	>;
23	interrupt-names =
24		"lowbph", "lowbpl",
25		"chrgcurr1", "battdetb";
26	io-channels = <&cpcap_adc 0 &cpcap_adc 1
27		       &cpcap_adc 5 &cpcap_adc 6>;
28	io-channel-names = "battdetb", "battp",
29			   "chg_isense", "batti";
30	power-supplies = <&cpcap_charger>;
31};
32