xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/cpcap-charger.txt (revision 02e9120893770924227138ba49df1edb3896112a)
1Motorola CPCAP PMIC battery charger binding
2
3Required properties:
4- compatible: Shall be "motorola,mapphone-cpcap-charger"
5- interrupts: Interrupt specifier for each name in interrupt-names
6- interrupt-names: Should contain the following entries:
7		   "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
8		   "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
9		   "battdetb"
10- io-channels: IIO ADC channel specifier for each name in io-channel-names
11- io-channel-names: Should contain the following entries:
12		    "battdetb", "battp", "vbus", "chg_isense", "batti"
13
14Optional properties:
15- mode-gpios: Optionally CPCAP charger can have a companion wireless
16	      charge controller that is controlled with two GPIOs
17	      that are active low.
18
19Example:
20
21cpcap_charger: charger {
22	compatible = "motorola,mapphone-cpcap-charger";
23	interrupts-extended = <
24		&cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
25		&cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0
26		&cpcap 54 0
27	>;
28	interrupt-names =
29		"chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
30		"rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
31		"battdetb";
32	mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW
33		      &gpio3 23 GPIO_ACTIVE_LOW>;
34	io-channels = <&cpcap_adc 0 &cpcap_adc 1
35		       &cpcap_adc 2 &cpcap_adc 5
36		       &cpcap_adc 6>;
37	io-channel-names = "battdetb", "battp",
38			   "vbus", "chg_isense",
39			   "batti";
40};
41