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>
14 const: qcom,pm8941-charger
21 - description: charge done
22 - description: charge fast mode
23 - description: charge trickle mode
24 - description: battery temperature ok
25 - description: battery present
26 - description: charger disconnected
27 - description: USB-in valid
28 - description: DC-in valid
41 qcom,fast-charge-current-limit:
42 $ref: /schemas/types.yaml#/definitions/uint32
45 description: Maximum charge current in uA; May be clamped to safety limits; Defaults to 1A
47 qcom,fast-charge-low-threshold-voltage:
48 $ref: /schemas/types.yaml#/definitions/uint32
52 Battery voltage limit in uV above which fast charging may operate; Defaults to 3.2V
53 Below this value linear or switch-mode auto-trickle-charging will operate.
55 qcom,fast-charge-high-threshold-voltage:
56 $ref: /schemas/types.yaml#/definitions/uint32
60 Battery voltage limit in uV below which fast charging may operate; Defaults to 4.2V
61 The fast charger will attempt to charge the battery to this voltage.
62 May be clamped to safety limits.
64 qcom,fast-charge-safe-voltage:
65 $ref: /schemas/types.yaml#/definitions/uint32
69 Maximum safe battery voltage in uV; May be pre-set by bootloader, in which case,
70 setting this will harmlessly fail. The property 'fast-charge-high-watermark' will
71 be clamped by this value. Defaults to 4.2V.
73 qcom,fast-charge-safe-current:
74 $ref: /schemas/types.yaml#/definitions/uint32
78 Maximum safe battery charge current in uA; May pre-set by bootloader, in which case,
79 setting this will harmlessly fail. The property 'qcom,fast-charge-current-limit'
80 will be clamped by this value. Defaults to 1A.
82 qcom,auto-recharge-threshold-voltage:
83 $ref: /schemas/types.yaml#/definitions/uint32
87 Battery voltage limit in uV below which auto-recharge functionality will restart charging
88 after end-of-charge; The high cutoff limit for auto-recharge is 5% above this value.
91 qcom,minimum-input-voltage:
92 $ref: /schemas/types.yaml#/definitions/uint32
96 Input voltage level in uV above which charging may operate. Defaults to 4.3V.
98 qcom,dc-current-limit:
99 $ref: /schemas/types.yaml#/definitions/uint32
103 Default DC charge current limit in uA. Defaults to 100mA.
107 description: Disable DC charger
109 qcom,jeita-extended-temp-range:
112 Enable JEITA extended temperature range; This does *not* adjust the maximum charge
113 voltage or current in the extended temperature range. It only allows charging when
114 the battery is in the extended temperature range. Voltage/current regulation must
115 be done externally to fully comply with the JEITA safety guidelines if this flag
119 description: Reference to the regulator supplying power to the USB_OTG_IN pin.
124 This node defines a regulator used to control the direction of VBUS voltage.
125 Specifically whether to supply voltage to VBUS for host mode operation of the OTG port,
126 or allow input voltage from external VBUS for charging. In the hardware, the supply for
127 this regulator comes from usb_otg_in-supply.
135 additionalProperties: false
139 #include <dt-bindings/interrupt-controller/irq.h>
141 #address-cells = <1>;
145 compatible = "qcom,pm8941-charger";
147 interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
148 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
149 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
150 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
151 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
152 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
153 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
154 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
155 interrupt-names = "chg-done",
163 qcom,fast-charge-current-limit = <1000000>;
164 qcom,dc-current-limit = <1000000>;
165 usb-otg-in-supply = <&pm8941_5vs1>;