1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/power/supply/qcom,pmi8998-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm PMI8998/PM660 Switch-Mode Battery Charger "2"
10 - Caleb Connolly <caleb.connolly@linaro.org>
15 - qcom,pmi8998-charger
29 - const: usbin-icl-change
33 - description: USB in current in uA
34 - description: USB in voltage in uV
42 description: phandle to the simple-battery node
43 $ref: /schemas/types.yaml#/definitions/phandle
54 additionalProperties: false
58 #include <dt-bindings/interrupt-controller/irq.h>
63 #interrupt-cells = <4>;
66 compatible = "qcom,pmi8998-charger";
69 interrupts = <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
70 <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
71 <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
72 <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>;
73 interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change";
75 io-channels = <&pmi8998_rradc 3>,
77 io-channel-names = "usbin_i",
80 monitored-battery = <&battery>;