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,sm8450-tlmm.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm Technologies, Inc. SM8450 TLMM block 8 9maintainers: 10 - Vinod Koul <vkoul@kernel.org> 11 12description: 13 Top Level Mode Multiplexer pin controller in Qualcomm SM8450 SoC. 14 15allOf: 16 - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17 18properties: 19 compatible: 20 const: qcom,sm8450-tlmm 21 22 reg: 23 maxItems: 1 24 25 interrupts: 26 maxItems: 1 27 28 interrupt-controller: true 29 "#interrupt-cells": true 30 gpio-controller: true 31 32 gpio-reserved-ranges: 33 minItems: 1 34 maxItems: 105 35 36 gpio-line-names: 37 maxItems: 210 38 39 "#gpio-cells": true 40 gpio-ranges: true 41 wakeup-parent: true 42 43required: 44 - compatible 45 - reg 46 47additionalProperties: false 48 49patternProperties: 50 "-state$": 51 oneOf: 52 - $ref: "#/$defs/qcom-sm8450-tlmm-state" 53 - patternProperties: 54 "-pins$": 55 $ref: "#/$defs/qcom-sm8450-tlmm-state" 56 additionalProperties: false 57 58$defs: 59 qcom-sm8450-tlmm-state: 60 type: object 61 description: 62 Pinctrl node's client devices use subnodes for desired pin configuration. 63 Client device subnodes use below standard properties. 64 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 65 66 properties: 67 pins: 68 description: 69 List of gpio pins affected by the properties specified in this 70 subnode. 71 items: 72 oneOf: 73 - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" 74 - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 75 minItems: 1 76 maxItems: 36 77 78 function: 79 description: 80 Specify the alternative function to be configured for the specified 81 pins. 82 enum: [ aon_cam, atest_char, atest_usb, audio_ref, cam_mclk, cci_async, 83 cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, 84 cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 85 ddr_pxi2, ddr_pxi3, dp_hot, gcc_gp1, gcc_gp2, gcc_gp3, 86 gpio, ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0, mdp_vsync1, 87 mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, mi2s0_sck, 88 mi2s0_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, 89 mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, 90 mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, 91 mss_grfc7, mss_grfc8, mss_grfc9, nav, pcie0_clkreqn, 92 pcie1_clkreqn, phase_flag, pll_bist, pll_clk, pri_mi2s, 93 prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, qlink0_request, 94 qlink0_wmss, qlink1_enable, qlink1_request, qlink1_wmss, 95 qlink2_enable, qlink2_request, qlink2_wmss, qspi0, qspi1, 96 qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, 97 qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, qup2, 98 qup20, qup21, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, 99 qup_l5, qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, 100 sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, 101 tgu_ch3, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, 102 tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, uim0_present, 103 uim0_reset, uim1_clk, uim1_data, uim1_present, uim1_reset, 104 usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] 105 106 bias-disable: true 107 bias-pull-down: true 108 bias-pull-up: true 109 drive-strength: true 110 input-enable: true 111 output-high: true 112 output-low: true 113 114 required: 115 - pins 116 117 additionalProperties: false 118 119examples: 120 - | 121 #include <dt-bindings/interrupt-controller/arm-gic.h> 122 pinctrl@f100000 { 123 compatible = "qcom,sm8450-tlmm"; 124 reg = <0x0f100000 0x300000>; 125 gpio-controller; 126 #gpio-cells = <2>; 127 gpio-ranges = <&tlmm 0 0 211>; 128 interrupt-controller; 129 #interrupt-cells = <2>; 130 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 131 132 gpio-wo-state { 133 pins = "gpio1"; 134 function = "gpio"; 135 }; 136 137 uart-w-state { 138 rx-pins { 139 pins = "gpio26"; 140 function = "qup7"; 141 bias-pull-up; 142 }; 143 144 tx-pins { 145 pins = "gpio27"; 146 function = "qup7"; 147 bias-disable; 148 }; 149 }; 150 }; 151... 152