AB8500 Charger
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-charger.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-charger"
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
vddadc-supply — required here #
Supply for USB and Main charger
autopower_cfg — not listed as required here #
Value type (type): "boolean"
automatic poweron after powerloss
interrupts — required here #
Maximum number of items (maxItems): 14
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"MAIN_CH_UNPLUG_DET"
Item 2
Exact value (
const):"MAIN_CHARGE_PLUG_DET"
Item 3
Exact value (
const):"MAIN_EXT_CH_NOT_OK"
Item 4
Exact value (
const):"MAIN_CH_TH_PROT_R"
Item 5
Exact value (
const):"MAIN_CH_TH_PROT_F"
Item 6
Exact value (
const):"VBUS_DET_F"
Item 7
Exact value (
const):"VBUS_DET_R"
Item 8
Exact value (
const):"USB_LINK_STATUS"
Item 9
Exact value (
const):"USB_CH_TH_PROT_R"
Item 10
Exact value (
const):"USB_CH_TH_PROT_F"
Item 11
Exact value (
const):"USB_CHARGER_NOT_OKR"
Item 12
Exact value (
const):"VBUS_OVV"
Item 13
Exact value (
const):"CH_WD_EXP"
Item 14
Exact value (
const):"VBUS_CH_DROP_END"
io-channels — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
io-channel-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"main_charger_v"Item 2
Exact value (
const):"main_charger_c"Item 3
Exact value (
const):"vbus_v"Item 4
Exact value (
const):"usb_charger_c"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"vbus_v"Item 2
Exact value (
const):"usb_charger_c"
Required in this object (required): "compatible", "monitored-battery", "vddadc-supply", "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 {
charger {
compatible = "stericsson,ab8500-charger";
monitored-battery = <&battery>;
vddadc-supply = <&ab8500_ldo_tvout_reg>;
interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
<11 IRQ_TYPE_LEVEL_HIGH>,
<0 IRQ_TYPE_LEVEL_HIGH>,
<107 IRQ_TYPE_LEVEL_HIGH>,
<106 IRQ_TYPE_LEVEL_HIGH>,
<14 IRQ_TYPE_LEVEL_HIGH>,
<15 IRQ_TYPE_LEVEL_HIGH>,
<79 IRQ_TYPE_LEVEL_HIGH>,
<105 IRQ_TYPE_LEVEL_HIGH>,
<104 IRQ_TYPE_LEVEL_HIGH>,
<89 IRQ_TYPE_LEVEL_HIGH>,
<22 IRQ_TYPE_LEVEL_HIGH>,
<21 IRQ_TYPE_LEVEL_HIGH>,
<16 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "MAIN_CH_UNPLUG_DET",
"MAIN_CHARGE_PLUG_DET",
"MAIN_EXT_CH_NOT_OK",
"MAIN_CH_TH_PROT_R",
"MAIN_CH_TH_PROT_F",
"VBUS_DET_F",
"VBUS_DET_R",
"USB_LINK_STATUS",
"USB_CH_TH_PROT_R",
"USB_CH_TH_PROT_F",
"USB_CHARGER_NOT_OKR",
"VBUS_OVV",
"CH_WD_EXP",
"VBUS_CH_DROP_END";
io-channels = <&gpadc 0x03>,
<&gpadc 0x0a>,
<&gpadc 0x09>,
<&gpadc 0x0b>;
io-channel-names = "main_charger_v",
"main_charger_c",
"vbus_v",
"usb_charger_c";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 2: Copyright (C) 2021 Sebastian Reichel