1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/pinctrl/qcom,msm8909-tlmm.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm Technologies, Inc. MSM8909 TLMM block 8 9maintainers: 10 - Stephan Gerhold <stephan@gerhold.net> 11 12description: | 13 Top Level Mode Multiplexer pin controller in Qualcomm MSM8909 SoC. 14 15allOf: 16 - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17 18properties: 19 compatible: 20 const: qcom,msm8909-tlmm 21 22 reg: 23 maxItems: 1 24 25 interrupts: 26 maxItems: 1 27 28 interrupt-controller: true 29 "#interrupt-cells": true 30 gpio-controller: true 31 gpio-reserved-ranges: true 32 "#gpio-cells": true 33 gpio-ranges: true 34 wakeup-parent: true 35 36required: 37 - compatible 38 - reg 39 40additionalProperties: false 41 42patternProperties: 43 "-state$": 44 oneOf: 45 - $ref: "#/$defs/qcom-msm8909-tlmm-state" 46 - patternProperties: 47 "-pins$": 48 $ref: "#/$defs/qcom-msm8909-tlmm-state" 49 additionalProperties: false 50 51$defs: 52 qcom-msm8909-tlmm-state: 53 type: object 54 description: 55 Pinctrl node's client devices use subnodes for desired pin configuration. 56 Client device subnodes use below standard properties. 57 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 58 59 properties: 60 pins: 61 description: 62 List of gpio pins affected by the properties specified in this 63 subnode. 64 items: 65 oneOf: 66 - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" 67 - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, 68 sdc2_data, qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, 69 qdsd_data2, qdsd_data3 ] 70 minItems: 1 71 maxItems: 16 72 73 function: 74 description: 75 Specify the alternative function to be configured for the specified 76 pins. 77 enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0, 78 atest_char1, atest_char2, atest_char3, atest_combodac, 79 atest_gpsadc0, atest_gpsadc1, atest_wlan0, atest_wlan1, 80 bimc_dte0, bimc_dte1, blsp_i2c1, blsp_i2c2, blsp_i2c3, 81 blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_spi1, blsp_spi1_cs1, 82 blsp_spi1_cs2, blsp_spi1_cs3, blsp_spi2, blsp_spi2_cs1, 83 blsp_spi2_cs2, blsp_spi2_cs3, blsp_spi3, blsp_spi3_cs1, 84 blsp_spi3_cs2, blsp_spi3_cs3, blsp_spi4, blsp_spi5, blsp_spi6, 85 blsp_uart1, blsp_uart2, blsp_uim1, blsp_uim2, cam_mclk, 86 cci_async, cci_timer0, cci_timer1, cci_timer2, cdc_pdm0, 87 dbg_out, dmic0_clk, dmic0_data, ebi0_wrcdc, ebi2_a, ebi2_lcd, 88 ext_lpass, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, 89 gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gpio, 90 gsm0_tx, ldo_en, ldo_update, m_voc, mdp_vsync, modem_tsync, 91 nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, 92 pri_mi2s_data0_a, pri_mi2s_data0_b, pri_mi2s_data1_a, 93 pri_mi2s_data1_b, pri_mi2s_mclk_a, pri_mi2s_mclk_b, 94 pri_mi2s_sck_a, pri_mi2s_sck_b, pri_mi2s_ws_a, pri_mi2s_ws_b, 95 prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b, 96 pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, 97 pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, 98 qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, 99 qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, 100 qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_tracectl_a, 101 qdss_tracedata_a, qdss_tracedata_b, sd_write, sec_mi2s, 102 smb_int, ssbi0, ssbi1, uim1_clk, uim1_data, uim1_present, 103 uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, 104 uim3_clk, uim3_data, uim3_present, uim3_reset, uim_batt, 105 wcss_bt, wcss_fm, wcss_wlan ] 106 107 bias-disable: true 108 bias-pull-down: true 109 bias-pull-up: true 110 drive-strength: true 111 input-enable: true 112 output-high: true 113 output-low: true 114 115 required: 116 - pins 117 118 additionalProperties: false 119 120examples: 121 - | 122 #include <dt-bindings/interrupt-controller/arm-gic.h> 123 124 pinctrl@1000000 { 125 compatible = "qcom,msm8909-tlmm"; 126 reg = <0x1000000 0x300000>; 127 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 128 gpio-controller; 129 #gpio-cells = <2>; 130 gpio-ranges = <&tlmm 0 0 113>; 131 interrupt-controller; 132 #interrupt-cells = <2>; 133 134 gpio-wo-subnode-state { 135 pins = "gpio1"; 136 function = "gpio"; 137 }; 138 139 uart-w-subnodes-state { 140 rx-pins { 141 pins = "gpio4"; 142 function = "blsp_uart1"; 143 bias-pull-up; 144 }; 145 146 tx-pins { 147 pins = "gpio5"; 148 function = "blsp_uart1"; 149 bias-disable; 150 }; 151 }; 152 }; 153... 154