Qualcomm PMIC Multi-Purpose Pin (MPP) block

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

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

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

This binding describes the MPP block(s) found in the 8xxx series of PMIC's from Qualcomm.

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,pm8019-mpp", "qcom,pm8226-mpp", "qcom,pm8841-mpp", "qcom,pm8916-mpp", "qcom,pm8937-mpp", "qcom,pm8941-mpp", "qcom,pm8950-mpp", "qcom,pmi8950-mpp", "qcom,pm8994-mpp", "qcom,pma8084-mpp", "qcom,pmi8994-mpp"

Item 2

Exact value (const): "qcom,spmi-mpp"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,pm8018-mpp", "qcom,pm8038-mpp", "qcom,pm8058-mpp", "qcom,pm8821-mpp", "qcom,pm8901-mpp", "qcom,pm8917-mpp", "qcom,pm8921-mpp"

Item 2

Exact value (const): "qcom,ssbi-mpp"

reg — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

The first cell will be used to define gpio number and the second denotes the flags for this gpio

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupt-controller"

Properties matching a name pattern (patternProperties) #

-state$ — name matches this regular expression #

Exactly one of these rules must match (oneOf) #

Rule 1

Shared schema rule ($ref): #/$defs/qcom-pmic-mpp-state

Rule 2

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/qcom-pmic-mpp-state

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Reusable definitions ($defs) #

qcom-pmic-mpp-state #

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): pinmux-node.yaml

Rule 2

Shared schema rule ($ref): pincfg-node.yaml

Properties and child nodes (properties) #

pins — required here

List of gpio pins affected by the properties specified in this subnode. Valid pins are - mpp1-mpp4 for pm8841 - mpp1-mpp4 for pm8916 - mpp1-mpp4 for pm8937 - mpp1-mpp8 for pm8941 - mpp1-mpp4 for pm8950 - mpp1-mpp4 for pmi8950 - mpp1-mpp4 for pma8084

Array item rules (items)

String pattern (pattern): "^mpp([0-9]+)$"

function — required here

Array item rules (items)

Item 1

Allowed values (enum): "digital", "analog", "sink"

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

true — No constraints added by this property rule.

bias-high-impedance — not listed as required here

true — No constraints added by this property rule.

input-enable — not listed as required here

true — No constraints added by this property rule.

output-high — not listed as required here

true — No constraints added by this property rule.

output-low — not listed as required here

true — No constraints added by this property rule.

power-source — not listed as required here

true — No constraints added by this property rule.

qcom,analog-level — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Selects the source for analog output. Valued values are defined in <dt-binding/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AOUT_LVL_*

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

qcom,atest — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Selects ATEST rail to route to GPIO when it's configured in analog-pass-through mode.

Allowed values (enum): 1, 2, 3, 4

qcom,dtest — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Selects DTEST rail to route to GPIO when it's configured as digital input.

Allowed values (enum): 1, 2, 3, 4

qcom,amux-route — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Selects the source for analog input. Valid values are defined in <dt-bindings/pinctrl/qcom,pmic-mpp.h> PMIC_MPP_AMUX_ROUTE_CH5, PMIC_MPP_AMUX_ROUTE_CH6...

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

qcom,paired — not listed as required here

Value type (type): "boolean"

Indicates that the pin should be operating in paired mode.

Required in this object (required): "pins", "function"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>

pmic {
    #address-cells = <1>;
    #size-cells = <0>;

    pm8841_mpp: mpps@a000 {
        compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
        reg = <0xa000>;

        gpio-controller;
        #gpio-cells = <2>;
        gpio-ranges = <&pm8841_mpp 0 0 4>;
        gpio-line-names = "VDD_PX_BIAS", "WLAN_LED_CTRL",
                          "BT_LED_CTRL", "GPIO-F";
        interrupt-controller;
        #interrupt-cells = <2>;

        pinctrl-names = "default";
        pinctrl-0 = <&pm8841_default>;

        mpp1-state {
            pins = "mpp1";
            function = "digital";
            input-enable;
            power-source = <PM8841_MPP_S3>;
        };

        default-state {
            gpio-pins {
                pins = "mpp1", "mpp2", "mpp3", "mpp4";
                function = "digital";
                input-enable;
                power-source = <PM8841_MPP_S3>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page