1gpio-charger
2
3Required properties :
4 - compatible : "gpio-charger"
5 - gpios : GPIO indicating the charger presence.
6   See GPIO binding in bindings/gpio/gpio.txt .
7 - charger-type : power supply type, one of
8     unknown
9     battery
10     ups
11     mains
12     usb-sdp (USB standard downstream port)
13     usb-dcp (USB dedicated charging port)
14     usb-cdp (USB charging downstream port)
15     usb-aca (USB accessory charger adapter)
16
17Example:
18
19	usb_charger: charger {
20		compatible = "gpio-charger";
21		charger-type = "usb-sdp";
22		gpios = <&gpf0 2 0 0 0>;
23	}
24
25	battery {
26		power-supplies = <&usb_charger>;
27	};
28