Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

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)

Optional properties:
 - charge-status-gpios: GPIO indicating whether a battery is charging.

Example:

	usb_charger: charger {
		compatible = "gpio-charger";
		charger-type = "usb-sdp";
		gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
		charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>;
	};

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