12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml# 5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Richtek rt9455 battery charger 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel VadotallOf: 132eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 142eb4d8dcSEmmanuel Vadot 152eb4d8dcSEmmanuel Vadotproperties: 162eb4d8dcSEmmanuel Vadot compatible: 172eb4d8dcSEmmanuel Vadot const: richtek,rt9455 182eb4d8dcSEmmanuel Vadot 192eb4d8dcSEmmanuel Vadot reg: 202eb4d8dcSEmmanuel Vadot maxItems: 1 212eb4d8dcSEmmanuel Vadot 222eb4d8dcSEmmanuel Vadot interrupts: 232eb4d8dcSEmmanuel Vadot maxItems: 1 242eb4d8dcSEmmanuel Vadot 252eb4d8dcSEmmanuel Vadot richtek,output-charge-current: 262eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 272eb4d8dcSEmmanuel Vadot description: output current from the charger to the battery, in uA. 282eb4d8dcSEmmanuel Vadot 292eb4d8dcSEmmanuel Vadot richtek,end-of-charge-percentage: 302eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 312eb4d8dcSEmmanuel Vadot description: | 322eb4d8dcSEmmanuel Vadot percent of the output charge current. When the current in constant-voltage phase drops 332eb4d8dcSEmmanuel Vadot below output_charge_current x end-of-charge-percentage, charge is terminated. 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadot richtek,battery-regulation-voltage: 362eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 372eb4d8dcSEmmanuel Vadot description: maximum battery voltage in uV. 382eb4d8dcSEmmanuel Vadot 392eb4d8dcSEmmanuel Vadot richtek,boost-output-voltage: 402eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 412eb4d8dcSEmmanuel Vadot description: | 422eb4d8dcSEmmanuel Vadot maximum voltage provided to consumer devices, when the charger is in boost mode, in uV. 432eb4d8dcSEmmanuel Vadot 442eb4d8dcSEmmanuel Vadot richtek,min-input-voltage-regulation: 452eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 462eb4d8dcSEmmanuel Vadot description: | 472eb4d8dcSEmmanuel Vadot input voltage level in uV, used to decrease voltage level when the over current of the 482eb4d8dcSEmmanuel Vadot input power source occurs. This prevents input voltage drop due to insufficient 492eb4d8dcSEmmanuel Vadot current provided by the power source. Defaults to 4500000 uV (4.5V). 502eb4d8dcSEmmanuel Vadot 512eb4d8dcSEmmanuel Vadot richtek,avg-input-current-regulation: 522eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 532eb4d8dcSEmmanuel Vadot description: | 542eb4d8dcSEmmanuel Vadot input current value in uA drained by the charger from the power source. 552eb4d8dcSEmmanuel Vadot Defaults to 500000 uA (500mA). 562eb4d8dcSEmmanuel Vadot 572eb4d8dcSEmmanuel Vadotrequired: 582eb4d8dcSEmmanuel Vadot - compatible 592eb4d8dcSEmmanuel Vadot - reg 602eb4d8dcSEmmanuel Vadot - interrupts 612eb4d8dcSEmmanuel Vadot - richtek,output-charge-current 622eb4d8dcSEmmanuel Vadot - richtek,end-of-charge-percentage 632eb4d8dcSEmmanuel Vadot - richtek,battery-regulation-voltage 642eb4d8dcSEmmanuel Vadot - richtek,boost-output-voltage 652eb4d8dcSEmmanuel Vadot 662eb4d8dcSEmmanuel VadotadditionalProperties: false 672eb4d8dcSEmmanuel Vadot 682eb4d8dcSEmmanuel Vadotexamples: 692eb4d8dcSEmmanuel Vadot - | 702eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 71*fac71e4eSEmmanuel Vadot i2c { 722eb4d8dcSEmmanuel Vadot #address-cells = <1>; 732eb4d8dcSEmmanuel Vadot #size-cells = <0>; 742eb4d8dcSEmmanuel Vadot 752eb4d8dcSEmmanuel Vadot charger@22 { 762eb4d8dcSEmmanuel Vadot compatible = "richtek,rt9455"; 772eb4d8dcSEmmanuel Vadot reg = <0x22>; 782eb4d8dcSEmmanuel Vadot 792eb4d8dcSEmmanuel Vadot interrupt-parent = <&gpio1>; 802eb4d8dcSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 812eb4d8dcSEmmanuel Vadot 822eb4d8dcSEmmanuel Vadot richtek,output-charge-current = <500000>; 832eb4d8dcSEmmanuel Vadot richtek,end-of-charge-percentage = <10>; 842eb4d8dcSEmmanuel Vadot richtek,battery-regulation-voltage = <4200000>; 852eb4d8dcSEmmanuel Vadot richtek,boost-output-voltage = <5050000>; 862eb4d8dcSEmmanuel Vadot 872eb4d8dcSEmmanuel Vadot richtek,min-input-voltage-regulation = <4500000>; 882eb4d8dcSEmmanuel Vadot richtek,avg-input-current-regulation = <500000>; 892eb4d8dcSEmmanuel Vadot }; 902eb4d8dcSEmmanuel Vadot }; 91