AXP20x Battery power-supply
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The supported devices can read the battery voltage, charge and discharge currents of the battery by reading ADC channels from the ADC.
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Sebastian Reichel <sre@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"x-powers,axp202-battery-power-supply"
Rule 2
Exact value (
const):"x-powers,axp209-battery-power-supply"
Rule 3
Exact value (
const):"x-powers,axp221-battery-power-supply"
Rule 4
Exact value (
const):"x-powers,axp717-battery-power-supply"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"x-powers,axp803-battery-power-supply"Item 2
Exact value (
const):"x-powers,axp813-battery-power-supply"
Rule 6
Exact value (
const):"x-powers,axp813-battery-power-supply"
monitored-battery — not listed as required here #
true — No constraints added by this property rule.
x-powers,no-thermistor — not listed as required here #
Value type (type): "boolean"
Indicates that no thermistor is connected to the TS pin
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):power-supply.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"x-powers,axp717-battery-power-supply"When the condition matches (
then) #Properties and child nodes (
properties)
x-powers,no-thermistor— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0