17703f13aSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 27703f13aSKrzysztof Kozlowski%YAML 1.2 37703f13aSKrzysztof Kozlowski--- 47703f13aSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sc8280xp-tlmm.yaml# 57703f13aSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 67703f13aSKrzysztof Kozlowski 77703f13aSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SC8280XP TLMM block 87703f13aSKrzysztof Kozlowski 97703f13aSKrzysztof Kozlowskimaintainers: 107703f13aSKrzysztof Kozlowski - Bjorn Andersson <bjorn.andersson@linaro.org> 117703f13aSKrzysztof Kozlowski 127703f13aSKrzysztof Kozlowskidescription: | 137703f13aSKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm SC8280XP SoC. 147703f13aSKrzysztof Kozlowski 157703f13aSKrzysztof KozlowskiallOf: 167703f13aSKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 177703f13aSKrzysztof Kozlowski 187703f13aSKrzysztof Kozlowskiproperties: 197703f13aSKrzysztof Kozlowski compatible: 207703f13aSKrzysztof Kozlowski const: qcom,sc8280xp-tlmm 217703f13aSKrzysztof Kozlowski 227703f13aSKrzysztof Kozlowski reg: 237703f13aSKrzysztof Kozlowski maxItems: 1 247703f13aSKrzysztof Kozlowski 2512a18bb7SKrzysztof Kozlowski interrupts: 2612a18bb7SKrzysztof Kozlowski maxItems: 1 2712a18bb7SKrzysztof Kozlowski 287703f13aSKrzysztof Kozlowski interrupt-controller: true 297703f13aSKrzysztof Kozlowski "#interrupt-cells": true 307703f13aSKrzysztof Kozlowski gpio-controller: true 317703f13aSKrzysztof Kozlowski gpio-reserved-ranges: true 327703f13aSKrzysztof Kozlowski "#gpio-cells": true 337703f13aSKrzysztof Kozlowski gpio-ranges: true 347703f13aSKrzysztof Kozlowski wakeup-parent: true 357703f13aSKrzysztof Kozlowski 367703f13aSKrzysztof Kozlowskirequired: 377703f13aSKrzysztof Kozlowski - compatible 387703f13aSKrzysztof Kozlowski - reg 397703f13aSKrzysztof Kozlowski 407703f13aSKrzysztof KozlowskiadditionalProperties: false 417703f13aSKrzysztof Kozlowski 427703f13aSKrzysztof KozlowskipatternProperties: 437703f13aSKrzysztof Kozlowski "-state$": 447703f13aSKrzysztof Kozlowski oneOf: 457703f13aSKrzysztof Kozlowski - $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 467703f13aSKrzysztof Kozlowski - patternProperties: 477703f13aSKrzysztof Kozlowski "-pins$": 487703f13aSKrzysztof Kozlowski $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 497703f13aSKrzysztof Kozlowski additionalProperties: false 507703f13aSKrzysztof Kozlowski 517703f13aSKrzysztof Kozlowski$defs: 527703f13aSKrzysztof Kozlowski qcom-sc8280xp-tlmm-state: 537703f13aSKrzysztof Kozlowski type: object 547703f13aSKrzysztof Kozlowski description: 557703f13aSKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 567703f13aSKrzysztof Kozlowski Client device subnodes use below standard properties. 577703f13aSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 58*aeffc733SKrzysztof Kozlowski unevaluatedProperties: false 597703f13aSKrzysztof Kozlowski 607703f13aSKrzysztof Kozlowski properties: 617703f13aSKrzysztof Kozlowski pins: 627703f13aSKrzysztof Kozlowski description: 637703f13aSKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 647703f13aSKrzysztof Kozlowski subnode. 657703f13aSKrzysztof Kozlowski items: 667703f13aSKrzysztof Kozlowski oneOf: 677703f13aSKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-1][0-9]|22[0-7])$" 687703f13aSKrzysztof Kozlowski - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset, ufs1_reset ] 697703f13aSKrzysztof Kozlowski minItems: 1 707703f13aSKrzysztof Kozlowski maxItems: 16 717703f13aSKrzysztof Kozlowski 727703f13aSKrzysztof Kozlowski function: 737703f13aSKrzysztof Kozlowski description: 747703f13aSKrzysztof Kozlowski Specify the alternative function to be configured for the specified 757703f13aSKrzysztof Kozlowski pins. 767703f13aSKrzysztof Kozlowski 777703f13aSKrzysztof Kozlowski enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, cci_i2c, 787703f13aSKrzysztof Kozlowski cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 797703f13aSKrzysztof Kozlowski cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, 807703f13aSKrzysztof Kozlowski cmu_rng, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, 817703f13aSKrzysztof Kozlowski ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, 827703f13aSKrzysztof Kozlowski ddr_pxi6, ddr_pxi7, dp2_hot, dp3_hot, edp0_lcd, edp1_lcd, 837703f13aSKrzysztof Kozlowski edp2_lcd, edp3_lcd, edp_hot, emac0_dll, emac0_mcg0, emac0_mcg1, 847703f13aSKrzysztof Kozlowski emac0_mcg2, emac0_mcg3, emac0_phy, emac0_ptp, emac1_dll0, 857703f13aSKrzysztof Kozlowski emac1_dll1, emac1_mcg0, emac1_mcg1, emac1_mcg2, emac1_mcg3, 867703f13aSKrzysztof Kozlowski emac1_phy, emac1_ptp, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4, 877703f13aSKrzysztof Kozlowski gcc_gp5, gpio, hs1_mi2s, hs2_mi2s, hs3_mi2s, ibi_i3c, 887703f13aSKrzysztof Kozlowski jitter_bist, lpass_slimbus, mdp0_vsync0, mdp0_vsync1, 897703f13aSKrzysztof Kozlowski mdp0_vsync2, mdp0_vsync3, mdp0_vsync4, mdp0_vsync5, 907703f13aSKrzysztof Kozlowski mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, mdp1_vsync0, 917703f13aSKrzysztof Kozlowski mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, 927703f13aSKrzysztof Kozlowski mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, 937703f13aSKrzysztof Kozlowski mi2s0_data0, mi2s0_data1, mi2s0_sck, mi2s0_ws, mi2s1_data0, 947703f13aSKrzysztof Kozlowski mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, mi2s2_data1, 957703f13aSKrzysztof Kozlowski mi2s2_sck, mi2s2_ws, mi2s_mclk1, mi2s_mclk2, pcie2a_clkreq, 967703f13aSKrzysztof Kozlowski pcie2b_clkreq, pcie3a_clkreq, pcie3b_clkreq, pcie4_clkreq, 977703f13aSKrzysztof Kozlowski phase_flag, pll_bist, pll_clk, prng_rosc0, prng_rosc1, 987703f13aSKrzysztof Kozlowski prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qspi, qspi_clk, 997703f13aSKrzysztof Kozlowski qspi_cs, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, 1007703f13aSKrzysztof Kozlowski qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, 1017703f13aSKrzysztof Kozlowski qup18, qup19, qup20, qup21, qup22, qup23, rgmii_0, rgmii_1, 1027703f13aSKrzysztof Kozlowski sd_write, sdc40, sdc42, sdc43, sdc4_clk, sdc4_cmd, tb_trig, 1037703f13aSKrzysztof Kozlowski tgu, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, 1047703f13aSKrzysztof Kozlowski usb0_dp, usb0_phy, usb0_sbrx, usb0_sbtx, usb0_usb4, usb1_dp, 1057703f13aSKrzysztof Kozlowski usb1_phy, usb1_sbrx, usb1_sbtx, usb1_usb4, usb2phy_ac, 1067703f13aSKrzysztof Kozlowski vsense_trigger ] 1077703f13aSKrzysztof Kozlowski 1087703f13aSKrzysztof Kozlowski required: 1097703f13aSKrzysztof Kozlowski - pins 1107703f13aSKrzysztof Kozlowski 1117703f13aSKrzysztof Kozlowskiexamples: 1127703f13aSKrzysztof Kozlowski - | 1137703f13aSKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 1147703f13aSKrzysztof Kozlowski pinctrl@f100000 { 1157703f13aSKrzysztof Kozlowski compatible = "qcom,sc8280xp-tlmm"; 1167703f13aSKrzysztof Kozlowski reg = <0x0f100000 0x300000>; 1177703f13aSKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1187703f13aSKrzysztof Kozlowski gpio-controller; 1197703f13aSKrzysztof Kozlowski #gpio-cells = <2>; 1207703f13aSKrzysztof Kozlowski interrupt-controller; 1217703f13aSKrzysztof Kozlowski #interrupt-cells = <2>; 1227703f13aSKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 230>; 1237703f13aSKrzysztof Kozlowski 1247703f13aSKrzysztof Kozlowski gpio-wo-subnode-state { 1257703f13aSKrzysztof Kozlowski pins = "gpio1"; 1267703f13aSKrzysztof Kozlowski function = "gpio"; 1277703f13aSKrzysztof Kozlowski }; 1287703f13aSKrzysztof Kozlowski 1297703f13aSKrzysztof Kozlowski uart-w-subnodes-state { 1307703f13aSKrzysztof Kozlowski rx-pins { 1317703f13aSKrzysztof Kozlowski pins = "gpio4"; 1327703f13aSKrzysztof Kozlowski function = "qup14"; 1337703f13aSKrzysztof Kozlowski bias-pull-up; 1347703f13aSKrzysztof Kozlowski }; 1357703f13aSKrzysztof Kozlowski 1367703f13aSKrzysztof Kozlowski tx-pins { 1377703f13aSKrzysztof Kozlowski pins = "gpio5"; 1387703f13aSKrzysztof Kozlowski function = "qup14"; 1397703f13aSKrzysztof Kozlowski bias-disable; 1407703f13aSKrzysztof Kozlowski }; 1417703f13aSKrzysztof Kozlowski }; 1427703f13aSKrzysztof Kozlowski }; 1437703f13aSKrzysztof Kozlowski... 144