About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / power_supply / gpio-charger.txt


Based on kernel version 4.8. Page generated on 2016-10-06 23:13 EST.

1	gpio-charger
2	
3	Required 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	
17	Example:
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		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog