The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/power/supply/gpio-charger.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 Optional properties:
   18  - charge-status-gpios: GPIO indicating whether a battery is charging.
   19 
   20 Example:
   21 
   22         usb_charger: charger {
   23                 compatible = "gpio-charger";
   24                 charger-type = "usb-sdp";
   25                 gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
   26                 charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>;
   27         };
   28 
   29         battery {
   30                 power-supplies = <&usb_charger>;
   31         };

Cache object: 4c5e63c6f23674f7a23dfbb2d1474052


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.