mirror of https://gitee.com/openkylin/linux.git
28 lines
605 B
Plaintext
28 lines
605 B
Plaintext
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>;
|
|
};
|