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,qcm2290-tlmm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. QCM2290 TLMM block 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Shawn Guo <shawn.guo@linaro.org> 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: 138bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm QCM2290 SoC. 148bab661aSEmmanuel Vadot 158bab661aSEmmanuel Vadotproperties: 168bab661aSEmmanuel Vadot compatible: 178bab661aSEmmanuel Vadot const: qcom,qcm2290-tlmm 188bab661aSEmmanuel Vadot 198bab661aSEmmanuel Vadot reg: 208bab661aSEmmanuel Vadot maxItems: 1 218bab661aSEmmanuel Vadot 22cb7aa33aSEmmanuel Vadot interrupts: 23cb7aa33aSEmmanuel Vadot maxItems: 1 24cb7aa33aSEmmanuel Vadot 258bab661aSEmmanuel VadotpatternProperties: 268bab661aSEmmanuel Vadot "-state$": 278bab661aSEmmanuel Vadot oneOf: 288bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-qcm2290-tlmm-state" 298bab661aSEmmanuel Vadot - patternProperties: 308bab661aSEmmanuel Vadot "-pins$": 318bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-qcm2290-tlmm-state" 328bab661aSEmmanuel Vadot additionalProperties: false 338bab661aSEmmanuel Vadot 348bab661aSEmmanuel Vadot$defs: 358bab661aSEmmanuel Vadot qcom-qcm2290-tlmm-state: 368bab661aSEmmanuel Vadot type: object 378bab661aSEmmanuel Vadot description: 388bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 398bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 408bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 41f126890aSEmmanuel Vadot unevaluatedProperties: false 428bab661aSEmmanuel Vadot 438bab661aSEmmanuel Vadot properties: 448bab661aSEmmanuel Vadot pins: 458bab661aSEmmanuel Vadot description: 468bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 478bab661aSEmmanuel Vadot subnode. 488bab661aSEmmanuel Vadot items: 498bab661aSEmmanuel Vadot oneOf: 508bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-6])$" 518bab661aSEmmanuel Vadot - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, 528bab661aSEmmanuel Vadot sdc2_clk, sdc2_cmd, sdc2_data ] 538bab661aSEmmanuel Vadot minItems: 1 548bab661aSEmmanuel Vadot maxItems: 36 558bab661aSEmmanuel Vadot 568bab661aSEmmanuel Vadot function: 578bab661aSEmmanuel Vadot description: 588bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 598bab661aSEmmanuel Vadot pins. 608bab661aSEmmanuel Vadot 618bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, 628bab661aSEmmanuel Vadot cci_timer0, cci_timer1, cci_timer2, cci_timer3, char_exec, 638bab661aSEmmanuel Vadot cri_trng, cri_trng0, cri_trng1, dac_calib, dbg_out, ddr_bist, 648bab661aSEmmanuel Vadot ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, 658bab661aSEmmanuel Vadot gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, 668bab661aSEmmanuel Vadot jitter_bist, mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, 678bab661aSEmmanuel Vadot mpm_pwr, mss_lte, m_voc, nav_gpio, pa_indicator, pbs0, pbs1, 688bab661aSEmmanuel Vadot pbs2, pbs3, pbs4, pbs5, pbs6, pbs7, pbs8, pbs9, pbs10, pbs11, 698bab661aSEmmanuel Vadot pbs12, pbs13, pbs14, pbs15, pbs_out, phase_flag, pll_bist, 708bab661aSEmmanuel Vadot pll_bypassnl, pll_reset, prng_rosc, pwm_0, pwm_1, pwm_2, pwm_3, 718bab661aSEmmanuel Vadot pwm_4, pwm_5, pwm_6, pwm_7, pwm_8, pwm_9, qdss_cti, qdss_gpio, 728bab661aSEmmanuel Vadot qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, sdc2_tb, sd_write, 738bab661aSEmmanuel Vadot ssbi_wtr1, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm, 748bab661aSEmmanuel Vadot uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, 758bab661aSEmmanuel Vadot uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1, 768bab661aSEmmanuel Vadot vsense_trigger, wlan1_adc0, wlan1_adc1 ] 778bab661aSEmmanuel Vadot 788bab661aSEmmanuel Vadot required: 798bab661aSEmmanuel Vadot - pins 808bab661aSEmmanuel Vadot 818bab661aSEmmanuel VadotallOf: 828bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 838bab661aSEmmanuel Vadot 848bab661aSEmmanuel Vadotrequired: 858bab661aSEmmanuel Vadot - compatible 868bab661aSEmmanuel Vadot - reg 878bab661aSEmmanuel Vadot 88*8d13bc63SEmmanuel VadotunevaluatedProperties: false 898bab661aSEmmanuel Vadot 908bab661aSEmmanuel Vadotexamples: 918bab661aSEmmanuel Vadot - | 928bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 938bab661aSEmmanuel Vadot tlmm: pinctrl@500000 { 948bab661aSEmmanuel Vadot compatible = "qcom,qcm2290-tlmm"; 958bab661aSEmmanuel Vadot reg = <0x500000 0x300000>; 968bab661aSEmmanuel Vadot interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; 978bab661aSEmmanuel Vadot gpio-controller; 988bab661aSEmmanuel Vadot #gpio-cells = <2>; 998bab661aSEmmanuel Vadot interrupt-controller; 1008bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1018bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 127>; 1028bab661aSEmmanuel Vadot 1038bab661aSEmmanuel Vadot sdc2_on_state: sdc2-on-state { 1048bab661aSEmmanuel Vadot clk-pins { 1058bab661aSEmmanuel Vadot pins = "sdc2_clk"; 1068bab661aSEmmanuel Vadot bias-disable; 1078bab661aSEmmanuel Vadot drive-strength = <16>; 1088bab661aSEmmanuel Vadot }; 1098bab661aSEmmanuel Vadot 1108bab661aSEmmanuel Vadot cmd-pins { 1118bab661aSEmmanuel Vadot pins = "sdc2_cmd"; 1128bab661aSEmmanuel Vadot bias-pull-up; 1138bab661aSEmmanuel Vadot drive-strength = <10>; 1148bab661aSEmmanuel Vadot }; 1158bab661aSEmmanuel Vadot 1168bab661aSEmmanuel Vadot data-pins { 1178bab661aSEmmanuel Vadot pins = "sdc2_data"; 1188bab661aSEmmanuel Vadot bias-pull-up; 1198bab661aSEmmanuel Vadot drive-strength = <10>; 1208bab661aSEmmanuel Vadot }; 1218bab661aSEmmanuel Vadot }; 1228bab661aSEmmanuel Vadot }; 123