summaryrefslogtreecommitdiffstats
path: root/kernel/Documentation/devicetree/bindings/power_supply/gpio-charger.txt
blob: adbb5dc5b6e9ec05f54986a0bd40fccc36372a7c (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
26
27
gpio-charger

Required properties :
 - compatible : "gpio-charger"
 - gpios : GPIO indicating the charger presence.
   See GPIO binding in bindings/gpio/gpio.txt .
 - charger-type : power supply type, one of
     unknown
     battery
     ups
     mains
     usb-sdp (USB standard downstream port)
     usb-dcp (USB dedicated charging port)
     usb-cdp (USB charging downstream port)
     usb-aca (USB accessory charger adapter)

Example:

	usb_charger: charger {
		compatible = "gpio-charger";
		charger-type = "usb-sdp";
		gpios = <&gpf0 2 0 0 0>;
	}

	battery {
		power-supplies = <&usb_charger>;
	};