Qualcomm PMI8998/PM660 Switch-Mode Battery Charger "2"

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pmi8998-charger.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Casey Connolly <casey.connolly@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pmi8998-charger", "qcom,pm660-charger"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 4

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "usb-plugin"

Item 2

Exact value (const): "bat-ov"

Item 3

Exact value (const): "wdog-bark"

Item 4

Exact value (const): "usbin-icl-change"

io-channels — required here #

Array item rules (items) #

Item 1

USB in current in uA

Item 2

USB in voltage in uV

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "usbin_i"

Item 2

Exact value (const): "usbin_v"

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "io-channels", "io-channel-names", "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

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>;

  charger@1000 {
    compatible = "qcom,pmi8998-charger";
    reg = <0x1000>;

    interrupts = <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
                 <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
                 <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
                 <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change";

    io-channels = <&pmi8998_rradc 3>,
                  <&pmi8998_rradc 4>;
    io-channel-names = "usbin_i",
                       "usbin_v";

    monitored-battery = <&battery>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Edit this page