Qualcomm Voltage Mode BMS
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pm8916-bms-vm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"
Voltage Mode BMS is a hardware block found in some Qualcomm PMICs such as pm8916. This block performs battery voltage monitoring.
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): "qcom,pm8916-bms-vm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
BMS FSM left S3 mode
Item 2
BMS FSM entered S2 mode
Item 3
OCV measured in S3 mode
Item 4
OCV below threshold
Item 5
FIFO update done
Item 6
BMS FSM switched state
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cv_leave"
Item 2
Exact value (
const):"cv_enter"
Item 3
Exact value (
const):"ocv_good"
Item 4
Exact value (
const):"ocv_thr"
Item 5
Exact value (
const):"fifo"
Item 6
Exact value (
const):"state_chg"
monitored-battery — required here #
true — No constraints added by this property rule.
power-supplies — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "monitored-battery"
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 {
#address-cells = <1>;
#size-cells = <0>;
battery@4000 {
compatible = "qcom,pm8916-bms-vm";
reg = <0x4000>;
interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE_RISING>,
<0x0 0x40 1 IRQ_TYPE_EDGE_RISING>,
<0x0 0x40 2 IRQ_TYPE_EDGE_RISING>,
<0x0 0x40 3 IRQ_TYPE_EDGE_RISING>,
<0x0 0x40 4 IRQ_TYPE_EDGE_RISING>,
<0x0 0x40 5 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "cv_leave",
"cv_enter",
"ocv_good",
"ocv_thr",
"fifo",
"state_chg";
monitored-battery = <&battery>;
power-supplies = <&pm8916_charger>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)