Qualcomm Technologies, Inc. Glymur SPMI Controller (PMIC Arbiter v8)

Schema identifier ($id): "http://devicetree.org/schemas/spmi/qcom,glymur-spmi-pmic-arb.yaml#"

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

Maintainers (maintainers): "David Collins <david.collins@oss.qualcomm.com>"

The Glymur SPMI PMIC Arbiter implements HW version 8 and it's an SPMI controller with wrapping arbitration logic to allow for multiple on-chip devices to control up to 4 SPMI separate buses.

The PMIC Arbiter can also act as an interrupt controller, providing interrupts to slave devices.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spmi/qcom,spmi-pmic-arb-common.yaml

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-spmi-pmic-arb"

Item 2

Exact value (const): "qcom,glymur-spmi-pmic-arb"

Rule 2

Allowed values (enum): "qcom,glymur-spmi-pmic-arb"

reg — not listed as required here #

Array item rules (items) #

Item 1

core registers

Item 2

tx-channel per virtual slave registers

Item 3

rx-channel (called observer) per virtual slave registers

Item 4

channel to PMIC peripheral mapping registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "chnls"

Item 3

Exact value (const): "obsrvr"

Item 4

Exact value (const): "chnl_map"

ranges — not listed as required here #

true — No constraints added by this property rule.

#address-cells — not listed as required here #

Exact value (const): 2

#size-cells — not listed as required here #

Exact value (const): 2

Properties matching a name pattern (patternProperties) #

^spmi@[a-f0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/spmi/spmi.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Array item rules (items)

Item 1

configuration registers

Item 2

interrupt controller registers

Item 3

channel owner EE mapping registers

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "cnfg"

Item 2

Exact value (const): "intr"

Item 3

Exact value (const): "chnl_owner"

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Exact value (const): "periph_irq"

interrupt-controller — not listed as required here

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here

Exact value (const): 4

cell 1: slave ID for the requested interrupt (0-15)
cell 2: peripheral ID for requested interrupt (0-255)
cell 3: the requested peripheral interrupt (0-7)
cell 4: interrupt flags indicating level-sense information,
        as defined in dt-bindings/interrupt-controller/irq.h

Required in this object (required): "compatible", "reg-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    arbiter@c400000 {
        compatible = "qcom,glymur-spmi-pmic-arb";
        reg = <0x0 0xc400000 0x0 0x3000>,
              <0x0 0xc900000 0x0 0x400000>,
              <0x0 0xc4c0000 0x0 0x400000>,
              <0x0 0xc403000 0x0 0x8000>;
        reg-names = "core", "chnls", "obsrvr", "chnl_map";

        qcom,ee = <0>;
        qcom,channel = <0>;

        #address-cells = <2>;
        #size-cells = <2>;
        ranges;

        spmi@c426000 {
            reg = <0x0 0xc426000 0x0 0x4000>,
                  <0x0 0xc8c0000 0x0 0x10000>,
                  <0x0 0xc42a000 0x0 0x8000>;
            reg-names = "cnfg", "intr", "chnl_owner";

            interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-names = "periph_irq";
            interrupt-controller;
            #interrupt-cells = <4>;

            #address-cells = <2>;
            #size-cells = <0>;
        };

        spmi@c437000 {
            reg = <0x0 0xc437000 0x0 0x4000>,
                  <0x0 0xc8d0000 0x0 0x10000>,
                  <0x0 0xc43b000 0x0 0x8000>;
            reg-names = "cnfg", "intr", "chnl_owner";

            interrupts-extended = <&pdc 3 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-names = "periph_irq";
            interrupt-controller;
            #interrupt-cells = <4>;

            #address-cells = <2>;
            #size-cells = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page