summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/max8903-charger.txt
blob: f0f4e12b076ef8214688a292e6bbe34987b02f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Maxim Semiconductor MAX8903 Battery Charger bindings

Required properties:
- compatible: "maxim,max8903" for MAX8903 Battery Charger
- dok-gpios: Valid DC power has been detected (active low, input), optional if uok-gpios is provided
- uok-gpios: Valid USB power has been detected (active low, input), optional if dok-gpios is provided

Optional properties:
- cen-gpios: Charge enable pin (active low, output)
- chg-gpios: Charger status pin (active low, input)
- flt-gpios: Fault pin (active low, output)
- dcm-gpios: Current limit mode setting (DC=1 or USB=0, output)
- usus-gpios: USB suspend pin (active high, output)


Example:

	max8903-charger {
		compatible = "maxim,max8903";
		dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
		flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
		chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
		cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
		status = "okay";
	};