xref: /linux/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml (revision b2b911afd86631e601537c7dd7bb0acc0b1f9b51)
16c463222SSebastian Reichel# SPDX-License-Identifier: GPL-2.0
26c463222SSebastian Reichel%YAML 1.2
36c463222SSebastian Reichel---
46c463222SSebastian Reichel$id: http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml#
56c463222SSebastian Reichel$schema: http://devicetree.org/meta-schemas/core.yaml#
66c463222SSebastian Reichel
76c463222SSebastian Reicheltitle: Qualcomm Coincell Charger
86c463222SSebastian Reichel
96c463222SSebastian Reicheldescription: |
106c463222SSebastian Reichel  The hardware block controls charging for a coincell or capacitor that is
116c463222SSebastian Reichel  used to provide power backup for certain features of the power management
126c463222SSebastian Reichel  IC (PMIC)
136c463222SSebastian Reichel
146c463222SSebastian Reichelmaintainers:
156c463222SSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
166c463222SSebastian Reichel
176c463222SSebastian Reichelproperties:
186c463222SSebastian Reichel  compatible:
19b8ad34ceSKonrad Dybcio    oneOf:
20b8ad34ceSKonrad Dybcio      - items:
21b8ad34ceSKonrad Dybcio          - enum:
22b8ad34ceSKonrad Dybcio              - qcom,pm8998-coincell
23b8ad34ceSKonrad Dybcio          - const: qcom,pm8941-coincell
24b8ad34ceSKonrad Dybcio
25b8ad34ceSKonrad Dybcio      - const: qcom,pm8941-coincell
266c463222SSebastian Reichel
276c463222SSebastian Reichel  reg:
286c463222SSebastian Reichel    maxItems: 1
296c463222SSebastian Reichel
306c463222SSebastian Reichel  qcom,rset-ohms:
31*b2b911afSKonrad Dybcio    description: |
32*b2b911afSKonrad Dybcio      Resistance (in ohms) for current-limiting resistor. If unspecified,
33*b2b911afSKonrad Dybcio      inherit the previous configuration (e.g. from bootloader or hardware
34*b2b911afSKonrad Dybcio      default value).
356c463222SSebastian Reichel    enum: [ 800, 1200, 1700, 2100 ]
366c463222SSebastian Reichel
376c463222SSebastian Reichel  qcom,vset-millivolts:
386c463222SSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
39*b2b911afSKonrad Dybcio    description: |
40*b2b911afSKonrad Dybcio      Voltage (in millivolts) to apply for charging. If unspecified, inherit
41*b2b911afSKonrad Dybcio      the previous configuration (e.g. from bootloader or hardware default
42*b2b911afSKonrad Dybcio      value).
436c463222SSebastian Reichel    enum: [ 2500, 3000, 3100, 3200 ]
446c463222SSebastian Reichel
456c463222SSebastian Reichel  qcom,charger-disable:
466c463222SSebastian Reichel    type: boolean
476c463222SSebastian Reichel    description: defining this property disables charging
486c463222SSebastian Reichel
496c463222SSebastian Reichelrequired:
506c463222SSebastian Reichel  - compatible
516c463222SSebastian Reichel  - reg
526c463222SSebastian Reichel
536c463222SSebastian ReicheladditionalProperties: false
546c463222SSebastian Reichel
556c463222SSebastian Reichelexamples:
566c463222SSebastian Reichel  - |
576c463222SSebastian Reichel    pmic {
586c463222SSebastian Reichel      #address-cells = <1>;
596c463222SSebastian Reichel      #size-cells = <0>;
606c463222SSebastian Reichel
616c463222SSebastian Reichel      charger@2800 {
626c463222SSebastian Reichel        compatible = "qcom,pm8941-coincell";
636c463222SSebastian Reichel        reg = <0x2800>;
646c463222SSebastian Reichel        qcom,rset-ohms = <2100>;
656c463222SSebastian Reichel        qcom,vset-millivolts = <3000>;
666c463222SSebastian Reichel      };
676c463222SSebastian Reichel    };
68