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 25*12a18bb7SKrzysztof Kozlowski interrupts: 26*12a18bb7SKrzysztof Kozlowski maxItems: 1 27*12a18bb7SKrzysztof 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 587703f13aSKrzysztof Kozlowski 597703f13aSKrzysztof Kozlowski properties: 607703f13aSKrzysztof Kozlowski pins: 617703f13aSKrzysztof Kozlowski description: 627703f13aSKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 637703f13aSKrzysztof Kozlowski subnode. 647703f13aSKrzysztof Kozlowski items: 657703f13aSKrzysztof Kozlowski oneOf: 667703f13aSKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-1][0-9]|22[0-7])$" 677703f13aSKrzysztof Kozlowski - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset, ufs1_reset ] 687703f13aSKrzysztof Kozlowski minItems: 1 697703f13aSKrzysztof Kozlowski maxItems: 16 707703f13aSKrzysztof Kozlowski 717703f13aSKrzysztof Kozlowski function: 727703f13aSKrzysztof Kozlowski description: 737703f13aSKrzysztof Kozlowski Specify the alternative function to be configured for the specified 747703f13aSKrzysztof Kozlowski pins. 757703f13aSKrzysztof Kozlowski 767703f13aSKrzysztof Kozlowski enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, cci_i2c, 777703f13aSKrzysztof Kozlowski cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 787703f13aSKrzysztof Kozlowski cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, 797703f13aSKrzysztof Kozlowski cmu_rng, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, 807703f13aSKrzysztof Kozlowski ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, 817703f13aSKrzysztof Kozlowski ddr_pxi6, ddr_pxi7, dp2_hot, dp3_hot, edp0_lcd, edp1_lcd, 827703f13aSKrzysztof Kozlowski edp2_lcd, edp3_lcd, edp_hot, emac0_dll, emac0_mcg0, emac0_mcg1, 837703f13aSKrzysztof Kozlowski emac0_mcg2, emac0_mcg3, emac0_phy, emac0_ptp, emac1_dll0, 847703f13aSKrzysztof Kozlowski emac1_dll1, emac1_mcg0, emac1_mcg1, emac1_mcg2, emac1_mcg3, 857703f13aSKrzysztof Kozlowski emac1_phy, emac1_ptp, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4, 867703f13aSKrzysztof Kozlowski gcc_gp5, gpio, hs1_mi2s, hs2_mi2s, hs3_mi2s, ibi_i3c, 877703f13aSKrzysztof Kozlowski jitter_bist, lpass_slimbus, mdp0_vsync0, mdp0_vsync1, 887703f13aSKrzysztof Kozlowski mdp0_vsync2, mdp0_vsync3, mdp0_vsync4, mdp0_vsync5, 897703f13aSKrzysztof Kozlowski mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, mdp1_vsync0, 907703f13aSKrzysztof Kozlowski mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, 917703f13aSKrzysztof Kozlowski mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, 927703f13aSKrzysztof Kozlowski mi2s0_data0, mi2s0_data1, mi2s0_sck, mi2s0_ws, mi2s1_data0, 937703f13aSKrzysztof Kozlowski mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, mi2s2_data1, 947703f13aSKrzysztof Kozlowski mi2s2_sck, mi2s2_ws, mi2s_mclk1, mi2s_mclk2, pcie2a_clkreq, 957703f13aSKrzysztof Kozlowski pcie2b_clkreq, pcie3a_clkreq, pcie3b_clkreq, pcie4_clkreq, 967703f13aSKrzysztof Kozlowski phase_flag, pll_bist, pll_clk, prng_rosc0, prng_rosc1, 977703f13aSKrzysztof Kozlowski prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qspi, qspi_clk, 987703f13aSKrzysztof Kozlowski qspi_cs, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, 997703f13aSKrzysztof Kozlowski qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, 1007703f13aSKrzysztof Kozlowski qup18, qup19, qup20, qup21, qup22, qup23, rgmii_0, rgmii_1, 1017703f13aSKrzysztof Kozlowski sd_write, sdc40, sdc42, sdc43, sdc4_clk, sdc4_cmd, tb_trig, 1027703f13aSKrzysztof Kozlowski tgu, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, 1037703f13aSKrzysztof Kozlowski usb0_dp, usb0_phy, usb0_sbrx, usb0_sbtx, usb0_usb4, usb1_dp, 1047703f13aSKrzysztof Kozlowski usb1_phy, usb1_sbrx, usb1_sbtx, usb1_usb4, usb2phy_ac, 1057703f13aSKrzysztof Kozlowski vsense_trigger ] 1067703f13aSKrzysztof Kozlowski 1077703f13aSKrzysztof Kozlowski bias-disable: true 1087703f13aSKrzysztof Kozlowski bias-pull-down: true 1097703f13aSKrzysztof Kozlowski bias-pull-up: true 1107703f13aSKrzysztof Kozlowski drive-strength: true 1117703f13aSKrzysztof Kozlowski input-enable: true 1127703f13aSKrzysztof Kozlowski output-high: true 1137703f13aSKrzysztof Kozlowski output-low: true 1147703f13aSKrzysztof Kozlowski 1157703f13aSKrzysztof Kozlowski required: 1167703f13aSKrzysztof Kozlowski - pins 1177703f13aSKrzysztof Kozlowski 1187703f13aSKrzysztof Kozlowski additionalProperties: false 1197703f13aSKrzysztof Kozlowski 1207703f13aSKrzysztof Kozlowskiexamples: 1217703f13aSKrzysztof Kozlowski - | 1227703f13aSKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 1237703f13aSKrzysztof Kozlowski pinctrl@f100000 { 1247703f13aSKrzysztof Kozlowski compatible = "qcom,sc8280xp-tlmm"; 1257703f13aSKrzysztof Kozlowski reg = <0x0f100000 0x300000>; 1267703f13aSKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1277703f13aSKrzysztof Kozlowski gpio-controller; 1287703f13aSKrzysztof Kozlowski #gpio-cells = <2>; 1297703f13aSKrzysztof Kozlowski interrupt-controller; 1307703f13aSKrzysztof Kozlowski #interrupt-cells = <2>; 1317703f13aSKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 230>; 1327703f13aSKrzysztof Kozlowski 1337703f13aSKrzysztof Kozlowski gpio-wo-subnode-state { 1347703f13aSKrzysztof Kozlowski pins = "gpio1"; 1357703f13aSKrzysztof Kozlowski function = "gpio"; 1367703f13aSKrzysztof Kozlowski }; 1377703f13aSKrzysztof Kozlowski 1387703f13aSKrzysztof Kozlowski uart-w-subnodes-state { 1397703f13aSKrzysztof Kozlowski rx-pins { 1407703f13aSKrzysztof Kozlowski pins = "gpio4"; 1417703f13aSKrzysztof Kozlowski function = "qup14"; 1427703f13aSKrzysztof Kozlowski bias-pull-up; 1437703f13aSKrzysztof Kozlowski }; 1447703f13aSKrzysztof Kozlowski 1457703f13aSKrzysztof Kozlowski tx-pins { 1467703f13aSKrzysztof Kozlowski pins = "gpio5"; 1477703f13aSKrzysztof Kozlowski function = "qup14"; 1487703f13aSKrzysztof Kozlowski bias-disable; 1497703f13aSKrzysztof Kozlowski }; 1507703f13aSKrzysztof Kozlowski }; 1517703f13aSKrzysztof Kozlowski }; 1527703f13aSKrzysztof Kozlowski... 153