1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
23 - description: charge done
24 - description: charge fast mode
25 - description: charge trickle mode
26 - description: battery temperature ok
27 - description: battery present
28 - description: charger disconnected
29 - description: USB-in valid
30 - description: DC-in valid
43 qcom,fast-charge-current-limit:
44 $ref: /schemas/types.yaml#/definitions/uint32
47 description: Maximum charge current in uA; May be clamped to safety limits; Defaults to 1A
49 qcom,fast-charge-low-threshold-voltage:
50 $ref: /schemas/types.yaml#/definitions/uint32
54 Battery voltage limit in uV above which fast charging may operate; Defaults to 3.2V
55 Below this value linear or switch-mode auto-trickle-charging will operate.
57 qcom,fast-charge-high-threshold-voltage:
58 $ref: /schemas/types.yaml#/definitions/uint32
62 Battery voltage limit in uV below which fast charging may operate; Defaults to 4.2V
63 The fast charger will attempt to charge the battery to this voltage.
64 May be clamped to safety limits.
66 qcom,fast-charge-safe-voltage:
67 $ref: /schemas/types.yaml#/definitions/uint32
71 Maximum safe battery voltage in uV; May be pre-set by bootloader, in which case,
72 setting this will harmlessly fail. The property 'fast-charge-high-watermark' will
73 be clamped by this value. Defaults to 4.2V.
75 qcom,fast-charge-safe-current:
76 $ref: /schemas/types.yaml#/definitions/uint32
80 Maximum safe battery charge current in uA; May pre-set by bootloader, in which case,
81 setting this will harmlessly fail. The property 'qcom,fast-charge-current-limit'
82 will be clamped by this value. Defaults to 1A.
84 qcom,auto-recharge-threshold-voltage:
85 $ref: /schemas/types.yaml#/definitions/uint32
89 Battery voltage limit in uV below which auto-recharge functionality will restart charging
90 after end-of-charge; The high cutoff limit for auto-recharge is 5% above this value.
93 qcom,minimum-input-voltage:
94 $ref: /schemas/types.yaml#/definitions/uint32
98 Input voltage level in uV above which charging may operate. Defaults to 4.3V.
100 qcom,dc-current-limit:
101 $ref: /schemas/types.yaml#/definitions/uint32
105 Default DC charge current limit in uA. Defaults to 100mA.
109 description: Disable DC charger
111 qcom,jeita-extended-temp-range:
114 Enable JEITA extended temperature range; This does *not* adjust the maximum charge
115 voltage or current in the extended temperature range. It only allows charging when
116 the battery is in the extended temperature range. Voltage/current regulation must
117 be done externally to fully comply with the JEITA safety guidelines if this flag
120 usb-charge-current-limit:
121 $ref: /schemas/types.yaml#/definitions/uint32
125 Default USB charge current limit in uA.
128 description: Reference to the regulator supplying power to the USB_OTG_IN pin.
131 $ref: /schemas/regulator/regulator.yaml#
133 This node defines a regulator used to control the direction of VBUS voltage.
134 Specifically whether to supply voltage to VBUS for host mode operation of the OTG port,
135 or allow input voltage from external VBUS for charging. In the hardware, the supply for
136 this regulator comes from usb_otg_in-supply.
144 additionalProperties: false
148 #include <dt-bindings/interrupt-controller/irq.h>
150 #address-cells = <1>;
154 compatible = "qcom,pm8941-charger";
156 interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
157 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
158 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
159 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
160 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
161 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
162 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
163 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
164 interrupt-names = "chg-done",
172 qcom,fast-charge-current-limit = <1000000>;
173 qcom,dc-current-limit = <1000000>;
174 usb-otg-in-supply = <&pm8941_5vs1>;