1b17ff9d1SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2b17ff9d1SKrzysztof Kozlowski%YAML 1.2 3b17ff9d1SKrzysztof Kozlowski--- 4b17ff9d1SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,msm8916-pinctrl.yaml# 5b17ff9d1SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6b17ff9d1SKrzysztof Kozlowski 7b17ff9d1SKrzysztof Kozlowskititle: Qualcomm MSM8916 TLMM pin controller 8b17ff9d1SKrzysztof Kozlowski 9b17ff9d1SKrzysztof Kozlowskimaintainers: 10b17ff9d1SKrzysztof Kozlowski - Bjorn Andersson <andersson@kernel.org> 11b17ff9d1SKrzysztof Kozlowski - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 12b17ff9d1SKrzysztof Kozlowski 13b17ff9d1SKrzysztof Kozlowskidescription: 14b17ff9d1SKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm MSM8916 SoC. 15b17ff9d1SKrzysztof Kozlowski 16b17ff9d1SKrzysztof Kozlowskiproperties: 17b17ff9d1SKrzysztof Kozlowski compatible: 18b17ff9d1SKrzysztof Kozlowski const: qcom,msm8916-pinctrl 19b17ff9d1SKrzysztof Kozlowski 20b17ff9d1SKrzysztof Kozlowski reg: 21b17ff9d1SKrzysztof Kozlowski maxItems: 1 22b17ff9d1SKrzysztof Kozlowski 2312a18bb7SKrzysztof Kozlowski interrupts: 2412a18bb7SKrzysztof Kozlowski maxItems: 1 2512a18bb7SKrzysztof Kozlowski 26b17ff9d1SKrzysztof Kozlowski interrupt-controller: true 27b17ff9d1SKrzysztof Kozlowski "#interrupt-cells": true 28b17ff9d1SKrzysztof Kozlowski gpio-controller: true 29b17ff9d1SKrzysztof Kozlowski "#gpio-cells": true 30b17ff9d1SKrzysztof Kozlowski gpio-ranges: true 31b17ff9d1SKrzysztof Kozlowski wakeup-parent: true 32b17ff9d1SKrzysztof Kozlowski 33b17ff9d1SKrzysztof Kozlowski gpio-reserved-ranges: 34b17ff9d1SKrzysztof Kozlowski minItems: 1 35b17ff9d1SKrzysztof Kozlowski maxItems: 61 36b17ff9d1SKrzysztof Kozlowski 37b17ff9d1SKrzysztof Kozlowski gpio-line-names: 38b17ff9d1SKrzysztof Kozlowski maxItems: 122 39b17ff9d1SKrzysztof Kozlowski 40b17ff9d1SKrzysztof KozlowskipatternProperties: 41b17ff9d1SKrzysztof Kozlowski "-state$": 42b17ff9d1SKrzysztof Kozlowski oneOf: 43b17ff9d1SKrzysztof Kozlowski - $ref: "#/$defs/qcom-msm8916-tlmm-state" 44b17ff9d1SKrzysztof Kozlowski - patternProperties: 45b17ff9d1SKrzysztof Kozlowski "-pins$": 46b17ff9d1SKrzysztof Kozlowski $ref: "#/$defs/qcom-msm8916-tlmm-state" 47b17ff9d1SKrzysztof Kozlowski additionalProperties: false 48b17ff9d1SKrzysztof Kozlowski 49b17ff9d1SKrzysztof Kozlowski$defs: 50b17ff9d1SKrzysztof Kozlowski qcom-msm8916-tlmm-state: 51b17ff9d1SKrzysztof Kozlowski type: object 52b17ff9d1SKrzysztof Kozlowski description: 53b17ff9d1SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 54b17ff9d1SKrzysztof Kozlowski Client device subnodes use below standard properties. 55b17ff9d1SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 56*941f8b69SKrzysztof Kozlowski unevaluatedProperties: false 57b17ff9d1SKrzysztof Kozlowski 58b17ff9d1SKrzysztof Kozlowski properties: 59b17ff9d1SKrzysztof Kozlowski pins: 60b17ff9d1SKrzysztof Kozlowski description: 61b17ff9d1SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 62b17ff9d1SKrzysztof Kozlowski subnode. 63b17ff9d1SKrzysztof Kozlowski items: 64b17ff9d1SKrzysztof Kozlowski oneOf: 65b17ff9d1SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[01])$" 66b17ff9d1SKrzysztof Kozlowski - enum: [ qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, 67b17ff9d1SKrzysztof Kozlowski qdsd_data3, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, 68b17ff9d1SKrzysztof Kozlowski sdc2_cmd, sdc2_data ] 69b17ff9d1SKrzysztof Kozlowski minItems: 1 70b17ff9d1SKrzysztof Kozlowski maxItems: 36 71b17ff9d1SKrzysztof Kozlowski 72b17ff9d1SKrzysztof Kozlowski function: 73b17ff9d1SKrzysztof Kozlowski description: 74b17ff9d1SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 75b17ff9d1SKrzysztof Kozlowski pins. 76b17ff9d1SKrzysztof Kozlowski 77b17ff9d1SKrzysztof Kozlowski enum: [ gpio, adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, 78b17ff9d1SKrzysztof Kozlowski atest_char0, atest_char1, atest_char2, atest_char3, 79b17ff9d1SKrzysztof Kozlowski atest_combodac, atest_gpsadc0, atest_gpsadc1, atest_tsens, 80b17ff9d1SKrzysztof Kozlowski atest_wlan0, atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, 81b17ff9d1SKrzysztof Kozlowski blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5, 82b17ff9d1SKrzysztof Kozlowski blsp_i2c6, blsp_spi1, blsp_spi1_cs1, blsp_spi1_cs2, 83b17ff9d1SKrzysztof Kozlowski blsp_spi1_cs3, blsp_spi2, blsp_spi2_cs1, blsp_spi2_cs2, 84b17ff9d1SKrzysztof Kozlowski blsp_spi2_cs3, blsp_spi3, blsp_spi3_cs1, blsp_spi3_cs2, 85b17ff9d1SKrzysztof Kozlowski blsp_spi3_cs3, blsp_spi4, blsp_spi5, blsp_spi6, blsp_uart1, 86b17ff9d1SKrzysztof Kozlowski blsp_uart2, blsp_uim1, blsp_uim2, cam1_rst, cam1_standby, 87b17ff9d1SKrzysztof Kozlowski cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0, 88b17ff9d1SKrzysztof Kozlowski cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, 89b17ff9d1SKrzysztof Kozlowski display_5v, dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, 90b17ff9d1SKrzysztof Kozlowski euro_us, ext_lpass, flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, 91b17ff9d1SKrzysztof Kozlowski gcc_gp2_clk_a, gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, 92b17ff9d1SKrzysztof Kozlowski gsm0_tx0, gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, 93b17ff9d1SKrzysztof Kozlowski kpsns1, kpsns2, ldo_en, ldo_update, mag_int, mdp_vsync, 94b17ff9d1SKrzysztof Kozlowski modem_tsync, m_voc, nav_pps, nav_tsync, pa_indicator, pbs0, 95b17ff9d1SKrzysztof Kozlowski pbs1, pbs2, pri_mi2s, pri_mi2s_ws, prng_rosc, 96b17ff9d1SKrzysztof Kozlowski pwr_crypto_enabled_a, pwr_crypto_enabled_b, 97b17ff9d1SKrzysztof Kozlowski pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, 98b17ff9d1SKrzysztof Kozlowski pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, 99b17ff9d1SKrzysztof Kozlowski qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, 100b17ff9d1SKrzysztof Kozlowski qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, 101b17ff9d1SKrzysztof Kozlowski qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, 102b17ff9d1SKrzysztof Kozlowski qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, reset_n, 103b17ff9d1SKrzysztof Kozlowski sd_card, sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, 104b17ff9d1SKrzysztof Kozlowski uim1, uim2, uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, 105b17ff9d1SKrzysztof Kozlowski webcam1_rst ] 106b17ff9d1SKrzysztof Kozlowski 107b17ff9d1SKrzysztof Kozlowski required: 108b17ff9d1SKrzysztof Kozlowski - pins 109b17ff9d1SKrzysztof Kozlowski 110b17ff9d1SKrzysztof KozlowskiallOf: 111b17ff9d1SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 112b17ff9d1SKrzysztof Kozlowski 113b17ff9d1SKrzysztof Kozlowskirequired: 114b17ff9d1SKrzysztof Kozlowski - compatible 115b17ff9d1SKrzysztof Kozlowski - reg 116b17ff9d1SKrzysztof Kozlowski 117b17ff9d1SKrzysztof KozlowskiadditionalProperties: false 118b17ff9d1SKrzysztof Kozlowski 119b17ff9d1SKrzysztof Kozlowskiexamples: 120b17ff9d1SKrzysztof Kozlowski - | 121b17ff9d1SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 122b17ff9d1SKrzysztof Kozlowski 123b17ff9d1SKrzysztof Kozlowski msmgpio: pinctrl@1000000 { 124b17ff9d1SKrzysztof Kozlowski compatible = "qcom,msm8916-pinctrl"; 125b17ff9d1SKrzysztof Kozlowski reg = <0x01000000 0x300000>; 126b17ff9d1SKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 127b17ff9d1SKrzysztof Kozlowski gpio-controller; 128b17ff9d1SKrzysztof Kozlowski gpio-ranges = <&msmgpio 0 0 122>; 129b17ff9d1SKrzysztof Kozlowski #gpio-cells = <2>; 130b17ff9d1SKrzysztof Kozlowski interrupt-controller; 131b17ff9d1SKrzysztof Kozlowski #interrupt-cells = <2>; 132b17ff9d1SKrzysztof Kozlowski 133b17ff9d1SKrzysztof Kozlowski blsp1-uart2-sleep-state { 134b17ff9d1SKrzysztof Kozlowski pins = "gpio4", "gpio5"; 135b17ff9d1SKrzysztof Kozlowski function = "gpio"; 136b17ff9d1SKrzysztof Kozlowski 137b17ff9d1SKrzysztof Kozlowski drive-strength = <2>; 138b17ff9d1SKrzysztof Kozlowski bias-pull-down; 139b17ff9d1SKrzysztof Kozlowski }; 140b17ff9d1SKrzysztof Kozlowski 141b17ff9d1SKrzysztof Kozlowski spi1-default-state { 142b17ff9d1SKrzysztof Kozlowski spi-pins { 143b17ff9d1SKrzysztof Kozlowski pins = "gpio0", "gpio1", "gpio3"; 144b17ff9d1SKrzysztof Kozlowski function = "blsp_spi1"; 145b17ff9d1SKrzysztof Kozlowski 146b17ff9d1SKrzysztof Kozlowski drive-strength = <12>; 147b17ff9d1SKrzysztof Kozlowski bias-disable; 148b17ff9d1SKrzysztof Kozlowski }; 149b17ff9d1SKrzysztof Kozlowski 150b17ff9d1SKrzysztof Kozlowski cs-pins { 151b17ff9d1SKrzysztof Kozlowski pins = "gpio2"; 152b17ff9d1SKrzysztof Kozlowski function = "gpio"; 153b17ff9d1SKrzysztof Kozlowski 154b17ff9d1SKrzysztof Kozlowski drive-strength = <16>; 155b17ff9d1SKrzysztof Kozlowski bias-disable; 156b17ff9d1SKrzysztof Kozlowski output-high; 157b17ff9d1SKrzysztof Kozlowski }; 158b17ff9d1SKrzysztof Kozlowski }; 159b17ff9d1SKrzysztof Kozlowski }; 160