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/lp8727_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 Binding for TI/National Semiconductor LP8727 Charger
    2 
    3 Required properties:
    4 - compatible: "ti,lp8727"
    5 - reg: I2C slave address 27h
    6 
    7 Optional properties:
    8 - interrupts: interrupt specifier (see interrupt binding[0])
    9 - debounce-ms: interrupt debounce time. (u32)
   10 
   11 AC and USB charging parameters
   12 - charger-type: "ac" or "usb" (string)
   13 - eoc-level: value of 'enum lp8727_eoc_level' (u8)
   14 - charging-current: value of 'enum lp8727_ichg' (u8)
   15 
   16 [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
   17 
   18 Example)
   19 
   20 lp8727@27 {
   21         compatible = "ti,lp8727";
   22         reg = <0x27>;
   23 
   24         /* GPIO 134 is used for LP8728 interrupt pin */
   25         interrupt-parent = <&gpio5>;    /* base = 128 */
   26         interrupts = <6 0x2>;           /* offset = 6, falling edge type */
   27 
   28         debounce-ms = <300>;
   29 
   30         /* AC charger: 5% EOC and 500mA charging current */
   31         ac {
   32                 charger-type = "ac";
   33                 eoc-level = /bits/ 8 <0>;
   34                 charging-current = /bits/ 8 <4>;
   35         };
   36 
   37         /* USB charger: 10% EOC and 400mA charging current */
   38         usb {
   39                 charger-type = "usb";
   40                 eoc-level = /bits/ 8 <1>;
   41                 charging-current = /bits/ 8 <2>;
   42         };
   43 };

Cache object: e8fbcd78ffc2c42e2c3cb448dc4dc2b4


[ 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.