1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/supply/ti,lp8727.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI/National Semiconductor LP8727 Charger
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
26 description: interrupt debounce time in ms
31 additionalProperties: false
32 description: USB/AC charging parameters
40 $ref: /schemas/types.yaml#/definitions/uint8
44 End of Charge Percentage with the following mapping:
45 0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4 = 25%, 5 = 33%, 6 = 50%
48 $ref: /schemas/types.yaml#/definitions/uint8
52 Charging current with the following mapping:
53 0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA,
54 6 = 700mA, 7 = 800mA, 8 = 900mA, 9 = 1000mA
60 additionalProperties: false
64 #include <dt-bindings/interrupt-controller/irq.h>
70 compatible = "ti,lp8727";
72 interrupt-parent = <&gpio5>;
73 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
76 /* AC charger: 5% EOC and 500mA charging current */
79 eoc-level = /bits/ 8 <0>;
80 charging-current = /bits/ 8 <4>;
83 /* USB charger: 10% EOC and 400mA charging current */
86 eoc-level = /bits/ 8 <1>;
87 charging-current = /bits/ 8 <2>;