Qualcomm Technologies, Inc. MSM8226 TLMM block

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

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

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

Top Level Mode Multiplexer pin controller in Qualcomm MSM8226 SoC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,msm8226-pinctrl"

reg — required here #

Specifies the base address and size of the TLMM register space

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

gpio-reserved-ranges — not listed as required here #

Maximum number of items (maxItems): 1

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-msm8226-tlmm-state

Rule 2

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/qcom-msm8226-tlmm-state

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

false

Not allowed by this rule.

Reusable definitions ($defs) #

qcom-msm8226-tlmm-state #

Value type (type): "object"

Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties.

Shared schema rule ($ref): qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

pins — required here

List of gpio pins affected by the properties specified in this subnode.

Array item rules (items)

Exactly one of these rules must match (oneOf)

Rule 1

String pattern (pattern): "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-6])$"

Rule 2

Allowed values (enum): "sdc1_clk", "sdc1_cmd", "sdc1_data", "sdc2_clk", "sdc2_cmd", "sdc2_data"

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 36

function — not listed as required here

Specify the alternative function to be configured for the specified pins. Functions are only valid for gpio pins.

Allowed values (enum): "gpio", "cci_i2c0", "blsp_uim1", "blsp_uim2", "blsp_uim3", "blsp_uim5", "blsp_i2c1", "blsp_i2c2", "blsp_i2c3", "blsp_i2c4", "blsp_i2c5", "blsp_i2c6", "blsp_spi1", "blsp_spi2", "blsp_spi3", "blsp_spi5", "blsp_uart1", "blsp_uart2", "blsp_uart3", "blsp_uart4", "blsp_uart5", "cam_mclk0", "cam_mclk1", "gp0_clk", "gp1_clk", "sdc3", "wlan"

Required in this object (required): "pins"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pinctrl/qcom,tlmm-common.yaml#

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
msmgpio: pinctrl@fd510000 {
    compatible = "qcom,msm8226-pinctrl";
    reg = <0xfd510000 0x4000>;

    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&msmgpio 0 0 117>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;

    serial-state {
        pins = "gpio8", "gpio9";
        function = "blsp_uart3";
        drive-strength = <8>;
        bias-disable;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page