12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Qualcomm Coincell Charger 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotdescription: | 102eb4d8dcSEmmanuel Vadot The hardware block controls charging for a coincell or capacitor that is 112eb4d8dcSEmmanuel Vadot used to provide power backup for certain features of the power management 122eb4d8dcSEmmanuel Vadot IC (PMIC) 132eb4d8dcSEmmanuel Vadot 142eb4d8dcSEmmanuel Vadotmaintainers: 152eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 162eb4d8dcSEmmanuel Vadot 172eb4d8dcSEmmanuel Vadotproperties: 182eb4d8dcSEmmanuel Vadot compatible: 19*cb7aa33aSEmmanuel Vadot oneOf: 20*cb7aa33aSEmmanuel Vadot - items: 21*cb7aa33aSEmmanuel Vadot - enum: 22*cb7aa33aSEmmanuel Vadot - qcom,pm8998-coincell 23*cb7aa33aSEmmanuel Vadot - const: qcom,pm8941-coincell 24*cb7aa33aSEmmanuel Vadot 25*cb7aa33aSEmmanuel Vadot - const: qcom,pm8941-coincell 262eb4d8dcSEmmanuel Vadot 272eb4d8dcSEmmanuel Vadot reg: 282eb4d8dcSEmmanuel Vadot maxItems: 1 292eb4d8dcSEmmanuel Vadot 302eb4d8dcSEmmanuel Vadot qcom,rset-ohms: 31*cb7aa33aSEmmanuel Vadot description: | 32*cb7aa33aSEmmanuel Vadot Resistance (in ohms) for current-limiting resistor. If unspecified, 33*cb7aa33aSEmmanuel Vadot inherit the previous configuration (e.g. from bootloader or hardware 34*cb7aa33aSEmmanuel Vadot default value). 352eb4d8dcSEmmanuel Vadot enum: [ 800, 1200, 1700, 2100 ] 362eb4d8dcSEmmanuel Vadot 372eb4d8dcSEmmanuel Vadot qcom,vset-millivolts: 382eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 39*cb7aa33aSEmmanuel Vadot description: | 40*cb7aa33aSEmmanuel Vadot Voltage (in millivolts) to apply for charging. If unspecified, inherit 41*cb7aa33aSEmmanuel Vadot the previous configuration (e.g. from bootloader or hardware default 42*cb7aa33aSEmmanuel Vadot value). 432eb4d8dcSEmmanuel Vadot enum: [ 2500, 3000, 3100, 3200 ] 442eb4d8dcSEmmanuel Vadot 452eb4d8dcSEmmanuel Vadot qcom,charger-disable: 462eb4d8dcSEmmanuel Vadot type: boolean 472eb4d8dcSEmmanuel Vadot description: defining this property disables charging 482eb4d8dcSEmmanuel Vadot 492eb4d8dcSEmmanuel Vadotrequired: 502eb4d8dcSEmmanuel Vadot - compatible 512eb4d8dcSEmmanuel Vadot - reg 522eb4d8dcSEmmanuel Vadot 532eb4d8dcSEmmanuel VadotadditionalProperties: false 542eb4d8dcSEmmanuel Vadot 552eb4d8dcSEmmanuel Vadotexamples: 562eb4d8dcSEmmanuel Vadot - | 572eb4d8dcSEmmanuel Vadot pmic { 582eb4d8dcSEmmanuel Vadot #address-cells = <1>; 592eb4d8dcSEmmanuel Vadot #size-cells = <0>; 602eb4d8dcSEmmanuel Vadot 612eb4d8dcSEmmanuel Vadot charger@2800 { 622eb4d8dcSEmmanuel Vadot compatible = "qcom,pm8941-coincell"; 632eb4d8dcSEmmanuel Vadot reg = <0x2800>; 642eb4d8dcSEmmanuel Vadot qcom,rset-ohms = <2100>; 652eb4d8dcSEmmanuel Vadot qcom,vset-millivolts = <3000>; 662eb4d8dcSEmmanuel Vadot }; 672eb4d8dcSEmmanuel Vadot }; 68