Richtek rt9455 battery charger
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):power-supply.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rt9455"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
richtek,output-charge-current — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
output current from the charger to the battery, in uA.
richtek,end-of-charge-percentage — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
percent of the output charge current. When the current in constant-voltage phase drops below output_charge_current x end-of-charge-percentage, charge is terminated.
richtek,battery-regulation-voltage — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum battery voltage in uV.
richtek,boost-output-voltage — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum voltage provided to consumer devices, when the charger is in boost mode, in uV.
richtek,min-input-voltage-regulation — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
input voltage level in uV, used to decrease voltage level when the over current of the input power source occurs. This prevents input voltage drop due to insufficient current provided by the power source. Defaults to 4500000 uV (4.5V).
richtek,avg-input-current-regulation — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
input current value in uA drained by the charger from the power source. Defaults to 500000 uA (500mA).
Required in this object (required): "compatible", "reg", "interrupts", "richtek,output-charge-current", "richtek,end-of-charge-percentage", "richtek,battery-regulation-voltage", "richtek,boost-output-voltage"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
charger@22 {
compatible = "richtek,rt9455";
reg = <0x22>;
interrupt-parent = <&gpio1>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
richtek,output-charge-current = <500000>;
richtek,end-of-charge-percentage = <10>;
richtek,battery-regulation-voltage = <4200000>;
richtek,boost-output-voltage = <5050000>;
richtek,min-input-voltage-regulation = <4500000>;
richtek,avg-input-current-regulation = <500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0