Maxim Semiconductor MAX8903 Battery Charger
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max8903.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): "maxim,max8903"
dok-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Valid DC power has been detected (active low, input)
uok-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Valid USB power has been detected (active low, input)
cen-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Charge enable pin (active low, output)
chg-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Charger status pin (active low, input)
flt-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Fault pin (active low, input)
dcm-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Current limit mode setting (DC=1 or USB=0, output)
usus-gpios — not listed as required here #
Maximum number of items (maxItems): 1
USB suspend pin (active high, output)
Required in this object (required): "compatible"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
charger {
compatible = "maxim,max8903";
dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0