1*93341a82SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*93341a82SKrzysztof Kozlowski%YAML 1.2 3*93341a82SKrzysztof Kozlowski--- 4*93341a82SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,msm8996-pinctrl.yaml# 5*93341a82SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6*93341a82SKrzysztof Kozlowski 7*93341a82SKrzysztof Kozlowskititle: Qualcomm MSM8996 TLMM pin controller 8*93341a82SKrzysztof Kozlowski 9*93341a82SKrzysztof Kozlowskimaintainers: 10*93341a82SKrzysztof Kozlowski - Bjorn Andersson <andersson@kernel.org> 11*93341a82SKrzysztof Kozlowski - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 12*93341a82SKrzysztof Kozlowski 13*93341a82SKrzysztof Kozlowskidescription: 14*93341a82SKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm MSM8996 SoC. 15*93341a82SKrzysztof Kozlowski 16*93341a82SKrzysztof Kozlowskiproperties: 17*93341a82SKrzysztof Kozlowski compatible: 18*93341a82SKrzysztof Kozlowski const: qcom,msm8996-pinctrl 19*93341a82SKrzysztof Kozlowski 20*93341a82SKrzysztof Kozlowski reg: 21*93341a82SKrzysztof Kozlowski maxItems: 1 22*93341a82SKrzysztof Kozlowski 23*93341a82SKrzysztof Kozlowski interrupts: true 24*93341a82SKrzysztof Kozlowski interrupt-controller: true 25*93341a82SKrzysztof Kozlowski "#interrupt-cells": true 26*93341a82SKrzysztof Kozlowski gpio-controller: true 27*93341a82SKrzysztof Kozlowski "#gpio-cells": true 28*93341a82SKrzysztof Kozlowski gpio-ranges: true 29*93341a82SKrzysztof Kozlowski wakeup-parent: true 30*93341a82SKrzysztof Kozlowski 31*93341a82SKrzysztof Kozlowski gpio-reserved-ranges: 32*93341a82SKrzysztof Kozlowski minItems: 1 33*93341a82SKrzysztof Kozlowski maxItems: 75 34*93341a82SKrzysztof Kozlowski 35*93341a82SKrzysztof Kozlowski gpio-line-names: 36*93341a82SKrzysztof Kozlowski maxItems: 150 37*93341a82SKrzysztof Kozlowski 38*93341a82SKrzysztof KozlowskipatternProperties: 39*93341a82SKrzysztof Kozlowski "-state$": 40*93341a82SKrzysztof Kozlowski oneOf: 41*93341a82SKrzysztof Kozlowski - $ref: "#/$defs/qcom-msm8996-tlmm-state" 42*93341a82SKrzysztof Kozlowski - patternProperties: 43*93341a82SKrzysztof Kozlowski "-pins$": 44*93341a82SKrzysztof Kozlowski $ref: "#/$defs/qcom-msm8996-tlmm-state" 45*93341a82SKrzysztof Kozlowski additionalProperties: false 46*93341a82SKrzysztof Kozlowski 47*93341a82SKrzysztof Kozlowski$defs: 48*93341a82SKrzysztof Kozlowski qcom-msm8996-tlmm-state: 49*93341a82SKrzysztof Kozlowski type: object 50*93341a82SKrzysztof Kozlowski description: 51*93341a82SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 52*93341a82SKrzysztof Kozlowski Client device subnodes use below standard properties. 53*93341a82SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 54*93341a82SKrzysztof Kozlowski 55*93341a82SKrzysztof Kozlowski properties: 56*93341a82SKrzysztof Kozlowski pins: 57*93341a82SKrzysztof Kozlowski description: 58*93341a82SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 59*93341a82SKrzysztof Kozlowski subnode. 60*93341a82SKrzysztof Kozlowski items: 61*93341a82SKrzysztof Kozlowski oneOf: 62*93341a82SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" 63*93341a82SKrzysztof Kozlowski - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, 64*93341a82SKrzysztof Kozlowski sdc2_cmd, sdc2_data ] 65*93341a82SKrzysztof Kozlowski minItems: 1 66*93341a82SKrzysztof Kozlowski maxItems: 36 67*93341a82SKrzysztof Kozlowski 68*93341a82SKrzysztof Kozlowski function: 69*93341a82SKrzysztof Kozlowski description: 70*93341a82SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 71*93341a82SKrzysztof Kozlowski pins. 72*93341a82SKrzysztof Kozlowski 73*93341a82SKrzysztof Kozlowski enum: [ gpio, blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens, 74*93341a82SKrzysztof Kozlowski bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8, 75*93341a82SKrzysztof Kozlowski qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b, 76*93341a82SKrzysztof Kozlowski dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10, 77*93341a82SKrzysztof Kozlowski blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12, 78*93341a82SKrzysztof Kozlowski mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11, 79*93341a82SKrzysztof Kozlowski atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, 80*93341a82SKrzysztof Kozlowski atest_char, cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, 81*93341a82SKrzysztof Kozlowski qdss_tracedata_b, pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, 82*93341a82SKrzysztof Kozlowski atest_usb2, cci_i2c, qdss_stm3, dac_calib3, atest_usb23, 83*93341a82SKrzysztof Kozlowski atest_char3, dac_calib4, qdss_stm2, atest_usb22, atest_char2, 84*93341a82SKrzysztof Kozlowski qdss_stm1, dac_calib5, atest_usb21, atest_char1, dbg_out, 85*93341a82SKrzysztof Kozlowski qdss_stm0, dac_calib6, atest_usb20, atest_char0, dac_calib10, 86*93341a82SKrzysztof Kozlowski qdss_stm10, qdss_cti_trig_in_a, cci_timer4, blsp_spi6, 87*93341a82SKrzysztof Kozlowski blsp_uart6, blsp_uim6, blsp2_spi, qdss_stm9, 88*93341a82SKrzysztof Kozlowski qdss_cti_trig_out_a, dac_calib11, qdss_stm8, cci_timer0, 89*93341a82SKrzysztof Kozlowski qdss_stm13, dac_calib7, cci_timer1, qdss_stm12, dac_calib8, 90*93341a82SKrzysztof Kozlowski cci_timer2, blsp1_spi, qdss_stm11, dac_calib9, cci_timer3, 91*93341a82SKrzysztof Kozlowski cci_async, dac_calib12, blsp_i2c6, qdss_tracectl_a, 92*93341a82SKrzysztof Kozlowski dac_calib13, qdss_traceclk_a, dac_calib14, dac_calib15, 93*93341a82SKrzysztof Kozlowski hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem, dac_calib17, 94*93341a82SKrzysztof Kozlowski hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto, dac_calib19, 95*93341a82SKrzysztof Kozlowski hdmi_hot, dac_calib20, dac_calib21, pci_e0, dac_calib22, 96*93341a82SKrzysztof Kozlowski dac_calib23, dac_calib24, tsif1_sync, dac_calib25, sd_write, 97*93341a82SKrzysztof Kozlowski tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2, qdss_cti, 98*93341a82SKrzysztof Kozlowski blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3, uim3, 99*93341a82SKrzysztof Kozlowski blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9, 100*93341a82SKrzysztof Kozlowski blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7, 101*93341a82SKrzysztof Kozlowski qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, 102*93341a82SKrzysztof Kozlowski blsp_uart11, blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, 103*93341a82SKrzysztof Kozlowski blsp_i2c11, cri_trng0, cri_trng1, cri_trng, qdss_stm18, 104*93341a82SKrzysztof Kozlowski pri_mi2s, qdss_stm17, blsp_spi4, blsp_uart4, blsp_uim4, 105*93341a82SKrzysztof Kozlowski qdss_stm16, qdss_stm15, blsp_i2c4, qdss_stm14, dac_calib26, 106*93341a82SKrzysztof Kozlowski spkr_i2s, audio_ref, lpass_slimbus, isense_dbg, tsense_pwm1, 107*93341a82SKrzysztof Kozlowski tsense_pwm2, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_stm21, 108*93341a82SKrzysztof Kozlowski qdss_stm20, qdss_stm19, gcc_gp1_clk_b, sec_mi2s, blsp_spi5, 109*93341a82SKrzysztof Kozlowski blsp_uart5, blsp_uim5, gcc_gp2_clk_b, gcc_gp3_clk_b, blsp_i2c5, 110*93341a82SKrzysztof Kozlowski blsp_spi12, blsp_uart12, blsp_uim12, qdss_stm25, qdss_stm31, 111*93341a82SKrzysztof Kozlowski blsp_i2c12, qdss_stm30, qdss_stm29, tsif1_clk, qdss_stm28, 112*93341a82SKrzysztof Kozlowski tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, 113*93341a82SKrzysztof Kozlowski tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk, sdc4_clk, 114*93341a82SKrzysztof Kozlowski qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b, 115*93341a82SKrzysztof Kozlowski sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b, 116*93341a82SKrzysztof Kozlowski ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, 117*93341a82SKrzysztof Kozlowski blsp11_uart_rx_b, blsp11_i2c_sda_b, prng_rosc, 118*93341a82SKrzysztof Kozlowski blsp11_i2c_scl_b, uim2, uim1, uim_batt, pci_e2, pa_indicator, 119*93341a82SKrzysztof Kozlowski adsp_ext, ddr_bist, qdss_tracedata_11, qdss_tracedata_12, 120*93341a82SKrzysztof Kozlowski modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx, qspi_cs, ssbi2, 121*93341a82SKrzysztof Kozlowski ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3 ] 122*93341a82SKrzysztof Kozlowski 123*93341a82SKrzysztof Kozlowski bias-pull-down: true 124*93341a82SKrzysztof Kozlowski bias-pull-up: true 125*93341a82SKrzysztof Kozlowski bias-disable: true 126*93341a82SKrzysztof Kozlowski drive-strength: true 127*93341a82SKrzysztof Kozlowski input-enable: true 128*93341a82SKrzysztof Kozlowski output-high: true 129*93341a82SKrzysztof Kozlowski output-low: true 130*93341a82SKrzysztof Kozlowski 131*93341a82SKrzysztof Kozlowski required: 132*93341a82SKrzysztof Kozlowski - pins 133*93341a82SKrzysztof Kozlowski 134*93341a82SKrzysztof Kozlowski additionalProperties: false 135*93341a82SKrzysztof Kozlowski 136*93341a82SKrzysztof KozlowskiallOf: 137*93341a82SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 138*93341a82SKrzysztof Kozlowski 139*93341a82SKrzysztof Kozlowskirequired: 140*93341a82SKrzysztof Kozlowski - compatible 141*93341a82SKrzysztof Kozlowski - reg 142*93341a82SKrzysztof Kozlowski 143*93341a82SKrzysztof KozlowskiadditionalProperties: false 144*93341a82SKrzysztof Kozlowski 145*93341a82SKrzysztof Kozlowskiexamples: 146*93341a82SKrzysztof Kozlowski - | 147*93341a82SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 148*93341a82SKrzysztof Kozlowski 149*93341a82SKrzysztof Kozlowski tlmm: pinctrl@1010000 { 150*93341a82SKrzysztof Kozlowski compatible = "qcom,msm8996-pinctrl"; 151*93341a82SKrzysztof Kozlowski reg = <0x01010000 0x300000>; 152*93341a82SKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 153*93341a82SKrzysztof Kozlowski gpio-controller; 154*93341a82SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 150>; 155*93341a82SKrzysztof Kozlowski #gpio-cells = <2>; 156*93341a82SKrzysztof Kozlowski interrupt-controller; 157*93341a82SKrzysztof Kozlowski #interrupt-cells = <2>; 158*93341a82SKrzysztof Kozlowski 159*93341a82SKrzysztof Kozlowski blsp1-spi1-default-state { 160*93341a82SKrzysztof Kozlowski spi-pins { 161*93341a82SKrzysztof Kozlowski pins = "gpio0", "gpio1", "gpio3"; 162*93341a82SKrzysztof Kozlowski function = "blsp_spi1"; 163*93341a82SKrzysztof Kozlowski drive-strength = <12>; 164*93341a82SKrzysztof Kozlowski bias-disable; 165*93341a82SKrzysztof Kozlowski }; 166*93341a82SKrzysztof Kozlowski 167*93341a82SKrzysztof Kozlowski cs-pins { 168*93341a82SKrzysztof Kozlowski pins = "gpio2"; 169*93341a82SKrzysztof Kozlowski function = "gpio"; 170*93341a82SKrzysztof Kozlowski drive-strength = <16>; 171*93341a82SKrzysztof Kozlowski bias-disable; 172*93341a82SKrzysztof Kozlowski output-high; 173*93341a82SKrzysztof Kozlowski }; 174*93341a82SKrzysztof Kozlowski }; 175*93341a82SKrzysztof Kozlowski 176*93341a82SKrzysztof Kozlowski blsp1-spi1-sleep-state { 177*93341a82SKrzysztof Kozlowski pins = "gpio0", "gpio1", "gpio2", "gpio3"; 178*93341a82SKrzysztof Kozlowski function = "gpio"; 179*93341a82SKrzysztof Kozlowski drive-strength = <2>; 180*93341a82SKrzysztof Kozlowski bias-pull-down; 181*93341a82SKrzysztof Kozlowski }; 182*93341a82SKrzysztof Kozlowski }; 183