xref: /linux/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
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    oneOf:
20      - items:
21          - enum:
22              - qcom,pm8998-coincell
23          - const: qcom,pm8941-coincell
24
25      - const: qcom,pm8941-coincell
26
27  reg:
28    maxItems: 1
29
30  qcom,rset-ohms:
31    description: |
32      Resistance (in ohms) for current-limiting resistor. If unspecified,
33      inherit the previous configuration (e.g. from bootloader or hardware
34      default value).
35    enum: [ 800, 1200, 1700, 2100 ]
36
37  qcom,vset-millivolts:
38    $ref: /schemas/types.yaml#/definitions/uint32
39    description: |
40      Voltage (in millivolts) to apply for charging. If unspecified, inherit
41      the previous configuration (e.g. from bootloader or hardware default
42      value).
43    enum: [ 2500, 3000, 3100, 3200 ]
44
45  qcom,charger-disable:
46    type: boolean
47    description: defining this property disables charging
48
49required:
50  - compatible
51  - reg
52
53additionalProperties: false
54
55examples:
56  - |
57    pmic {
58      #address-cells = <1>;
59      #size-cells = <0>;
60
61      charger@2800 {
62        compatible = "qcom,pm8941-coincell";
63        reg = <0x2800>;
64        qcom,rset-ohms = <2100>;
65        qcom,vset-millivolts = <3000>;
66      };
67    };
68