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