1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8916-bms-vm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Voltage Mode BMS
10 - Nikita Travkin <nikita@trvn.ru>
13 Voltage Mode BMS is a hardware block found in some Qualcomm PMICs
14 such as pm8916. This block performs battery voltage monitoring.
17 - $ref: power-supply.yaml#
21 const: qcom,pm8916-bms-vm
28 - description: BMS FSM left S3 mode
29 - description: BMS FSM entered S2 mode
30 - description: OCV measured in S3 mode
31 - description: OCV below threshold
32 - description: FIFO update done
33 - description: BMS FSM switched state
44 monitored-battery: true
55 additionalProperties: false
59 #include <dt-bindings/interrupt-controller/irq.h>
65 compatible = "qcom,pm8916-bms-vm";
67 interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE_RISING>,
68 <0x0 0x40 1 IRQ_TYPE_EDGE_RISING>,
69 <0x0 0x40 2 IRQ_TYPE_EDGE_RISING>,
70 <0x0 0x40 3 IRQ_TYPE_EDGE_RISING>,
71 <0x0 0x40 4 IRQ_TYPE_EDGE_RISING>,
72 <0x0 0x40 5 IRQ_TYPE_EDGE_RISING>;
73 interrupt-names = "cv_leave",
80 monitored-battery = <&battery>;
81 power-supplies = <&pm8916_charger>;