Qualcomm MSM8960 TLMM pin controller

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/qcom,msm8960-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 MSM8960 SoC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,msm8960-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): 76

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

Maximum number of items (maxItems): 152

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

Rule 2

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

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

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

false

Not allowed by this rule.

Reusable definitions ($defs) #

qcom-msm8960-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]|1[0-4][0-9]|15[0-1])$"

Rule 2

Allowed values (enum): "sdc1_clk", "sdc1_cmd", "sdc1_data", "sdc3_clk", "sdc3_cmd", "sdc3_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", "audio_pcm", "bt", "cam_mclk0", "cam_mclk1", "cam_mclk2", "codec_mic_i2s", "codec_spkr_i2s", "ext_gps", "fm", "gps_blanking", "gps_pps_in", "gps_pps_out", "gp_clk_0a", "gp_clk_0b", "gp_clk_1a", "gp_clk_1b", "gp_clk_2a", "gp_clk_2b", "gp_mn", "gp_pdm_0a", "gp_pdm_0b", "gp_pdm_1a", "gp_pdm_1b", "gp_pdm_2a", "gp_pdm_2b", "gsbi1", "gsbi1_spi_cs1_n", "gsbi1_spi_cs2a_n", "gsbi1_spi_cs2b_n", "gsbi1_spi_cs3_n", "gsbi2", "gsbi2_spi_cs1_n", "gsbi2_spi_cs2_n", "gsbi2_spi_cs3_n", "gsbi3", "gsbi4", "gsbi4_3d_cam_i2c_l", "gsbi4_3d_cam_i2c_r", "gsbi5", "gsbi5_3d_cam_i2c_l", "gsbi5_3d_cam_i2c_r", "gsbi6", "gsbi7", "gsbi8", "gsbi9", "gsbi10", "gsbi11", "gsbi11_spi_cs1a_n", "gsbi11_spi_cs1b_n", "gsbi11_spi_cs2a_n", "gsbi11_spi_cs2b_n", "gsbi11_spi_cs3_n", "gsbi12", "hdmi_cec", "hdmi_ddc_clock", "hdmi_ddc_data", "hdmi_hot_plug_detect", "hsic", "mdp_vsync", "mi2s", "mic_i2s", "pmb_clk", "pmb_ext_ctrl", "ps_hold", "rpm_wdog", "sdc2", "sdc4", "sdc5", "slimbus1", "slimbus2", "spkr_i2s", "ssbi1", "ssbi2", "ssbi_ext_gps", "ssbi_pmic2", "ssbi_qpa1", "ssbi_ts", "tsif1", "tsif2", "ts_eoc", "usb_fs1", "usb_fs1_oe", "usb_fs1_oe_n", "usb_fs2", "usb_fs2_oe", "usb_fs2_oe_n", "vfe_camif_timer1_a", "vfe_camif_timer1_b", "vfe_camif_timer2", "vfe_camif_timer3_a", "vfe_camif_timer3_b", "vfe_camif_timer4_a", "vfe_camif_timer4_b", "vfe_camif_timer4_c", "vfe_camif_timer5_a", "vfe_camif_timer5_b", "vfe_camif_timer6_a", "vfe_camif_timer6_b", "vfe_camif_timer6_c", "vfe_camif_timer7_a", "vfe_camif_timer7_b", "vfe_camif_timer7_c", "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>

tlmm: pinctrl@800000 {
    compatible = "qcom,msm8960-pinctrl";
    reg = <0x800000 0x4000>;
    #gpio-cells = <2>;
    gpio-controller;
    gpio-ranges = <&tlmm 0 0 152>;
    interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-controller;
    #interrupt-cells = <2>;

    spi1-default-state {
        mosi-pins {
            pins = "gpio6";
            function = "gsbi1";
            drive-strength = <12>;
            bias-disable;
        };

        miso-pins {
            pins = "gpio7";
            function = "gsbi1";
            drive-strength = <12>;
            bias-disable;
        };

        cs-pins {
            pins = "gpio8";
            function = "gpio";
            drive-strength = <12>;
            bias-disable;
            output-low;
        };

        clk-pins {
            pins = "gpio9";
            function = "gsbi1";
            drive-strength = <12>;
            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