1*5180f4faSRajendra Nayak# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5180f4faSRajendra Nayak%YAML 1.2 3*5180f4faSRajendra Nayak--- 4*5180f4faSRajendra Nayak$id: http://devicetree.org/schemas/pinctrl/qcom,x1e80100-tlmm.yaml# 5*5180f4faSRajendra Nayak$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5180f4faSRajendra Nayak 7*5180f4faSRajendra Nayaktitle: Qualcomm Technologies, Inc. X1E80100 TLMM block 8*5180f4faSRajendra Nayak 9*5180f4faSRajendra Nayakmaintainers: 10*5180f4faSRajendra Nayak - Rajendra Nayak <quic_rjendra@quicinc.com> 11*5180f4faSRajendra Nayak 12*5180f4faSRajendra Nayakdescription: 13*5180f4faSRajendra Nayak Top Level Mode Multiplexer pin controller in Qualcomm X1E80100 SoC. 14*5180f4faSRajendra Nayak 15*5180f4faSRajendra NayakallOf: 16*5180f4faSRajendra Nayak - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17*5180f4faSRajendra Nayak 18*5180f4faSRajendra Nayakproperties: 19*5180f4faSRajendra Nayak compatible: 20*5180f4faSRajendra Nayak const: qcom,x1e80100-tlmm 21*5180f4faSRajendra Nayak 22*5180f4faSRajendra Nayak reg: 23*5180f4faSRajendra Nayak maxItems: 1 24*5180f4faSRajendra Nayak 25*5180f4faSRajendra Nayak interrupts: true 26*5180f4faSRajendra Nayak interrupt-controller: true 27*5180f4faSRajendra Nayak "#interrupt-cells": true 28*5180f4faSRajendra Nayak gpio-controller: true 29*5180f4faSRajendra Nayak 30*5180f4faSRajendra Nayak gpio-reserved-ranges: 31*5180f4faSRajendra Nayak minItems: 1 32*5180f4faSRajendra Nayak maxItems: 119 33*5180f4faSRajendra Nayak 34*5180f4faSRajendra Nayak gpio-line-names: 35*5180f4faSRajendra Nayak maxItems: 238 36*5180f4faSRajendra Nayak 37*5180f4faSRajendra Nayak "#gpio-cells": true 38*5180f4faSRajendra Nayak gpio-ranges: true 39*5180f4faSRajendra Nayak wakeup-parent: true 40*5180f4faSRajendra Nayak 41*5180f4faSRajendra NayakpatternProperties: 42*5180f4faSRajendra Nayak "-state$": 43*5180f4faSRajendra Nayak oneOf: 44*5180f4faSRajendra Nayak - $ref: "#/$defs/qcom-x1e80100-tlmm-state" 45*5180f4faSRajendra Nayak - patternProperties: 46*5180f4faSRajendra Nayak "-pins$": 47*5180f4faSRajendra Nayak $ref: "#/$defs/qcom-x1e80100-tlmm-state" 48*5180f4faSRajendra Nayak additionalProperties: false 49*5180f4faSRajendra Nayak 50*5180f4faSRajendra Nayak$defs: 51*5180f4faSRajendra Nayak qcom-x1e80100-tlmm-state: 52*5180f4faSRajendra Nayak type: object 53*5180f4faSRajendra Nayak description: 54*5180f4faSRajendra Nayak Pinctrl node's client devices use subnodes for desired pin configuration. 55*5180f4faSRajendra Nayak Client device subnodes use below standard properties. 56*5180f4faSRajendra Nayak $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 57*5180f4faSRajendra Nayak unevaluatedProperties: false 58*5180f4faSRajendra Nayak 59*5180f4faSRajendra Nayak properties: 60*5180f4faSRajendra Nayak pins: 61*5180f4faSRajendra Nayak description: 62*5180f4faSRajendra Nayak List of gpio pins affected by the properties specified in this 63*5180f4faSRajendra Nayak subnode. 64*5180f4faSRajendra Nayak items: 65*5180f4faSRajendra Nayak oneOf: 66*5180f4faSRajendra Nayak - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-2][0-9]|23[0-7])$" 67*5180f4faSRajendra Nayak - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 68*5180f4faSRajendra Nayak minItems: 1 69*5180f4faSRajendra Nayak maxItems: 36 70*5180f4faSRajendra Nayak 71*5180f4faSRajendra Nayak function: 72*5180f4faSRajendra Nayak description: 73*5180f4faSRajendra Nayak Specify the alternative function to be configured for the specified 74*5180f4faSRajendra Nayak pins. 75*5180f4faSRajendra Nayak enum: [ aon_cci, aoss_cti, atest_char, atest_char0, 76*5180f4faSRajendra Nayak atest_char1, atest_char2, atest_char3, atest_usb, 77*5180f4faSRajendra Nayak audio_ext, audio_ref, cam_aon, cam_mclk, cci_async, 78*5180f4faSRajendra Nayak cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, 79*5180f4faSRajendra Nayak cci_timer4, cmu_rng0, cmu_rng1, cmu_rng2, cmu_rng3, 80*5180f4faSRajendra Nayak cri_trng, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 81*5180f4faSRajendra Nayak ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, ddr_pxi6, ddr_pxi7, 82*5180f4faSRajendra Nayak edp0_hot, edp0_lcd, edp1_hot, edp1_lcd, eusb0_ac, eusb1_ac, 83*5180f4faSRajendra Nayak eusb2_ac, eusb3_ac, eusb5_ac, eusb6_ac, gcc_gp1, gcc_gp2, 84*5180f4faSRajendra Nayak gcc_gp3, gpio, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws, i2s1_data0, 85*5180f4faSRajendra Nayak i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist, mdp_vsync0, 86*5180f4faSRajendra Nayak mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, 87*5180f4faSRajendra Nayak mdp_vsync6, mdp_vsync7, mdp_vsync8, pcie3_clk, pcie4_clk, 88*5180f4faSRajendra Nayak pcie5_clk, pcie6a_clk, pcie6b_clk, phase_flag, pll_bist, pll_clk, 89*5180f4faSRajendra Nayak prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, 90*5180f4faSRajendra Nayak qdss_gpio, qspi00, qspi01, qspi02, qspi03, qspi0_clk, qspi0_cs0, 91*5180f4faSRajendra Nayak qspi0_cs1, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, 92*5180f4faSRajendra Nayak qup0_se5, qup0_se6, qup0_se7, qup1_se0, qup1_se1, qup1_se2, qup1_se3, 93*5180f4faSRajendra Nayak qup1_se4, qup1_se5, qup1_se6, qup1_se7, qup2_se0, qup2_se1, qup2_se2, 94*5180f4faSRajendra Nayak qup2_se3, qup2_se4, qup2_se5, qup2_se6, qup2_se7, sd_write, sdc4_clk, 95*5180f4faSRajendra Nayak sdc4_cmd, sdc4_data0, sdc4_data1, sdc4_data2, sdc4_data3, sys_throttle, 96*5180f4faSRajendra Nayak tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tgu_ch4, tgu_ch5, 97*5180f4faSRajendra Nayak tgu_ch6, tgu_ch7, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, 98*5180f4faSRajendra Nayak tsense_pwm1, tsense_pwm2, sense_pwm3, tsense_pwm4, usb0_dp, usb0_phy, 99*5180f4faSRajendra Nayak usb0_sbrx, usb0_sbtx, usb1_dp, usb1_phy, usb1_sbrx, usb1_sbtx, 100*5180f4faSRajendra Nayak usb2_dp, usb2_phy, usb2_sbrx, usb2_sbtx, vsense_trigger ] 101*5180f4faSRajendra Nayak 102*5180f4faSRajendra Nayak required: 103*5180f4faSRajendra Nayak - pins 104*5180f4faSRajendra Nayak 105*5180f4faSRajendra Nayakrequired: 106*5180f4faSRajendra Nayak - compatible 107*5180f4faSRajendra Nayak - reg 108*5180f4faSRajendra Nayak 109*5180f4faSRajendra NayakadditionalProperties: false 110*5180f4faSRajendra Nayak 111*5180f4faSRajendra Nayakexamples: 112*5180f4faSRajendra Nayak - | 113*5180f4faSRajendra Nayak #include <dt-bindings/interrupt-controller/arm-gic.h> 114*5180f4faSRajendra Nayak tlmm: pinctrl@f100000 { 115*5180f4faSRajendra Nayak compatible = "qcom,x1e80100-tlmm"; 116*5180f4faSRajendra Nayak reg = <0x0f100000 0xf00000>; 117*5180f4faSRajendra Nayak gpio-controller; 118*5180f4faSRajendra Nayak #gpio-cells = <2>; 119*5180f4faSRajendra Nayak gpio-ranges = <&tlmm 0 0 239>; 120*5180f4faSRajendra Nayak interrupt-controller; 121*5180f4faSRajendra Nayak #interrupt-cells = <2>; 122*5180f4faSRajendra Nayak interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 123*5180f4faSRajendra Nayak 124*5180f4faSRajendra Nayak gpio-wo-state { 125*5180f4faSRajendra Nayak pins = "gpio1"; 126*5180f4faSRajendra Nayak function = "gpio"; 127*5180f4faSRajendra Nayak }; 128*5180f4faSRajendra Nayak 129*5180f4faSRajendra Nayak uart-w-state { 130*5180f4faSRajendra Nayak rx-pins { 131*5180f4faSRajendra Nayak pins = "gpio26"; 132*5180f4faSRajendra Nayak function = "qup2_se7"; 133*5180f4faSRajendra Nayak bias-pull-up; 134*5180f4faSRajendra Nayak }; 135*5180f4faSRajendra Nayak 136*5180f4faSRajendra Nayak tx-pins { 137*5180f4faSRajendra Nayak pins = "gpio27"; 138*5180f4faSRajendra Nayak function = "qup2_se7"; 139*5180f4faSRajendra Nayak bias-disable; 140*5180f4faSRajendra Nayak }; 141*5180f4faSRajendra Nayak }; 142*5180f4faSRajendra Nayak }; 143*5180f4faSRajendra Nayak... 144