1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,milos-tlmm.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Qualcomm Technologies, Inc. Milos TLMM block 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotmaintainers: 10*833e5d42SEmmanuel Vadot - Luca Weiss <luca.weiss@fairphone.com> 11*833e5d42SEmmanuel Vadot 12*833e5d42SEmmanuel Vadotdescription: 13*833e5d42SEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm Milos SoC. 14*833e5d42SEmmanuel Vadot 15*833e5d42SEmmanuel VadotallOf: 16*833e5d42SEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17*833e5d42SEmmanuel Vadot 18*833e5d42SEmmanuel Vadotproperties: 19*833e5d42SEmmanuel Vadot compatible: 20*833e5d42SEmmanuel Vadot const: qcom,milos-tlmm 21*833e5d42SEmmanuel Vadot 22*833e5d42SEmmanuel Vadot reg: 23*833e5d42SEmmanuel Vadot maxItems: 1 24*833e5d42SEmmanuel Vadot 25*833e5d42SEmmanuel Vadot interrupts: 26*833e5d42SEmmanuel Vadot maxItems: 1 27*833e5d42SEmmanuel Vadot 28*833e5d42SEmmanuel Vadot gpio-reserved-ranges: 29*833e5d42SEmmanuel Vadot minItems: 1 30*833e5d42SEmmanuel Vadot maxItems: 84 31*833e5d42SEmmanuel Vadot 32*833e5d42SEmmanuel Vadot gpio-line-names: 33*833e5d42SEmmanuel Vadot maxItems: 167 34*833e5d42SEmmanuel Vadot 35*833e5d42SEmmanuel VadotpatternProperties: 36*833e5d42SEmmanuel Vadot "-state$": 37*833e5d42SEmmanuel Vadot oneOf: 38*833e5d42SEmmanuel Vadot - $ref: "#/$defs/qcom-milos-tlmm-state" 39*833e5d42SEmmanuel Vadot - patternProperties: 40*833e5d42SEmmanuel Vadot "-pins$": 41*833e5d42SEmmanuel Vadot $ref: "#/$defs/qcom-milos-tlmm-state" 42*833e5d42SEmmanuel Vadot additionalProperties: false 43*833e5d42SEmmanuel Vadot 44*833e5d42SEmmanuel Vadot$defs: 45*833e5d42SEmmanuel Vadot qcom-milos-tlmm-state: 46*833e5d42SEmmanuel Vadot type: object 47*833e5d42SEmmanuel Vadot description: 48*833e5d42SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 49*833e5d42SEmmanuel Vadot Client device subnodes use below standard properties. 50*833e5d42SEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51*833e5d42SEmmanuel Vadot unevaluatedProperties: false 52*833e5d42SEmmanuel Vadot 53*833e5d42SEmmanuel Vadot properties: 54*833e5d42SEmmanuel Vadot pins: 55*833e5d42SEmmanuel Vadot description: 56*833e5d42SEmmanuel Vadot List of gpio pins affected by the properties specified in this 57*833e5d42SEmmanuel Vadot subnode. 58*833e5d42SEmmanuel Vadot items: 59*833e5d42SEmmanuel Vadot oneOf: 60*833e5d42SEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-5][0-9]|16[0-7])$" 61*833e5d42SEmmanuel Vadot - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 62*833e5d42SEmmanuel Vadot minItems: 1 63*833e5d42SEmmanuel Vadot maxItems: 36 64*833e5d42SEmmanuel Vadot 65*833e5d42SEmmanuel Vadot function: 66*833e5d42SEmmanuel Vadot description: 67*833e5d42SEmmanuel Vadot Specify the alternative function to be configured for the specified 68*833e5d42SEmmanuel Vadot pins. 69*833e5d42SEmmanuel Vadot enum: [ gpio, aoss_cti, atest_char, atest_usb, audio_ext_mclk0, 70*833e5d42SEmmanuel Vadot audio_ext_mclk1, audio_ref_clk, cam_mclk, cci_async_in0, 71*833e5d42SEmmanuel Vadot cci_i2c_scl, cci_i2c_sda, cci_timer, coex_uart1_rx, 72*833e5d42SEmmanuel Vadot coex_uart1_tx, dbg_out_clk, ddr_bist_complete, ddr_bist_fail, 73*833e5d42SEmmanuel Vadot ddr_bist_start, ddr_bist_stop, ddr_pxi0, ddr_pxi1, dp0_hot, 74*833e5d42SEmmanuel Vadot egpio, gcc_gp1, gcc_gp2, gcc_gp3, host2wlan_sol, i2s0_data0, 75*833e5d42SEmmanuel Vadot i2s0_data1, i2s0_sck, i2s0_ws, ibi_i3c, jitter_bist, mdp_vsync, 76*833e5d42SEmmanuel Vadot mdp_vsync0_out, mdp_vsync1_out, mdp_vsync2_out, mdp_vsync3_out, 77*833e5d42SEmmanuel Vadot mdp_vsync_e, nav_gpio0, nav_gpio1, nav_gpio2, pcie0_clk_req_n, 78*833e5d42SEmmanuel Vadot pcie1_clk_req_n, phase_flag, pll_bist_sync, pll_clk_aux, 79*833e5d42SEmmanuel Vadot prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, 80*833e5d42SEmmanuel Vadot qdss_gpio, qlink0_enable, qlink0_request, qlink0_wmss, 81*833e5d42SEmmanuel Vadot qlink1_enable, qlink1_request, qlink1_wmss, qspi0, qup0_se0, 82*833e5d42SEmmanuel Vadot qup0_se1, qup0_se2, qup0_se3, qup0_se4, qup0_se5, qup0_se6, 83*833e5d42SEmmanuel Vadot qup1_se0, qup1_se1, qup1_se2, qup1_se3, qup1_se4, qup1_se5, 84*833e5d42SEmmanuel Vadot qup1_se6, resout_gpio_n, sd_write_protect, sdc1_clk, sdc1_cmd, 85*833e5d42SEmmanuel Vadot sdc1_data, sdc1_rclk, sdc2_clk, sdc2_cmd, sdc2_data, 86*833e5d42SEmmanuel Vadot sdc2_fb_clk, tb_trig_sdc1, tb_trig_sdc2, tgu_ch0_trigout, 87*833e5d42SEmmanuel Vadot tgu_ch1_trigout, tmess_prng0, tmess_prng1, tmess_prng2, 88*833e5d42SEmmanuel Vadot tmess_prng3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, 89*833e5d42SEmmanuel Vadot uim0_present, uim0_reset, uim1_clk_mira, uim1_clk_mirb, 90*833e5d42SEmmanuel Vadot uim1_data_mira, uim1_data_mirb, uim1_present_mira, 91*833e5d42SEmmanuel Vadot uim1_present_mirb, uim1_reset_mira, uim1_reset_mirb, usb0_hs, 92*833e5d42SEmmanuel Vadot usb0_phy_ps, vfr_0, vfr_1, vsense_trigger_mirnat, wcn_sw, 93*833e5d42SEmmanuel Vadot wcn_sw_ctrl ] 94*833e5d42SEmmanuel Vadot 95*833e5d42SEmmanuel Vadot required: 96*833e5d42SEmmanuel Vadot - pins 97*833e5d42SEmmanuel Vadot 98*833e5d42SEmmanuel Vadotrequired: 99*833e5d42SEmmanuel Vadot - compatible 100*833e5d42SEmmanuel Vadot - reg 101*833e5d42SEmmanuel Vadot 102*833e5d42SEmmanuel VadotunevaluatedProperties: false 103*833e5d42SEmmanuel Vadot 104*833e5d42SEmmanuel Vadotexamples: 105*833e5d42SEmmanuel Vadot - | 106*833e5d42SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 107*833e5d42SEmmanuel Vadot tlmm: pinctrl@f100000 { 108*833e5d42SEmmanuel Vadot compatible = "qcom,milos-tlmm"; 109*833e5d42SEmmanuel Vadot reg = <0x0f100000 0x300000>; 110*833e5d42SEmmanuel Vadot 111*833e5d42SEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 112*833e5d42SEmmanuel Vadot 113*833e5d42SEmmanuel Vadot gpio-controller; 114*833e5d42SEmmanuel Vadot #gpio-cells = <2>; 115*833e5d42SEmmanuel Vadot 116*833e5d42SEmmanuel Vadot interrupt-controller; 117*833e5d42SEmmanuel Vadot #interrupt-cells = <2>; 118*833e5d42SEmmanuel Vadot 119*833e5d42SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 168>; 120*833e5d42SEmmanuel Vadot 121*833e5d42SEmmanuel Vadot gpio-wo-state { 122*833e5d42SEmmanuel Vadot pins = "gpio1"; 123*833e5d42SEmmanuel Vadot function = "gpio"; 124*833e5d42SEmmanuel Vadot }; 125*833e5d42SEmmanuel Vadot 126*833e5d42SEmmanuel Vadot qup-uart5-default-state { 127*833e5d42SEmmanuel Vadot pins = "gpio25", "gpio26"; 128*833e5d42SEmmanuel Vadot function = "qup0_se5"; 129*833e5d42SEmmanuel Vadot drive-strength = <2>; 130*833e5d42SEmmanuel Vadot bias-disable; 131*833e5d42SEmmanuel Vadot }; 132*833e5d42SEmmanuel Vadot }; 133*833e5d42SEmmanuel Vadot... 134