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,sc8280xp-tlmm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SC8280XP TLMM block 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Bjorn Andersson <bjorn.andersson@linaro.org> 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: | 138bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SC8280XP SoC. 148bab661aSEmmanuel Vadot 158bab661aSEmmanuel VadotallOf: 168bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 178bab661aSEmmanuel Vadot 188bab661aSEmmanuel Vadotproperties: 198bab661aSEmmanuel Vadot compatible: 208bab661aSEmmanuel Vadot const: qcom,sc8280xp-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: true 298bab661aSEmmanuel Vadot 308bab661aSEmmanuel VadotpatternProperties: 318bab661aSEmmanuel Vadot "-state$": 328bab661aSEmmanuel Vadot oneOf: 338bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 348bab661aSEmmanuel Vadot - patternProperties: 358bab661aSEmmanuel Vadot "-pins$": 368bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 378bab661aSEmmanuel Vadot additionalProperties: false 388bab661aSEmmanuel Vadot 398bab661aSEmmanuel Vadot$defs: 408bab661aSEmmanuel Vadot qcom-sc8280xp-tlmm-state: 418bab661aSEmmanuel Vadot type: object 428bab661aSEmmanuel Vadot description: 438bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 448bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 458bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 46f126890aSEmmanuel Vadot unevaluatedProperties: false 478bab661aSEmmanuel Vadot 488bab661aSEmmanuel Vadot properties: 498bab661aSEmmanuel Vadot pins: 508bab661aSEmmanuel Vadot description: 518bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 528bab661aSEmmanuel Vadot subnode. 538bab661aSEmmanuel Vadot items: 548bab661aSEmmanuel Vadot oneOf: 558bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-1][0-9]|22[0-7])$" 568bab661aSEmmanuel Vadot - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset, ufs1_reset ] 578bab661aSEmmanuel Vadot minItems: 1 588bab661aSEmmanuel Vadot maxItems: 16 598bab661aSEmmanuel Vadot 608bab661aSEmmanuel Vadot function: 618bab661aSEmmanuel Vadot description: 628bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 638bab661aSEmmanuel Vadot pins. 648bab661aSEmmanuel Vadot 658bab661aSEmmanuel Vadot enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, cci_i2c, 668bab661aSEmmanuel Vadot cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 678bab661aSEmmanuel Vadot cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, 688bab661aSEmmanuel Vadot cmu_rng, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, 698bab661aSEmmanuel Vadot ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, 708bab661aSEmmanuel Vadot ddr_pxi6, ddr_pxi7, dp2_hot, dp3_hot, edp0_lcd, edp1_lcd, 718bab661aSEmmanuel Vadot edp2_lcd, edp3_lcd, edp_hot, emac0_dll, emac0_mcg0, emac0_mcg1, 728bab661aSEmmanuel Vadot emac0_mcg2, emac0_mcg3, emac0_phy, emac0_ptp, emac1_dll0, 738bab661aSEmmanuel Vadot emac1_dll1, emac1_mcg0, emac1_mcg1, emac1_mcg2, emac1_mcg3, 748bab661aSEmmanuel Vadot emac1_phy, emac1_ptp, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4, 758bab661aSEmmanuel Vadot gcc_gp5, gpio, hs1_mi2s, hs2_mi2s, hs3_mi2s, ibi_i3c, 768bab661aSEmmanuel Vadot jitter_bist, lpass_slimbus, mdp0_vsync0, mdp0_vsync1, 778bab661aSEmmanuel Vadot mdp0_vsync2, mdp0_vsync3, mdp0_vsync4, mdp0_vsync5, 788bab661aSEmmanuel Vadot mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, mdp1_vsync0, 798bab661aSEmmanuel Vadot mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, 808bab661aSEmmanuel Vadot mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, 818bab661aSEmmanuel Vadot mi2s0_data0, mi2s0_data1, mi2s0_sck, mi2s0_ws, mi2s1_data0, 828bab661aSEmmanuel Vadot mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, mi2s2_data1, 838bab661aSEmmanuel Vadot mi2s2_sck, mi2s2_ws, mi2s_mclk1, mi2s_mclk2, pcie2a_clkreq, 848bab661aSEmmanuel Vadot pcie2b_clkreq, pcie3a_clkreq, pcie3b_clkreq, pcie4_clkreq, 858bab661aSEmmanuel Vadot phase_flag, pll_bist, pll_clk, prng_rosc0, prng_rosc1, 868bab661aSEmmanuel Vadot prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qspi, qspi_clk, 878bab661aSEmmanuel Vadot qspi_cs, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, 888bab661aSEmmanuel Vadot qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, 898bab661aSEmmanuel Vadot qup18, qup19, qup20, qup21, qup22, qup23, rgmii_0, rgmii_1, 908bab661aSEmmanuel Vadot sd_write, sdc40, sdc42, sdc43, sdc4_clk, sdc4_cmd, tb_trig, 918bab661aSEmmanuel Vadot tgu, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, 928bab661aSEmmanuel Vadot usb0_dp, usb0_phy, usb0_sbrx, usb0_sbtx, usb0_usb4, usb1_dp, 938bab661aSEmmanuel Vadot usb1_phy, usb1_sbrx, usb1_sbtx, usb1_usb4, usb2phy_ac, 948bab661aSEmmanuel Vadot vsense_trigger ] 958bab661aSEmmanuel Vadot 968bab661aSEmmanuel Vadot required: 978bab661aSEmmanuel Vadot - pins 988bab661aSEmmanuel Vadot 99*8d13bc63SEmmanuel Vadotrequired: 100*8d13bc63SEmmanuel Vadot - compatible 101*8d13bc63SEmmanuel Vadot - reg 102*8d13bc63SEmmanuel Vadot 103*8d13bc63SEmmanuel VadotunevaluatedProperties: false 104*8d13bc63SEmmanuel Vadot 1058bab661aSEmmanuel Vadotexamples: 1068bab661aSEmmanuel Vadot - | 1078bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1088bab661aSEmmanuel Vadot pinctrl@f100000 { 1098bab661aSEmmanuel Vadot compatible = "qcom,sc8280xp-tlmm"; 1108bab661aSEmmanuel Vadot reg = <0x0f100000 0x300000>; 1118bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1128bab661aSEmmanuel Vadot gpio-controller; 1138bab661aSEmmanuel Vadot #gpio-cells = <2>; 1148bab661aSEmmanuel Vadot interrupt-controller; 1158bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1168bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 230>; 1178bab661aSEmmanuel Vadot 1188bab661aSEmmanuel Vadot gpio-wo-subnode-state { 1198bab661aSEmmanuel Vadot pins = "gpio1"; 1208bab661aSEmmanuel Vadot function = "gpio"; 1218bab661aSEmmanuel Vadot }; 1228bab661aSEmmanuel Vadot 1238bab661aSEmmanuel Vadot uart-w-subnodes-state { 1248bab661aSEmmanuel Vadot rx-pins { 1258bab661aSEmmanuel Vadot pins = "gpio4"; 1268bab661aSEmmanuel Vadot function = "qup14"; 1278bab661aSEmmanuel Vadot bias-pull-up; 1288bab661aSEmmanuel Vadot }; 1298bab661aSEmmanuel Vadot 1308bab661aSEmmanuel Vadot tx-pins { 1318bab661aSEmmanuel Vadot pins = "gpio5"; 1328bab661aSEmmanuel Vadot function = "qup14"; 1338bab661aSEmmanuel Vadot bias-disable; 1348bab661aSEmmanuel Vadot }; 1358bab661aSEmmanuel Vadot }; 1368bab661aSEmmanuel Vadot }; 1378bab661aSEmmanuel Vadot... 138