1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f126890aSEmmanuel Vadot%YAML 1.2 3f126890aSEmmanuel Vadot--- 4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sdx75-tlmm.yaml# 5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SDX75 TLMM block 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadotmaintainers: 10f126890aSEmmanuel Vadot - Rohit Agarwal <quic_rohiagar@quicinc.com> 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadotdescription: 13f126890aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SDX75 SoC. 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel VadotallOf: 16f126890aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadotproperties: 19f126890aSEmmanuel Vadot compatible: 20f126890aSEmmanuel Vadot const: qcom,sdx75-tlmm 21f126890aSEmmanuel Vadot 22f126890aSEmmanuel Vadot reg: 23f126890aSEmmanuel Vadot maxItems: 1 24f126890aSEmmanuel Vadot 25*8d13bc63SEmmanuel Vadot interrupts: 26*8d13bc63SEmmanuel Vadot maxItems: 1 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot gpio-reserved-ranges: 29f126890aSEmmanuel Vadot minItems: 1 30f126890aSEmmanuel Vadot maxItems: 67 31f126890aSEmmanuel Vadot 32f126890aSEmmanuel Vadot gpio-line-names: 33f126890aSEmmanuel Vadot maxItems: 133 34f126890aSEmmanuel Vadot 35f126890aSEmmanuel VadotpatternProperties: 36f126890aSEmmanuel Vadot "-state$": 37f126890aSEmmanuel Vadot oneOf: 38f126890aSEmmanuel Vadot - $ref: "#/$defs/qcom-sdx75-tlmm-state" 39f126890aSEmmanuel Vadot - patternProperties: 40f126890aSEmmanuel Vadot "-pins$": 41f126890aSEmmanuel Vadot $ref: "#/$defs/qcom-sdx75-tlmm-state" 42f126890aSEmmanuel Vadot additionalProperties: false 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot$defs: 45f126890aSEmmanuel Vadot qcom-sdx75-tlmm-state: 46f126890aSEmmanuel Vadot type: object 47f126890aSEmmanuel Vadot description: 48f126890aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 49f126890aSEmmanuel Vadot Client device subnodes use below standard properties. 50f126890aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51f126890aSEmmanuel Vadot unevaluatedProperties: false 52f126890aSEmmanuel Vadot 53f126890aSEmmanuel Vadot properties: 54f126890aSEmmanuel Vadot pins: 55f126890aSEmmanuel Vadot description: 56f126890aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 57f126890aSEmmanuel Vadot subnode. 58f126890aSEmmanuel Vadot items: 59f126890aSEmmanuel Vadot oneOf: 60f126890aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2])$" 61f126890aSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, sdc2_cmd, sdc2_data ] 62f126890aSEmmanuel Vadot minItems: 1 63f126890aSEmmanuel Vadot maxItems: 36 64f126890aSEmmanuel Vadot 65f126890aSEmmanuel Vadot function: 66f126890aSEmmanuel Vadot description: 67f126890aSEmmanuel Vadot Specify the alternative function to be configured for the specified 68f126890aSEmmanuel Vadot pins. 69f126890aSEmmanuel Vadot enum: [ adsp_ext, atest_char, audio_ref_clk, bimc_dte, char_exec, coex_uart2, 70f126890aSEmmanuel Vadot coex_uart, cri_trng, cri_trng0, cri_trng1, dbg_out_clk, ddr_bist, 71f126890aSEmmanuel Vadot ddr_pxi0, ebi0_wrcdc, ebi2_a, ebi2_lcd, ebi2_lcd_te, emac0_mcg, 72f126890aSEmmanuel Vadot emac0_ptp, emac1_mcg, emac1_ptp, emac_cdc, emac_pps_in, eth0_mdc, 73f126890aSEmmanuel Vadot eth0_mdio, eth1_mdc, eth1_mdio, ext_dbg, gcc_125_clk, gcc_gp1_clk, 74f126890aSEmmanuel Vadot gcc_gp2_clk, gcc_gp3_clk, gcc_plltest, gpio, i2s_mclk, jitter_bist, 75f126890aSEmmanuel Vadot ldo_en, ldo_update, m_voc, mgpi_clk, native_char, native_tsens, 76f126890aSEmmanuel Vadot native_tsense, nav_dr_sync, nav_gpio, pa_indicator, pci_e, 77f126890aSEmmanuel Vadot pcie0_clkreq_n, pcie1_clkreq_n, pcie2_clkreq_n, pll_bist_sync, 78f126890aSEmmanuel Vadot pll_clk_aux, pll_ref_clk, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, 79f126890aSEmmanuel Vadot qlink0_b_en, qlink0_b_req, qlink0_l_en, qlink0_l_req, qlink0_wmss, 80f126890aSEmmanuel Vadot qlink1_l_en, qlink1_l_req, qlink1_wmss, qup_se0, qup_se1_l2_mira, 81f126890aSEmmanuel Vadot qup_se1_l2_mirb, qup_se1_l3_mira, qup_se1_l3_mirb, qup_se2, qup_se3, 82f126890aSEmmanuel Vadot qup_se4, qup_se5, qup_se6, qup_se7, qup_se8, rgmii_rx_ctl, rgmii_rxc, 83f126890aSEmmanuel Vadot rgmii_rxd, rgmii_tx_ctl, rgmii_txc, rgmii_txd, sd_card, sdc1_tb, 84f126890aSEmmanuel Vadot sdc2_tb_trig, sec_mi2s, sgmii_phy_intr0_n, sgmii_phy_intr1_n, 85f126890aSEmmanuel Vadot spmi_coex, spmi_vgi, tgu_ch0_trigout, tmess_prng0, tmess_prng1, 86f126890aSEmmanuel Vadot tmess_prng2, tmess_prng3, tri_mi2s, uim1_clk, uim1_data, uim1_present, 87f126890aSEmmanuel Vadot uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, 88f126890aSEmmanuel Vadot usb2phy_ac_en, vsense_trigger_mirnat] 89f126890aSEmmanuel Vadot 90f126890aSEmmanuel Vadot required: 91f126890aSEmmanuel Vadot - pins 92f126890aSEmmanuel Vadot 93f126890aSEmmanuel Vadotrequired: 94f126890aSEmmanuel Vadot - compatible 95f126890aSEmmanuel Vadot - reg 96f126890aSEmmanuel Vadot 97*8d13bc63SEmmanuel VadotunevaluatedProperties: false 98f126890aSEmmanuel Vadot 99f126890aSEmmanuel Vadotexamples: 100f126890aSEmmanuel Vadot - | 101f126890aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 102f126890aSEmmanuel Vadot tlmm: pinctrl@f100000 { 103f126890aSEmmanuel Vadot compatible = "qcom,sdx75-tlmm"; 104f126890aSEmmanuel Vadot reg = <0x0f100000 0x300000>; 105f126890aSEmmanuel Vadot gpio-controller; 106f126890aSEmmanuel Vadot #gpio-cells = <2>; 107f126890aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 133>; 108f126890aSEmmanuel Vadot interrupt-controller; 109f126890aSEmmanuel Vadot #interrupt-cells = <2>; 110f126890aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot gpio-wo-state { 113f126890aSEmmanuel Vadot pins = "gpio1"; 114f126890aSEmmanuel Vadot function = "gpio"; 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot 117f126890aSEmmanuel Vadot uart-w-state { 118f126890aSEmmanuel Vadot rx-pins { 119f126890aSEmmanuel Vadot pins = "gpio12"; 120f126890aSEmmanuel Vadot function = "qup_se1_l2_mira"; 121f126890aSEmmanuel Vadot bias-disable; 122f126890aSEmmanuel Vadot }; 123f126890aSEmmanuel Vadot 124f126890aSEmmanuel Vadot tx-pins { 125f126890aSEmmanuel Vadot pins = "gpio13"; 126f126890aSEmmanuel Vadot function = "qup_se1_l3_mira"; 127f126890aSEmmanuel Vadot bias-disable; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot }; 130f126890aSEmmanuel Vadot }; 131f126890aSEmmanuel Vadot... 132