1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,ipq6018-pinctrl.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Qualcomm Technologies, Inc. IPQ6018 TLMM block 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 11c66ec88fSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: 138bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm IPQ6018 SoC. 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot compatible: 17c66ec88fSEmmanuel Vadot const: qcom,ipq6018-pinctrl 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot reg: 20c66ec88fSEmmanuel Vadot maxItems: 1 21c66ec88fSEmmanuel Vadot 22cb7aa33aSEmmanuel Vadot interrupts: 23cb7aa33aSEmmanuel Vadot maxItems: 1 24cb7aa33aSEmmanuel Vadot 25c66ec88fSEmmanuel VadotpatternProperties: 268bab661aSEmmanuel Vadot "-state$": 278bab661aSEmmanuel Vadot oneOf: 288bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-ipq6018-tlmm-state" 298bab661aSEmmanuel Vadot - patternProperties: 308bab661aSEmmanuel Vadot "-pins$": 318bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-ipq6018-tlmm-state" 328bab661aSEmmanuel Vadot additionalProperties: false 338bab661aSEmmanuel Vadot 348bab661aSEmmanuel Vadot$defs: 358bab661aSEmmanuel Vadot qcom-ipq6018-tlmm-state: 36c66ec88fSEmmanuel Vadot description: 37c66ec88fSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 38c66ec88fSEmmanuel Vadot Client device subnodes use below standard properties. 398bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 40fac71e4eSEmmanuel Vadot unevaluatedProperties: false 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot properties: 43c66ec88fSEmmanuel Vadot pins: 44c66ec88fSEmmanuel Vadot description: 45c66ec88fSEmmanuel Vadot List of gpio pins affected by the properties specified in this 46c66ec88fSEmmanuel Vadot subnode. 47c66ec88fSEmmanuel Vadot items: 48c66ec88fSEmmanuel Vadot oneOf: 49c66ec88fSEmmanuel Vadot - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" 50c66ec88fSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, 51c66ec88fSEmmanuel Vadot sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, 52c66ec88fSEmmanuel Vadot qdsd_data3 ] 53c66ec88fSEmmanuel Vadot minItems: 1 548bab661aSEmmanuel Vadot maxItems: 16 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot function: 57c66ec88fSEmmanuel Vadot description: 58c66ec88fSEmmanuel Vadot Specify the alternative function to be configured for the specified 59c66ec88fSEmmanuel Vadot pins. 60c66ec88fSEmmanuel Vadot enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, 61c66ec88fSEmmanuel Vadot atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac, 62c66ec88fSEmmanuel Vadot atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0, 638bab661aSEmmanuel Vadot atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c, 648bab661aSEmmanuel Vadot blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi, 65c66ec88fSEmmanuel Vadot blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi, 66c66ec88fSEmmanuel Vadot blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi, 67c66ec88fSEmmanuel Vadot blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi, 688bab661aSEmmanuel Vadot blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst, 69c66ec88fSEmmanuel Vadot cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0, 70c66ec88fSEmmanuel Vadot cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v, 71c66ec88fSEmmanuel Vadot dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass, 72c66ec88fSEmmanuel Vadot flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, 73c66ec88fSEmmanuel Vadot gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0, 74c66ec88fSEmmanuel Vadot gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2, 75c66ec88fSEmmanuel Vadot ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc, 76c66ec88fSEmmanuel Vadot nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s, 77c66ec88fSEmmanuel Vadot pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b, 78c66ec88fSEmmanuel Vadot pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, 79c66ec88fSEmmanuel Vadot pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, 80c66ec88fSEmmanuel Vadot qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, 81c66ec88fSEmmanuel Vadot qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, 82c66ec88fSEmmanuel Vadot qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, 838bab661aSEmmanuel Vadot qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card, 848bab661aSEmmanuel Vadot sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2, 858bab661aSEmmanuel Vadot uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ] 86c66ec88fSEmmanuel Vadot 87c66ec88fSEmmanuel Vadot required: 88c66ec88fSEmmanuel Vadot - pins 89c66ec88fSEmmanuel Vadot 90e67e8565SEmmanuel VadotallOf: 918bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 92e67e8565SEmmanuel Vadot 93c66ec88fSEmmanuel Vadotrequired: 94c66ec88fSEmmanuel Vadot - compatible 95c66ec88fSEmmanuel Vadot - reg 96c66ec88fSEmmanuel Vadot 97*8d13bc63SEmmanuel VadotunevaluatedProperties: false 98c66ec88fSEmmanuel Vadot 99c66ec88fSEmmanuel Vadotexamples: 100c66ec88fSEmmanuel Vadot - | 101c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 102c66ec88fSEmmanuel Vadot tlmm: pinctrl@1000000 { 103c66ec88fSEmmanuel Vadot compatible = "qcom,ipq6018-pinctrl"; 104c66ec88fSEmmanuel Vadot reg = <0x01000000 0x300000>; 105c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 106c66ec88fSEmmanuel Vadot interrupt-controller; 107c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 108c66ec88fSEmmanuel Vadot gpio-controller; 109c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 110b97ee269SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 80>; 111c66ec88fSEmmanuel Vadot 1128bab661aSEmmanuel Vadot serial3-state { 113c66ec88fSEmmanuel Vadot pins = "gpio44", "gpio45"; 114c66ec88fSEmmanuel Vadot function = "blsp2_uart"; 115c66ec88fSEmmanuel Vadot drive-strength = <8>; 116c66ec88fSEmmanuel Vadot bias-pull-down; 117c66ec88fSEmmanuel Vadot }; 118c66ec88fSEmmanuel Vadot }; 119