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