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