AB8500 Battery Temperature Monitor
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-btemp.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): "stericsson,ab8500-btemp"
monitored-battery — required here #
true — No constraints added by this property rule.
battery — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Deprecated (deprecated): true
interrupts — required here #
Maximum number of items (maxItems): 5
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"BAT_CTRL_INDB"
Item 2
Exact value (
const):"BTEMP_LOW"
Item 3
Exact value (
const):"BTEMP_HIGH"
Item 4
Exact value (
const):"BTEMP_LOW_MEDIUM"
Item 5
Exact value (
const):"BTEMP_MEDIUM_HIGH"
io-channels — required here #
Maximum number of items (maxItems): 2
io-channel-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"btemp_ball"
Item 2
Exact value (
const):"bat_ctrl"
Required in this object (required): "compatible", "monitored-battery", "interrupts", "interrupt-names", "io-channels", "io-channel-names"
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>
pmic {
battery-temperature {
compatible = "stericsson,ab8500-btemp";
monitored-battery = <&battery>;
interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
<80 IRQ_TYPE_LEVEL_HIGH>,
<83 IRQ_TYPE_LEVEL_HIGH>,
<81 IRQ_TYPE_LEVEL_HIGH>,
<82 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "BAT_CTRL_INDB",
"BTEMP_LOW",
"BTEMP_HIGH",
"BTEMP_LOW_MEDIUM",
"BTEMP_MEDIUM_HIGH";
io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
io-channel-names = "btemp_ball", "bat_ctrl";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 2: Copyright (C) 2021 Sebastian Reichel