1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5f62a964SEmmanuel Vadot%YAML 1.2 3*5f62a964SEmmanuel Vadot--- 4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sm8750-tlmm.yaml# 5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5f62a964SEmmanuel Vadot 7*5f62a964SEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM8750 TLMM block 8*5f62a964SEmmanuel Vadot 9*5f62a964SEmmanuel Vadotmaintainers: 10*5f62a964SEmmanuel Vadot - Melody Olvera <quic_molvera@quicinc.com> 11*5f62a964SEmmanuel Vadot 12*5f62a964SEmmanuel Vadotdescription: 13*5f62a964SEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SM8750 SoC. 14*5f62a964SEmmanuel Vadot 15*5f62a964SEmmanuel VadotallOf: 16*5f62a964SEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17*5f62a964SEmmanuel Vadot 18*5f62a964SEmmanuel Vadotproperties: 19*5f62a964SEmmanuel Vadot compatible: 20*5f62a964SEmmanuel Vadot const: qcom,sm8750-tlmm 21*5f62a964SEmmanuel Vadot 22*5f62a964SEmmanuel Vadot reg: 23*5f62a964SEmmanuel Vadot maxItems: 1 24*5f62a964SEmmanuel Vadot 25*5f62a964SEmmanuel Vadot interrupts: 26*5f62a964SEmmanuel Vadot maxItems: 1 27*5f62a964SEmmanuel Vadot 28*5f62a964SEmmanuel Vadot gpio-reserved-ranges: 29*5f62a964SEmmanuel Vadot minItems: 1 30*5f62a964SEmmanuel Vadot maxItems: 108 31*5f62a964SEmmanuel Vadot 32*5f62a964SEmmanuel Vadot gpio-line-names: 33*5f62a964SEmmanuel Vadot maxItems: 215 34*5f62a964SEmmanuel Vadot 35*5f62a964SEmmanuel VadotpatternProperties: 36*5f62a964SEmmanuel Vadot "-state$": 37*5f62a964SEmmanuel Vadot oneOf: 38*5f62a964SEmmanuel Vadot - $ref: "#/$defs/qcom-sm8750-tlmm-state" 39*5f62a964SEmmanuel Vadot - patternProperties: 40*5f62a964SEmmanuel Vadot "-pins$": 41*5f62a964SEmmanuel Vadot $ref: "#/$defs/qcom-sm8750-tlmm-state" 42*5f62a964SEmmanuel Vadot additionalProperties: false 43*5f62a964SEmmanuel Vadot 44*5f62a964SEmmanuel Vadot$defs: 45*5f62a964SEmmanuel Vadot qcom-sm8750-tlmm-state: 46*5f62a964SEmmanuel Vadot type: object 47*5f62a964SEmmanuel Vadot description: 48*5f62a964SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 49*5f62a964SEmmanuel Vadot Client device subnodes use below standard properties. 50*5f62a964SEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51*5f62a964SEmmanuel Vadot unevaluatedProperties: false 52*5f62a964SEmmanuel Vadot 53*5f62a964SEmmanuel Vadot properties: 54*5f62a964SEmmanuel Vadot pins: 55*5f62a964SEmmanuel Vadot description: 56*5f62a964SEmmanuel Vadot List of gpio pins affected by the properties specified in this 57*5f62a964SEmmanuel Vadot subnode. 58*5f62a964SEmmanuel Vadot items: 59*5f62a964SEmmanuel Vadot oneOf: 60*5f62a964SEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9]|21[0-4])$" 61*5f62a964SEmmanuel Vadot - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 62*5f62a964SEmmanuel Vadot minItems: 1 63*5f62a964SEmmanuel Vadot maxItems: 36 64*5f62a964SEmmanuel Vadot 65*5f62a964SEmmanuel Vadot function: 66*5f62a964SEmmanuel Vadot description: 67*5f62a964SEmmanuel Vadot Specify the alternative function to be configured for the specified 68*5f62a964SEmmanuel Vadot pins. 69*5f62a964SEmmanuel Vadot enum: [ gpio, aoss_cti, atest_char, atest_usb, audio_ext_mclk0, 70*5f62a964SEmmanuel Vadot audio_ext_mclk1, audio_ref_clk, cam_aon_mclk2, cam_aon_mclk4, 71*5f62a964SEmmanuel Vadot cam_mclk, cci_async_in, cci_i2c_scl, cci_i2c_sda, cci_timer, 72*5f62a964SEmmanuel Vadot cmu_rng, coex_uart1_rx, coex_uart1_tx, coex_uart2_rx, 73*5f62a964SEmmanuel Vadot coex_uart2_tx, dbg_out_clk, ddr_bist_complete, ddr_bist_fail, 74*5f62a964SEmmanuel Vadot ddr_bist_start, ddr_bist_stop, ddr_pxi0, ddr_pxi1, ddr_pxi2, 75*5f62a964SEmmanuel Vadot ddr_pxi3, dp_hot, egpio, gcc_gp1, gcc_gp2, gcc_gp3, gnss_adc0, 76*5f62a964SEmmanuel Vadot gnss_adc1, i2chub0_se0, i2chub0_se1, i2chub0_se2, i2chub0_se3, 77*5f62a964SEmmanuel Vadot i2chub0_se4, i2chub0_se5, i2chub0_se6, i2chub0_se7, i2chub0_se8, 78*5f62a964SEmmanuel Vadot i2chub0_se9, i2s0_data0, i2s0_data1, i2s0_sck, i2s0_ws, 79*5f62a964SEmmanuel Vadot i2s1_data0, i2s1_data1, i2s1_sck, i2s1_ws, ibi_i3c, jitter_bist, 80*5f62a964SEmmanuel Vadot mdp_esync0_out, mdp_esync1_out, mdp_vsync, mdp_vsync0_out, 81*5f62a964SEmmanuel Vadot mdp_vsync1_out, mdp_vsync2_out, mdp_vsync3_out, mdp_vsync5_out, 82*5f62a964SEmmanuel Vadot mdp_vsync_e, nav_gpio0, nav_gpio1, nav_gpio2, nav_gpio3, 83*5f62a964SEmmanuel Vadot pcie0_clk_req_n, phase_flag, pll_bist_sync, pll_clk_aux, 84*5f62a964SEmmanuel Vadot prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, 85*5f62a964SEmmanuel Vadot qlink_big_enable, qlink_big_request, qlink_little_enable, 86*5f62a964SEmmanuel Vadot qlink_little_request, qlink_wmss, qspi0, qspi1, qspi2, qspi3, 87*5f62a964SEmmanuel Vadot qspi_clk, qspi_cs, qup1_se0, qup1_se1, qup1_se2, qup1_se3, 88*5f62a964SEmmanuel Vadot qup1_se4, qup1_se5, qup1_se6, qup1_se7, qup2_se0, qup2_se1, 89*5f62a964SEmmanuel Vadot qup2_se2, qup2_se3, qup2_se4, qup2_se5, qup2_se6, qup2_se7, 90*5f62a964SEmmanuel Vadot sd_write_protect, sdc40, sdc41, sdc42, sdc43, sdc4_clk, 91*5f62a964SEmmanuel Vadot sdc4_cmd, tb_trig_sdc2, tb_trig_sdc4, tmess_prng0, tmess_prng1, 92*5f62a964SEmmanuel Vadot tmess_prng2, tmess_prng3, tsense_pwm1, tsense_pwm2, tsense_pwm3, 93*5f62a964SEmmanuel Vadot tsense_pwm4, uim0_clk, uim0_data, uim0_present, uim0_reset, 94*5f62a964SEmmanuel Vadot uim1_clk, uim1_data, uim1_present, uim1_reset, usb1_hs, usb_phy, 95*5f62a964SEmmanuel Vadot vfr_0, vfr_1, vsense_trigger_mirnat, wcn_sw, wcn_sw_ctrl ] 96*5f62a964SEmmanuel Vadot 97*5f62a964SEmmanuel Vadot required: 98*5f62a964SEmmanuel Vadot - pins 99*5f62a964SEmmanuel Vadot 100*5f62a964SEmmanuel Vadotrequired: 101*5f62a964SEmmanuel Vadot - compatible 102*5f62a964SEmmanuel Vadot - reg 103*5f62a964SEmmanuel Vadot 104*5f62a964SEmmanuel VadotunevaluatedProperties: false 105*5f62a964SEmmanuel Vadot 106*5f62a964SEmmanuel Vadotexamples: 107*5f62a964SEmmanuel Vadot - | 108*5f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 109*5f62a964SEmmanuel Vadot tlmm: pinctrl@f100000 { 110*5f62a964SEmmanuel Vadot compatible = "qcom,sm8750-tlmm"; 111*5f62a964SEmmanuel Vadot reg = <0x0f100000 0x300000>; 112*5f62a964SEmmanuel Vadot gpio-controller; 113*5f62a964SEmmanuel Vadot #gpio-cells = <2>; 114*5f62a964SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 216>; 115*5f62a964SEmmanuel Vadot interrupt-controller; 116*5f62a964SEmmanuel Vadot #interrupt-cells = <2>; 117*5f62a964SEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 118*5f62a964SEmmanuel Vadot 119*5f62a964SEmmanuel Vadot gpio-wo-state { 120*5f62a964SEmmanuel Vadot pins = "gpio1"; 121*5f62a964SEmmanuel Vadot function = "gpio"; 122*5f62a964SEmmanuel Vadot }; 123*5f62a964SEmmanuel Vadot 124*5f62a964SEmmanuel Vadot uart-w-state { 125*5f62a964SEmmanuel Vadot rx-pins { 126*5f62a964SEmmanuel Vadot pins = "gpio60"; 127*5f62a964SEmmanuel Vadot function = "qup1_se7"; 128*5f62a964SEmmanuel Vadot bias-pull-up; 129*5f62a964SEmmanuel Vadot }; 130*5f62a964SEmmanuel Vadot 131*5f62a964SEmmanuel Vadot tx-pins { 132*5f62a964SEmmanuel Vadot pins = "gpio61"; 133*5f62a964SEmmanuel Vadot function = "qup1_se7"; 134*5f62a964SEmmanuel Vadot bias-disable; 135*5f62a964SEmmanuel Vadot }; 136*5f62a964SEmmanuel Vadot }; 137*5f62a964SEmmanuel Vadot }; 138*5f62a964SEmmanuel Vadot... 139