mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
Currently the power supply device tree documentation is spread in .../bindings/power_supply and .../bindings/power. This unifies the files for chargers and battery fuel gauges in .../bindings/power/supply and the ones for system reset/shutdown in .../bindings/power/reset (same structure as used for the drivers itself). Signed-off-by: Sebastian Reichel <sre@kernel.org>
27 lines
605 B
Text
27 lines
605 B
Text
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>;
|
|
};
|