1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Coincell Charger
8
9description: |
10  The hardware block controls charging for a coincell or capacitor that is
11  used to provide power backup for certain features of the power management
12  IC (PMIC)
13
14maintainers:
15  - Sebastian Reichel <sre@kernel.org>
16
17properties:
18  compatible:
19    const: qcom,pm8941-coincell
20
21  reg:
22    maxItems: 1
23
24  qcom,rset-ohms:
25    description: resistance (in ohms) for current-limiting resistor
26    enum: [ 800, 1200, 1700, 2100 ]
27
28  qcom,vset-millivolts:
29    $ref: /schemas/types.yaml#/definitions/uint32
30    description: voltage (in millivolts) to apply for charging
31    enum: [ 2500, 3000, 3100, 3200 ]
32
33  qcom,charger-disable:
34    type: boolean
35    description: defining this property disables charging
36
37required:
38  - compatible
39  - reg
40  - qcom,rset-ohms
41  - qcom,vset-millivolts
42
43additionalProperties: false
44
45examples:
46  - |
47    pmic {
48      #address-cells = <1>;
49      #size-cells = <0>;
50
51      charger@2800 {
52        compatible = "qcom,pm8941-coincell";
53        reg = <0x2800>;
54        qcom,rset-ohms = <2100>;
55        qcom,vset-millivolts = <3000>;
56      };
57    };
58