195b00152SSebastian Reichel# SPDX-License-Identifier: GPL-2.0 295b00152SSebastian Reichel%YAML 1.2 395b00152SSebastian Reichel--- 41ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml# 51ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 695b00152SSebastian Reichel 79d69d47fSKrzysztof Kozlowskititle: Richtek rt9455 battery charger 895b00152SSebastian Reichel 995b00152SSebastian Reichelmaintainers: 1095b00152SSebastian Reichel - Sebastian Reichel <sre@kernel.org> 1195b00152SSebastian Reichel 1295b00152SSebastian ReichelallOf: 1395b00152SSebastian Reichel - $ref: power-supply.yaml# 1495b00152SSebastian Reichel 1595b00152SSebastian Reichelproperties: 1695b00152SSebastian Reichel compatible: 1795b00152SSebastian Reichel const: richtek,rt9455 1895b00152SSebastian Reichel 1995b00152SSebastian Reichel reg: 2095b00152SSebastian Reichel maxItems: 1 2195b00152SSebastian Reichel 2295b00152SSebastian Reichel interrupts: 2395b00152SSebastian Reichel maxItems: 1 2495b00152SSebastian Reichel 2595b00152SSebastian Reichel richtek,output-charge-current: 2695b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 2795b00152SSebastian Reichel description: output current from the charger to the battery, in uA. 2895b00152SSebastian Reichel 2995b00152SSebastian Reichel richtek,end-of-charge-percentage: 3095b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 3195b00152SSebastian Reichel description: | 3295b00152SSebastian Reichel percent of the output charge current. When the current in constant-voltage phase drops 3395b00152SSebastian Reichel below output_charge_current x end-of-charge-percentage, charge is terminated. 3495b00152SSebastian Reichel 3595b00152SSebastian Reichel richtek,battery-regulation-voltage: 3695b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 3795b00152SSebastian Reichel description: maximum battery voltage in uV. 3895b00152SSebastian Reichel 3995b00152SSebastian Reichel richtek,boost-output-voltage: 4095b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 4195b00152SSebastian Reichel description: | 4295b00152SSebastian Reichel maximum voltage provided to consumer devices, when the charger is in boost mode, in uV. 4395b00152SSebastian Reichel 4495b00152SSebastian Reichel richtek,min-input-voltage-regulation: 4595b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 4695b00152SSebastian Reichel description: | 4795b00152SSebastian Reichel input voltage level in uV, used to decrease voltage level when the over current of the 4895b00152SSebastian Reichel input power source occurs. This prevents input voltage drop due to insufficient 4995b00152SSebastian Reichel current provided by the power source. Defaults to 4500000 uV (4.5V). 5095b00152SSebastian Reichel 5195b00152SSebastian Reichel richtek,avg-input-current-regulation: 5295b00152SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 5395b00152SSebastian Reichel description: | 5495b00152SSebastian Reichel input current value in uA drained by the charger from the power source. 5595b00152SSebastian Reichel Defaults to 500000 uA (500mA). 5695b00152SSebastian Reichel 5795b00152SSebastian Reichelrequired: 5895b00152SSebastian Reichel - compatible 5995b00152SSebastian Reichel - reg 6095b00152SSebastian Reichel - interrupts 6195b00152SSebastian Reichel - richtek,output-charge-current 6295b00152SSebastian Reichel - richtek,end-of-charge-percentage 6395b00152SSebastian Reichel - richtek,battery-regulation-voltage 6495b00152SSebastian Reichel - richtek,boost-output-voltage 6595b00152SSebastian Reichel 6695b00152SSebastian ReicheladditionalProperties: false 6795b00152SSebastian Reichel 6895b00152SSebastian Reichelexamples: 6995b00152SSebastian Reichel - | 7095b00152SSebastian Reichel #include <dt-bindings/interrupt-controller/irq.h> 71*20a72af1SRob Herring i2c { 7295b00152SSebastian Reichel #address-cells = <1>; 7395b00152SSebastian Reichel #size-cells = <0>; 7495b00152SSebastian Reichel 7595b00152SSebastian Reichel charger@22 { 7695b00152SSebastian Reichel compatible = "richtek,rt9455"; 7795b00152SSebastian Reichel reg = <0x22>; 7895b00152SSebastian Reichel 7995b00152SSebastian Reichel interrupt-parent = <&gpio1>; 8095b00152SSebastian Reichel interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 8195b00152SSebastian Reichel 8295b00152SSebastian Reichel richtek,output-charge-current = <500000>; 8395b00152SSebastian Reichel richtek,end-of-charge-percentage = <10>; 8495b00152SSebastian Reichel richtek,battery-regulation-voltage = <4200000>; 8595b00152SSebastian Reichel richtek,boost-output-voltage = <5050000>; 8695b00152SSebastian Reichel 8795b00152SSebastian Reichel richtek,min-input-voltage-regulation = <4500000>; 8895b00152SSebastian Reichel richtek,avg-input-current-regulation = <500000>; 8995b00152SSebastian Reichel }; 9095b00152SSebastian Reichel }; 91