Qualcomm SDM630 and SDM660 TLMM pin controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/qcom,sdm630-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 SDM630 and SDM660 SoC.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pinctrl/qcom,tlmm-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,sdm630-pinctrl", "qcom,sdm660-pinctrl"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"south"
Item 2
Exact value (
const):"center"
Item 3
Exact value (
const):"north"
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): 57
gpio-line-names — not listed as required here #
Maximum number of items (maxItems): 114
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-sdm630-tlmm-state
Rule 2
Properties matching a name pattern (
patternProperties)
-pins$— name matches this regular expressionShared schema rule (
$ref):#/$defs/qcom-sdm630-tlmm-stateProperties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Reusable definitions ($defs) #
qcom-sdm630-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-3])$"Rule 2
Allowed values (
enum):"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): "adsp_ext", "agera_pll", "atest_char", "atest_char0", "atest_char1", "atest_char2", "atest_char3", "atest_gpsadc0", "atest_gpsadc1", "atest_tsens", "atest_tsens2", "atest_usb1", "atest_usb10", "atest_usb11", "atest_usb12", "atest_usb13", "atest_usb2", "atest_usb20", "atest_usb21", "atest_usb22", "atest_usb23", "audio_ref", "bimc_dte0", "bimc_dte1", "blsp_i2c1", "blsp_i2c2", "blsp_i2c3", "blsp_i2c4", "blsp_i2c5", "blsp_i2c6", "blsp_i2c7", "blsp_i2c8_a", "blsp_i2c8_b", "blsp_spi1", "blsp_spi2", "blsp_spi3", "blsp_spi3_cs1", "blsp_spi3_cs2", "blsp_spi4", "blsp_spi5", "blsp_spi6", "blsp_spi7", "blsp_spi8_a", "blsp_spi8_b", "blsp_spi8_cs1", "blsp_spi8_cs2", "blsp_uart1", "blsp_uart2", "blsp_uart5", "blsp_uart6_a", "blsp_uart6_b", "blsp_uim1", "blsp_uim2", "blsp_uim5", "blsp_uim6", "cam_mclk", "cci_async", "cci_i2c", "cri_trng", "cri_trng0", "cri_trng1", "dbg_out", "ddr_bist", "gcc_gp1", "gcc_gp2", "gcc_gp3", "gpio", "gps_tx_a", "gps_tx_b", "gps_tx_c", "isense_dbg", "jitter_bist", "ldo_en", "ldo_update", "m_voc", "mdp_vsync", "mdss_vsync0", "mdss_vsync1", "mdss_vsync2", "mdss_vsync3", "mss_lte", "nav_pps_a", "nav_pps_b", "nav_pps_c", "pa_indicator", "phase_flag0", "phase_flag1", "phase_flag10", "phase_flag11", "phase_flag12", "phase_flag13", "phase_flag14", "phase_flag15", "phase_flag16", "phase_flag17", "phase_flag18", "phase_flag19", "phase_flag2", "phase_flag20", "phase_flag21", "phase_flag22", "phase_flag23", "phase_flag24", "phase_flag25", "phase_flag26", "phase_flag27", "phase_flag28", "phase_flag29", "phase_flag3", "phase_flag30", "phase_flag31", "phase_flag4", "phase_flag5", "phase_flag6", "phase_flag7", "phase_flag8", "phase_flag9", "pll_bypassnl", "pll_reset", "pri_mi2s", "pri_mi2s_ws", "prng_rosc", "pwr_crypto", "pwr_modem", "pwr_nav", "qdss_cti0_a", "qdss_cti0_b", "qdss_cti1_a", "qdss_cti1_b", "qdss_gpio", "qdss_gpio0", "qdss_gpio1", "qdss_gpio10", "qdss_gpio11", "qdss_gpio12", "qdss_gpio13", "qdss_gpio14", "qdss_gpio15", "qdss_gpio2", "qdss_gpio3", "qdss_gpio4", "qdss_gpio5", "qdss_gpio6", "qdss_gpio7", "qdss_gpio8", "qdss_gpio9", "qlink_enable", "qlink_request", "qspi_clk", "qspi_cs", "qspi_data0", "qspi_data1", "qspi_data2", "qspi_data3", "qspi_resetn", "sec_mi2s", "sndwire_clk", "sndwire_data", "sp_cmu", "ssc_irq", "tgu_ch0", "tgu_ch1", "tsense_pwm1", "tsense_pwm2", "uim1_clk", "uim1_data", "uim1_present", "uim1_reset", "uim2_clk", "uim2_data", "uim2_present", "uim2_reset", "uim_batt", "vfr_1", "vsense_clkout", "vsense_data0", "vsense_data1", "vsense_mode", "wlan1_adc0", "wlan1_adc1", "wlan2_adc0", "wlan2_adc1"
Required in this object (required): "pins"
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@3100000 {
compatible = "qcom,sdm630-pinctrl";
reg = <0x03100000 0x400000>,
<0x03500000 0x400000>,
<0x03900000 0x400000>;
reg-names = "south", "center", "north";
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
gpio-ranges = <&tlmm 0 0 114>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
blsp1-uart1-default-state {
pins = "gpio0", "gpio1", "gpio2", "gpio3";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
blsp2_uart1_default: blsp2-uart1-active-state {
tx-rts-pins {
pins = "gpio16", "gpio19";
function = "blsp_uart5";
drive-strength = <2>;
bias-disable;
};
rx-pins {
pins = "gpio17";
function = "blsp_uart5";
drive-strength = <2>;
bias-pull-up;
};
cts-pins {
pins = "gpio18";
function = "blsp_uart5";
drive-strength = <2>;
bias-pull-down;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)