18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28bab661aSEmmanuel Vadot%YAML 1.2 38bab661aSEmmanuel Vadot--- 48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-tlmm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SDM670 TLMM block 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Richard Acayan <mailingradian@gmail.com> 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: | 138bab661aSEmmanuel Vadot The Top Level Mode Multiplexer (TLMM) block found in the SDM670 platform. 148bab661aSEmmanuel Vadot 158bab661aSEmmanuel VadotallOf: 168bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 178bab661aSEmmanuel Vadot 188bab661aSEmmanuel Vadotproperties: 198bab661aSEmmanuel Vadot compatible: 208bab661aSEmmanuel Vadot const: qcom,sdm670-tlmm 218bab661aSEmmanuel Vadot 228bab661aSEmmanuel Vadot reg: 238bab661aSEmmanuel Vadot maxItems: 1 248bab661aSEmmanuel Vadot 25cb7aa33aSEmmanuel Vadot interrupts: 26cb7aa33aSEmmanuel Vadot maxItems: 1 27cb7aa33aSEmmanuel Vadot 288bab661aSEmmanuel Vadot gpio-reserved-ranges: 298bab661aSEmmanuel Vadot minItems: 1 308bab661aSEmmanuel Vadot maxItems: 75 318bab661aSEmmanuel Vadot 328bab661aSEmmanuel VadotpatternProperties: 338bab661aSEmmanuel Vadot "-state$": 348bab661aSEmmanuel Vadot oneOf: 358bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sdm670-tlmm-state" 368bab661aSEmmanuel Vadot - patternProperties: 378bab661aSEmmanuel Vadot "-pins$": 388bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sdm670-tlmm-state" 398bab661aSEmmanuel Vadot additionalProperties: false 408bab661aSEmmanuel Vadot 418bab661aSEmmanuel Vadot$defs: 428bab661aSEmmanuel Vadot qcom-sdm670-tlmm-state: 438bab661aSEmmanuel Vadot type: object 448bab661aSEmmanuel Vadot description: 458bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 468bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 478bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 48fac71e4eSEmmanuel Vadot unevaluatedProperties: false 498bab661aSEmmanuel Vadot 508bab661aSEmmanuel Vadot properties: 518bab661aSEmmanuel Vadot pins: 528bab661aSEmmanuel Vadot description: 538bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 548bab661aSEmmanuel Vadot subnode. 558bab661aSEmmanuel Vadot items: 568bab661aSEmmanuel Vadot oneOf: 578bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" 588bab661aSEmmanuel Vadot - enum: [ ufs_reset, sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, 598bab661aSEmmanuel Vadot sdc2_clk, sdc2_cmd, sdc2_data ] 608bab661aSEmmanuel Vadot minItems: 1 618bab661aSEmmanuel Vadot maxItems: 36 628bab661aSEmmanuel Vadot 638bab661aSEmmanuel Vadot function: 648bab661aSEmmanuel Vadot description: 658bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 668bab661aSEmmanuel Vadot pins. 678bab661aSEmmanuel Vadot 688bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, atest_char, atest_tsens, atest_tsens2, atest_usb1, atest_usb10, 698bab661aSEmmanuel Vadot atest_usb11, atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, 708bab661aSEmmanuel Vadot atest_usb22, atest_usb23, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1, 718bab661aSEmmanuel Vadot cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, dbg_out, ddr_bist, 728bab661aSEmmanuel Vadot ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, 738bab661aSEmmanuel Vadot gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en, ldo_update, 748bab661aSEmmanuel Vadot lpass_slimbus, m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, 758bab661aSEmmanuel Vadot mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, phase_flag, pll_bist, pll_bypassnl, 768bab661aSEmmanuel Vadot pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss, qlink_enable, 778bab661aSEmmanuel Vadot qlink_request, qua_mi2s, qup0, qup1, qup10, qup11, qup12, qup13, qup14, qup15, qup2, 788bab661aSEmmanuel Vadot qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sdc4_clk, 798bab661aSEmmanuel Vadot sdc4_cmd, sdc4_data, sd_write, sec_mi2s, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, 808bab661aSEmmanuel Vadot tgu_ch3, tsif1_clk, tsif1_data, tsif1_en, tsif1_error, tsif1_sync, tsif2_clk, 818bab661aSEmmanuel Vadot tsif2_data, tsif2_en, tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present, 828bab661aSEmmanuel Vadot uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, uim_batt, usb_phy, vfr_1, 838bab661aSEmmanuel Vadot vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data, ] 848bab661aSEmmanuel Vadot 858bab661aSEmmanuel Vadot required: 868bab661aSEmmanuel Vadot - pins 878bab661aSEmmanuel Vadot 88*8d13bc63SEmmanuel Vadotrequired: 89*8d13bc63SEmmanuel Vadot - compatible 90*8d13bc63SEmmanuel Vadot - reg 91*8d13bc63SEmmanuel Vadot 92*8d13bc63SEmmanuel VadotunevaluatedProperties: false 93*8d13bc63SEmmanuel Vadot 948bab661aSEmmanuel Vadotexamples: 958bab661aSEmmanuel Vadot - | 968bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 978bab661aSEmmanuel Vadot pinctrl@3400000 { 988bab661aSEmmanuel Vadot compatible = "qcom,sdm670-tlmm"; 998bab661aSEmmanuel Vadot reg = <0x03400000 0x300000>; 1008bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1018bab661aSEmmanuel Vadot gpio-controller; 1028bab661aSEmmanuel Vadot #gpio-cells = <2>; 1038bab661aSEmmanuel Vadot interrupt-controller; 1048bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1058bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 151>; 1068bab661aSEmmanuel Vadot 1078bab661aSEmmanuel Vadot qup-i2c9-state { 1088bab661aSEmmanuel Vadot pins = "gpio6", "gpio7"; 1098bab661aSEmmanuel Vadot function = "qup9"; 1108bab661aSEmmanuel Vadot }; 1118bab661aSEmmanuel Vadot }; 1128bab661aSEmmanuel Vadot... 113