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