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,sm8450-tlmm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM8450 TLMM block 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Vinod Koul <vkoul@kernel.org> 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: 138bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SM8450 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,sm8450-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: 105 318bab661aSEmmanuel Vadot 328bab661aSEmmanuel Vadot gpio-line-names: 33cb7aa33aSEmmanuel Vadot maxItems: 210 348bab661aSEmmanuel Vadot 358bab661aSEmmanuel VadotpatternProperties: 368bab661aSEmmanuel Vadot "-state$": 378bab661aSEmmanuel Vadot oneOf: 388bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sm8450-tlmm-state" 398bab661aSEmmanuel Vadot - patternProperties: 408bab661aSEmmanuel Vadot "-pins$": 418bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sm8450-tlmm-state" 428bab661aSEmmanuel Vadot additionalProperties: false 438bab661aSEmmanuel Vadot 448bab661aSEmmanuel Vadot$defs: 458bab661aSEmmanuel Vadot qcom-sm8450-tlmm-state: 468bab661aSEmmanuel Vadot type: object 478bab661aSEmmanuel Vadot description: 488bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 498bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 508bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51fac71e4eSEmmanuel Vadot unevaluatedProperties: false 528bab661aSEmmanuel Vadot 538bab661aSEmmanuel Vadot properties: 548bab661aSEmmanuel Vadot pins: 558bab661aSEmmanuel Vadot description: 568bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 578bab661aSEmmanuel Vadot subnode. 588bab661aSEmmanuel Vadot items: 598bab661aSEmmanuel Vadot oneOf: 608bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" 618bab661aSEmmanuel Vadot - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 628bab661aSEmmanuel Vadot minItems: 1 638bab661aSEmmanuel Vadot maxItems: 36 648bab661aSEmmanuel Vadot 658bab661aSEmmanuel Vadot function: 668bab661aSEmmanuel Vadot description: 678bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 688bab661aSEmmanuel Vadot pins. 698bab661aSEmmanuel Vadot enum: [ aon_cam, atest_char, atest_usb, audio_ref, cam_mclk, cci_async, 708bab661aSEmmanuel Vadot cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, 718bab661aSEmmanuel Vadot cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 728bab661aSEmmanuel Vadot ddr_pxi2, ddr_pxi3, dp_hot, gcc_gp1, gcc_gp2, gcc_gp3, 738bab661aSEmmanuel Vadot gpio, ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0, mdp_vsync1, 748bab661aSEmmanuel Vadot mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, mi2s0_sck, 758bab661aSEmmanuel Vadot mi2s0_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, 768bab661aSEmmanuel Vadot mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, 778bab661aSEmmanuel Vadot mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, 788bab661aSEmmanuel Vadot mss_grfc7, mss_grfc8, mss_grfc9, nav, pcie0_clkreqn, 798bab661aSEmmanuel Vadot pcie1_clkreqn, phase_flag, pll_bist, pll_clk, pri_mi2s, 808bab661aSEmmanuel Vadot prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, qlink0_request, 818bab661aSEmmanuel Vadot qlink0_wmss, qlink1_enable, qlink1_request, qlink1_wmss, 828bab661aSEmmanuel Vadot qlink2_enable, qlink2_request, qlink2_wmss, qspi0, qspi1, 838bab661aSEmmanuel Vadot qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, 848bab661aSEmmanuel Vadot qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, qup2, 858bab661aSEmmanuel Vadot qup20, qup21, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, 868bab661aSEmmanuel Vadot qup_l5, qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, 878bab661aSEmmanuel Vadot sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, 888bab661aSEmmanuel Vadot tgu_ch3, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, 898bab661aSEmmanuel Vadot tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, uim0_present, 908bab661aSEmmanuel Vadot uim0_reset, uim1_clk, uim1_data, uim1_present, uim1_reset, 918bab661aSEmmanuel Vadot usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] 928bab661aSEmmanuel Vadot 938bab661aSEmmanuel Vadot required: 948bab661aSEmmanuel Vadot - pins 958bab661aSEmmanuel Vadot 96*8d13bc63SEmmanuel Vadotrequired: 97*8d13bc63SEmmanuel Vadot - compatible 98*8d13bc63SEmmanuel Vadot - reg 99*8d13bc63SEmmanuel Vadot 100*8d13bc63SEmmanuel VadotunevaluatedProperties: false 101*8d13bc63SEmmanuel Vadot 1028bab661aSEmmanuel Vadotexamples: 1038bab661aSEmmanuel Vadot - | 1048bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1058bab661aSEmmanuel Vadot pinctrl@f100000 { 1068bab661aSEmmanuel Vadot compatible = "qcom,sm8450-tlmm"; 1078bab661aSEmmanuel Vadot reg = <0x0f100000 0x300000>; 1088bab661aSEmmanuel Vadot gpio-controller; 1098bab661aSEmmanuel Vadot #gpio-cells = <2>; 1108bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 211>; 1118bab661aSEmmanuel Vadot interrupt-controller; 1128bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1138bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1148bab661aSEmmanuel Vadot 1158bab661aSEmmanuel Vadot gpio-wo-state { 1168bab661aSEmmanuel Vadot pins = "gpio1"; 1178bab661aSEmmanuel Vadot function = "gpio"; 1188bab661aSEmmanuel Vadot }; 1198bab661aSEmmanuel Vadot 1208bab661aSEmmanuel Vadot uart-w-state { 1218bab661aSEmmanuel Vadot rx-pins { 1228bab661aSEmmanuel Vadot pins = "gpio26"; 1238bab661aSEmmanuel Vadot function = "qup7"; 1248bab661aSEmmanuel Vadot bias-pull-up; 1258bab661aSEmmanuel Vadot }; 1268bab661aSEmmanuel Vadot 1278bab661aSEmmanuel Vadot tx-pins { 1288bab661aSEmmanuel Vadot pins = "gpio27"; 1298bab661aSEmmanuel Vadot function = "qup7"; 1308bab661aSEmmanuel Vadot bias-disable; 1318bab661aSEmmanuel Vadot }; 1328bab661aSEmmanuel Vadot }; 1338bab661aSEmmanuel Vadot }; 1348bab661aSEmmanuel Vadot... 135