1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8916-lbc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Linear Battery Charger
10 - Nikita Travkin <nikita@trvn.ru>
13 Linear Battery Charger hardware block, found in some Qualcomm PMICs
14 such as pm8916. Implements a simple, autonomous CC/CV charger.
17 - $ref: power-supply.yaml#
21 const: qcom,pm8916-lbc
25 - description: Charger
26 - description: Battery
39 - description: Battery detection
40 - description: Fast charging
41 - description: Charging failed
42 - description: Charging done
43 - description: Battery present
44 - description: Battery temperature OK
45 - description: USB coarse detection
46 - description: USB IN valid
47 - description: Charger gone
48 - description: Overtemperature
63 qcom,fast-charge-safe-voltage:
64 $ref: /schemas/types.yaml#/definitions/uint32
68 Maximum safe battery voltage in uV; May be pre-set by bootloader,
69 in which case, setting this will harmlessly fail.
71 qcom,fast-charge-safe-current:
72 $ref: /schemas/types.yaml#/definitions/uint32
76 Maximum safe battery charge current in uA; May be pre-set by
77 bootloader, in which case setting this will harmlessly fail.
79 monitored-battery: true
86 - qcom,fast-charge-safe-voltage
87 - qcom,fast-charge-safe-current
89 additionalProperties: false
93 #include <dt-bindings/interrupt-controller/irq.h>
99 compatible = "qcom,pm8916-lbc";
100 reg = <0x1000>, <0x1200>, <0x1300>, <0x1600>;
101 reg-names = "chgr", "bat_if", "usb", "misc";
103 interrupts = <0x0 0x10 0 IRQ_TYPE_EDGE_BOTH>,
104 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
105 <0x0 0x10 6 IRQ_TYPE_EDGE_BOTH>,
106 <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
107 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
108 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
109 <0x0 0x13 0 IRQ_TYPE_EDGE_BOTH>,
110 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
111 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
112 <0x0 0x13 4 IRQ_TYPE_EDGE_BOTH>;
113 interrupt-names = "vbat_det",
123 monitored-battery = <&battery>;
125 qcom,fast-charge-safe-current = <900000>;
126 qcom,fast-charge-safe-voltage = <4300000>;