Qualcomm MSM8976 TLMM pin controller

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

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Krzysztof Kozlowski <krzk@kernel.org>"

Top Level Mode Multiplexer pin controller in Qualcomm MSM8976 SoC.

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

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 #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 73

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

Maximum number of items (maxItems): 145

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

Rule 2

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

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

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

false

Not allowed by this rule.

Reusable definitions ($defs) #

qcom-msm8976-tlmm-state #

Value type (type): "object"

Desired pin configuration for a device or its specific state (like sleep or active).

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 state.

Array item rules (items)

Exactly one of these rules must match (oneOf)

Rule 1

String pattern (pattern): "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-4])$"

Rule 2

Allowed values (enum): "qdsd_clk", "qdsd_cmd", "qdsd_data0", "qdsd_data1", "qdsd_data2", "qdsd_data3", "sdc1_clk", "sdc1_cmd", "sdc1_data", "sdc1_rclk", "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.

Allowed values (enum): "gpio", "blsp_uart1", "blsp_spi1", "smb_int", "blsp_i2c1", "blsp_spi2", "blsp_uart2", "blsp_i2c2", "gcc_gp1_clk_b", "blsp_spi3", "qdss_tracedata_b", "blsp_i2c3", "gcc_gp2_clk_b", "gcc_gp3_clk_b", "blsp_spi4", "cap_int", "blsp_i2c4", "blsp_spi5", "blsp_uart5", "qdss_traceclk_a", "m_voc", "blsp_i2c5", "qdss_tracectl_a", "qdss_tracedata_a", "blsp_spi6", "blsp_uart6", "qdss_tracectl_b", "blsp_i2c6", "qdss_traceclk_b", "mdp_vsync", "pri_mi2s_mclk_a", "sec_mi2s_mclk_a", "cam_mclk", "cci0_i2c", "cci1_i2c", "blsp1_spi", "blsp3_spi", "gcc_gp1_clk_a", "gcc_gp2_clk_a", "gcc_gp3_clk_a", "uim_batt", "sd_write", "uim1_data", "uim1_clk", "uim1_reset", "uim1_present", "uim2_data", "uim2_clk", "uim2_reset", "uim2_present", "ts_xvdd", "mipi_dsi0", "us_euro", "ts_resout", "ts_sample", "sec_mi2s_mclk_b", "pri_mi2s", "codec_reset", "cdc_pdm0", "us_emitter", "pri_mi2s_mclk_b", "pri_mi2s_mclk_c", "lpass_slimbus", "lpass_slimbus0", "lpass_slimbus1", "codec_int1", "codec_int2", "wcss_bt", "sdc3", "wcss_wlan2", "wcss_wlan1", "wcss_wlan0", "wcss_wlan", "wcss_fm", "key_volp", "key_snapshot", "key_focus", "key_home", "pwr_down", "dmic0_clk", "hdmi_int", "dmic0_data", "wsa_vi", "wsa_en", "blsp_spi8", "wsa_irq", "blsp_i2c8", "pa_indicator", "modem_tsync", "ssbi_wtr1", "gsm1_tx", "gsm0_tx", "sdcard_det", "sec_mi2s", "ss_switch"

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>

tlmm: pinctrl@1000000 {
    compatible = "qcom,msm8976-pinctrl";
    reg = <0x1000000 0x300000>;
    #gpio-cells = <2>;
    gpio-controller;
    gpio-ranges = <&tlmm 0 0 145>;
    interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-controller;
    #interrupt-cells = <2>;

    blsp1-uart2-active-state {
        pins = "gpio4", "gpio5", "gpio6", "gpio7";
        function = "blsp_uart2";
        drive-strength = <2>;
        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