Nokia N900 battery
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pali Rohár <pali@kernel.org>", "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): "nokia,n900-battery"
io-channels — required here #
Array item rules (items) #
Item 1
ADC channel for temperature reading
Item 2
ADC channel for battery size identification
Item 3
ADC channel to measure the battery voltage
io-channel-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"temp"
Item 2
Exact value (
const):"bsi"
Item 3
Exact value (
const):"vbat"
Required in this object (required): "compatible", "io-channels", "io-channel-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
battery {
compatible = "nokia,n900-battery";
io-channels = <&twl4030_madc 0>,
<&twl4030_madc 4>,
<&twl4030_madc 12>;
io-channel-names = "temp",
"bsi",
"vbat";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0