193341a82SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 293341a82SKrzysztof Kozlowski%YAML 1.2 393341a82SKrzysztof Kozlowski--- 493341a82SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,msm8996-pinctrl.yaml# 593341a82SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 693341a82SKrzysztof Kozlowski 793341a82SKrzysztof Kozlowskititle: Qualcomm MSM8996 TLMM pin controller 893341a82SKrzysztof Kozlowski 993341a82SKrzysztof Kozlowskimaintainers: 1093341a82SKrzysztof Kozlowski - Bjorn Andersson <andersson@kernel.org> 1193341a82SKrzysztof Kozlowski - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 1293341a82SKrzysztof Kozlowski 1393341a82SKrzysztof Kozlowskidescription: 1493341a82SKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm MSM8996 SoC. 1593341a82SKrzysztof Kozlowski 1693341a82SKrzysztof Kozlowskiproperties: 1793341a82SKrzysztof Kozlowski compatible: 1893341a82SKrzysztof Kozlowski const: qcom,msm8996-pinctrl 1993341a82SKrzysztof Kozlowski 2093341a82SKrzysztof Kozlowski reg: 2193341a82SKrzysztof Kozlowski maxItems: 1 2293341a82SKrzysztof Kozlowski 2312a18bb7SKrzysztof Kozlowski interrupts: 2412a18bb7SKrzysztof Kozlowski maxItems: 1 2512a18bb7SKrzysztof Kozlowski 2693341a82SKrzysztof Kozlowski gpio-reserved-ranges: 2793341a82SKrzysztof Kozlowski minItems: 1 2893341a82SKrzysztof Kozlowski maxItems: 75 2993341a82SKrzysztof Kozlowski 3093341a82SKrzysztof Kozlowski gpio-line-names: 3193341a82SKrzysztof Kozlowski maxItems: 150 3293341a82SKrzysztof Kozlowski 3393341a82SKrzysztof KozlowskipatternProperties: 3493341a82SKrzysztof Kozlowski "-state$": 3593341a82SKrzysztof Kozlowski oneOf: 3693341a82SKrzysztof Kozlowski - $ref: "#/$defs/qcom-msm8996-tlmm-state" 3793341a82SKrzysztof Kozlowski - patternProperties: 3893341a82SKrzysztof Kozlowski "-pins$": 3993341a82SKrzysztof Kozlowski $ref: "#/$defs/qcom-msm8996-tlmm-state" 4093341a82SKrzysztof Kozlowski additionalProperties: false 4193341a82SKrzysztof Kozlowski 4293341a82SKrzysztof Kozlowski$defs: 4393341a82SKrzysztof Kozlowski qcom-msm8996-tlmm-state: 4493341a82SKrzysztof Kozlowski type: object 4593341a82SKrzysztof Kozlowski description: 4693341a82SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 4793341a82SKrzysztof Kozlowski Client device subnodes use below standard properties. 4893341a82SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 499de7c172SKrzysztof Kozlowski unevaluatedProperties: false 5093341a82SKrzysztof Kozlowski 5193341a82SKrzysztof Kozlowski properties: 5293341a82SKrzysztof Kozlowski pins: 5393341a82SKrzysztof Kozlowski description: 5493341a82SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 5593341a82SKrzysztof Kozlowski subnode. 5693341a82SKrzysztof Kozlowski items: 5793341a82SKrzysztof Kozlowski oneOf: 5893341a82SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" 5993341a82SKrzysztof Kozlowski - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, 6093341a82SKrzysztof Kozlowski sdc2_cmd, sdc2_data ] 6193341a82SKrzysztof Kozlowski minItems: 1 6293341a82SKrzysztof Kozlowski maxItems: 36 6393341a82SKrzysztof Kozlowski 6493341a82SKrzysztof Kozlowski function: 6593341a82SKrzysztof Kozlowski description: 6693341a82SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 6793341a82SKrzysztof Kozlowski pins. 6893341a82SKrzysztof Kozlowski 6993341a82SKrzysztof Kozlowski enum: [ gpio, blsp_uart1, blsp_spi1, blsp_i2c1, blsp_uim1, atest_tsens, 7093341a82SKrzysztof Kozlowski bimc_dte1, dac_calib0, blsp_spi8, blsp_uart8, blsp_uim8, 7193341a82SKrzysztof Kozlowski qdss_cti_trig_out_b, bimc_dte0, dac_calib1, qdss_cti_trig_in_b, 7293341a82SKrzysztof Kozlowski dac_calib2, atest_tsens2, atest_usb1, blsp_spi10, blsp_uart10, 7393341a82SKrzysztof Kozlowski blsp_uim10, atest_bbrx1, atest_usb13, atest_bbrx0, atest_usb12, 7493341a82SKrzysztof Kozlowski mdp_vsync, edp_lcd, blsp_i2c10, atest_gpsadc1, atest_usb11, 7593341a82SKrzysztof Kozlowski atest_gpsadc0, edp_hot, atest_usb10, m_voc, dac_gpio, 7693341a82SKrzysztof Kozlowski atest_char, cam_mclk, pll_bypassnl, qdss_stm7, blsp_i2c8, 7793341a82SKrzysztof Kozlowski qdss_tracedata_b, pll_reset, qdss_stm6, qdss_stm5, qdss_stm4, 7893341a82SKrzysztof Kozlowski atest_usb2, cci_i2c, qdss_stm3, dac_calib3, atest_usb23, 7993341a82SKrzysztof Kozlowski atest_char3, dac_calib4, qdss_stm2, atest_usb22, atest_char2, 8093341a82SKrzysztof Kozlowski qdss_stm1, dac_calib5, atest_usb21, atest_char1, dbg_out, 8193341a82SKrzysztof Kozlowski qdss_stm0, dac_calib6, atest_usb20, atest_char0, dac_calib10, 8293341a82SKrzysztof Kozlowski qdss_stm10, qdss_cti_trig_in_a, cci_timer4, blsp_spi6, 8393341a82SKrzysztof Kozlowski blsp_uart6, blsp_uim6, blsp2_spi, qdss_stm9, 8493341a82SKrzysztof Kozlowski qdss_cti_trig_out_a, dac_calib11, qdss_stm8, cci_timer0, 8593341a82SKrzysztof Kozlowski qdss_stm13, dac_calib7, cci_timer1, qdss_stm12, dac_calib8, 8693341a82SKrzysztof Kozlowski cci_timer2, blsp1_spi, qdss_stm11, dac_calib9, cci_timer3, 8793341a82SKrzysztof Kozlowski cci_async, dac_calib12, blsp_i2c6, qdss_tracectl_a, 8893341a82SKrzysztof Kozlowski dac_calib13, qdss_traceclk_a, dac_calib14, dac_calib15, 8993341a82SKrzysztof Kozlowski hdmi_rcv, dac_calib16, hdmi_cec, pwr_modem, dac_calib17, 9093341a82SKrzysztof Kozlowski hdmi_ddc, pwr_nav, dac_calib18, pwr_crypto, dac_calib19, 9193341a82SKrzysztof Kozlowski hdmi_hot, dac_calib20, dac_calib21, pci_e0, dac_calib22, 9293341a82SKrzysztof Kozlowski dac_calib23, dac_calib24, tsif1_sync, dac_calib25, sd_write, 9393341a82SKrzysztof Kozlowski tsif1_error, blsp_spi2, blsp_uart2, blsp_uim2, qdss_cti, 9493341a82SKrzysztof Kozlowski blsp_i2c2, blsp_spi3, blsp_uart3, blsp_uim3, blsp_i2c3, uim3, 9593341a82SKrzysztof Kozlowski blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, blsp_i2c9, 9693341a82SKrzysztof Kozlowski blsp_spi7, blsp_uart7, blsp_uim7, qdss_tracedata_a, blsp_i2c7, 9793341a82SKrzysztof Kozlowski qua_mi2s, gcc_gp1_clk_a, ssc_irq, uim4, blsp_spi11, 9893341a82SKrzysztof Kozlowski blsp_uart11, blsp_uim11, gcc_gp2_clk_a, gcc_gp3_clk_a, 9993341a82SKrzysztof Kozlowski blsp_i2c11, cri_trng0, cri_trng1, cri_trng, qdss_stm18, 10093341a82SKrzysztof Kozlowski pri_mi2s, qdss_stm17, blsp_spi4, blsp_uart4, blsp_uim4, 10193341a82SKrzysztof Kozlowski qdss_stm16, qdss_stm15, blsp_i2c4, qdss_stm14, dac_calib26, 10293341a82SKrzysztof Kozlowski spkr_i2s, audio_ref, lpass_slimbus, isense_dbg, tsense_pwm1, 10393341a82SKrzysztof Kozlowski tsense_pwm2, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_stm21, 10493341a82SKrzysztof Kozlowski qdss_stm20, qdss_stm19, gcc_gp1_clk_b, sec_mi2s, blsp_spi5, 10593341a82SKrzysztof Kozlowski blsp_uart5, blsp_uim5, gcc_gp2_clk_b, gcc_gp3_clk_b, blsp_i2c5, 10693341a82SKrzysztof Kozlowski blsp_spi12, blsp_uart12, blsp_uim12, qdss_stm25, qdss_stm31, 10793341a82SKrzysztof Kozlowski blsp_i2c12, qdss_stm30, qdss_stm29, tsif1_clk, qdss_stm28, 10893341a82SKrzysztof Kozlowski tsif1_en, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, 10993341a82SKrzysztof Kozlowski tsif2_error, sdc43, vfr_1, qdss_stm26, tsif2_clk, sdc4_clk, 11093341a82SKrzysztof Kozlowski qdss_stm24, tsif2_en, sdc42, qdss_stm23, qdss_tracectl_b, 11193341a82SKrzysztof Kozlowski sd_card, tsif2_data, sdc41, tsif2_sync, sdc40, mdp_vsync_p_b, 11293341a82SKrzysztof Kozlowski ldo_en, mdp_vsync_s_b, ldo_update, blsp11_uart_tx_b, 11393341a82SKrzysztof Kozlowski blsp11_uart_rx_b, blsp11_i2c_sda_b, prng_rosc, 11493341a82SKrzysztof Kozlowski blsp11_i2c_scl_b, uim2, uim1, uim_batt, pci_e2, pa_indicator, 11593341a82SKrzysztof Kozlowski adsp_ext, ddr_bist, qdss_tracedata_11, qdss_tracedata_12, 11693341a82SKrzysztof Kozlowski modem_tsync, nav_dr, nav_pps, pci_e1, gsm_tx, qspi_cs, ssbi2, 11793341a82SKrzysztof Kozlowski ssbi1, mss_lte, qspi_clk, qspi0, qspi1, qspi2, qspi3 ] 11893341a82SKrzysztof Kozlowski 11993341a82SKrzysztof Kozlowski required: 12093341a82SKrzysztof Kozlowski - pins 12193341a82SKrzysztof Kozlowski 12293341a82SKrzysztof KozlowskiallOf: 12393341a82SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 12493341a82SKrzysztof Kozlowski 12593341a82SKrzysztof Kozlowskirequired: 12693341a82SKrzysztof Kozlowski - compatible 12793341a82SKrzysztof Kozlowski - reg 12893341a82SKrzysztof Kozlowski 129*79d770afSKrzysztof KozlowskiunevaluatedProperties: false 13093341a82SKrzysztof Kozlowski 13193341a82SKrzysztof Kozlowskiexamples: 13293341a82SKrzysztof Kozlowski - | 13393341a82SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 13493341a82SKrzysztof Kozlowski 13593341a82SKrzysztof Kozlowski tlmm: pinctrl@1010000 { 13693341a82SKrzysztof Kozlowski compatible = "qcom,msm8996-pinctrl"; 13793341a82SKrzysztof Kozlowski reg = <0x01010000 0x300000>; 13893341a82SKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 13993341a82SKrzysztof Kozlowski gpio-controller; 14093341a82SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 150>; 14193341a82SKrzysztof Kozlowski #gpio-cells = <2>; 14293341a82SKrzysztof Kozlowski interrupt-controller; 14393341a82SKrzysztof Kozlowski #interrupt-cells = <2>; 14493341a82SKrzysztof Kozlowski 14593341a82SKrzysztof Kozlowski blsp1-spi1-default-state { 14693341a82SKrzysztof Kozlowski spi-pins { 14793341a82SKrzysztof Kozlowski pins = "gpio0", "gpio1", "gpio3"; 14893341a82SKrzysztof Kozlowski function = "blsp_spi1"; 14993341a82SKrzysztof Kozlowski drive-strength = <12>; 15093341a82SKrzysztof Kozlowski bias-disable; 15193341a82SKrzysztof Kozlowski }; 15293341a82SKrzysztof Kozlowski 15393341a82SKrzysztof Kozlowski cs-pins { 15493341a82SKrzysztof Kozlowski pins = "gpio2"; 15593341a82SKrzysztof Kozlowski function = "gpio"; 15693341a82SKrzysztof Kozlowski drive-strength = <16>; 15793341a82SKrzysztof Kozlowski bias-disable; 15893341a82SKrzysztof Kozlowski output-high; 15993341a82SKrzysztof Kozlowski }; 16093341a82SKrzysztof Kozlowski }; 16193341a82SKrzysztof Kozlowski 16293341a82SKrzysztof Kozlowski blsp1-spi1-sleep-state { 16393341a82SKrzysztof Kozlowski pins = "gpio0", "gpio1", "gpio2", "gpio3"; 16493341a82SKrzysztof Kozlowski function = "gpio"; 16593341a82SKrzysztof Kozlowski drive-strength = <2>; 16693341a82SKrzysztof Kozlowski bias-pull-down; 16793341a82SKrzysztof Kozlowski }; 16893341a82SKrzysztof Kozlowski }; 169