1*7703f13aSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*7703f13aSKrzysztof Kozlowski%YAML 1.2 3*7703f13aSKrzysztof Kozlowski--- 4*7703f13aSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sc8280xp-tlmm.yaml# 5*7703f13aSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6*7703f13aSKrzysztof Kozlowski 7*7703f13aSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SC8280XP TLMM block 8*7703f13aSKrzysztof Kozlowski 9*7703f13aSKrzysztof Kozlowskimaintainers: 10*7703f13aSKrzysztof Kozlowski - Bjorn Andersson <bjorn.andersson@linaro.org> 11*7703f13aSKrzysztof Kozlowski 12*7703f13aSKrzysztof Kozlowskidescription: | 13*7703f13aSKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm SC8280XP SoC. 14*7703f13aSKrzysztof Kozlowski 15*7703f13aSKrzysztof KozlowskiallOf: 16*7703f13aSKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17*7703f13aSKrzysztof Kozlowski 18*7703f13aSKrzysztof Kozlowskiproperties: 19*7703f13aSKrzysztof Kozlowski compatible: 20*7703f13aSKrzysztof Kozlowski const: qcom,sc8280xp-tlmm 21*7703f13aSKrzysztof Kozlowski 22*7703f13aSKrzysztof Kozlowski reg: 23*7703f13aSKrzysztof Kozlowski maxItems: 1 24*7703f13aSKrzysztof Kozlowski 25*7703f13aSKrzysztof Kozlowski interrupts: true 26*7703f13aSKrzysztof Kozlowski interrupt-controller: true 27*7703f13aSKrzysztof Kozlowski "#interrupt-cells": true 28*7703f13aSKrzysztof Kozlowski gpio-controller: true 29*7703f13aSKrzysztof Kozlowski gpio-reserved-ranges: true 30*7703f13aSKrzysztof Kozlowski "#gpio-cells": true 31*7703f13aSKrzysztof Kozlowski gpio-ranges: true 32*7703f13aSKrzysztof Kozlowski wakeup-parent: true 33*7703f13aSKrzysztof Kozlowski 34*7703f13aSKrzysztof Kozlowskirequired: 35*7703f13aSKrzysztof Kozlowski - compatible 36*7703f13aSKrzysztof Kozlowski - reg 37*7703f13aSKrzysztof Kozlowski 38*7703f13aSKrzysztof KozlowskiadditionalProperties: false 39*7703f13aSKrzysztof Kozlowski 40*7703f13aSKrzysztof KozlowskipatternProperties: 41*7703f13aSKrzysztof Kozlowski "-state$": 42*7703f13aSKrzysztof Kozlowski oneOf: 43*7703f13aSKrzysztof Kozlowski - $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 44*7703f13aSKrzysztof Kozlowski - patternProperties: 45*7703f13aSKrzysztof Kozlowski "-pins$": 46*7703f13aSKrzysztof Kozlowski $ref: "#/$defs/qcom-sc8280xp-tlmm-state" 47*7703f13aSKrzysztof Kozlowski additionalProperties: false 48*7703f13aSKrzysztof Kozlowski 49*7703f13aSKrzysztof Kozlowski$defs: 50*7703f13aSKrzysztof Kozlowski qcom-sc8280xp-tlmm-state: 51*7703f13aSKrzysztof Kozlowski type: object 52*7703f13aSKrzysztof Kozlowski description: 53*7703f13aSKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 54*7703f13aSKrzysztof Kozlowski Client device subnodes use below standard properties. 55*7703f13aSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 56*7703f13aSKrzysztof Kozlowski 57*7703f13aSKrzysztof Kozlowski properties: 58*7703f13aSKrzysztof Kozlowski pins: 59*7703f13aSKrzysztof Kozlowski description: 60*7703f13aSKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 61*7703f13aSKrzysztof Kozlowski subnode. 62*7703f13aSKrzysztof Kozlowski items: 63*7703f13aSKrzysztof Kozlowski oneOf: 64*7703f13aSKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-1][0-9]|22[0-7])$" 65*7703f13aSKrzysztof Kozlowski - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset, ufs1_reset ] 66*7703f13aSKrzysztof Kozlowski minItems: 1 67*7703f13aSKrzysztof Kozlowski maxItems: 16 68*7703f13aSKrzysztof Kozlowski 69*7703f13aSKrzysztof Kozlowski function: 70*7703f13aSKrzysztof Kozlowski description: 71*7703f13aSKrzysztof Kozlowski Specify the alternative function to be configured for the specified 72*7703f13aSKrzysztof Kozlowski pins. 73*7703f13aSKrzysztof Kozlowski 74*7703f13aSKrzysztof Kozlowski enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, cci_i2c, 75*7703f13aSKrzysztof Kozlowski cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 76*7703f13aSKrzysztof Kozlowski cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, 77*7703f13aSKrzysztof Kozlowski cmu_rng, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, 78*7703f13aSKrzysztof Kozlowski ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, 79*7703f13aSKrzysztof Kozlowski ddr_pxi6, ddr_pxi7, dp2_hot, dp3_hot, edp0_lcd, edp1_lcd, 80*7703f13aSKrzysztof Kozlowski edp2_lcd, edp3_lcd, edp_hot, emac0_dll, emac0_mcg0, emac0_mcg1, 81*7703f13aSKrzysztof Kozlowski emac0_mcg2, emac0_mcg3, emac0_phy, emac0_ptp, emac1_dll0, 82*7703f13aSKrzysztof Kozlowski emac1_dll1, emac1_mcg0, emac1_mcg1, emac1_mcg2, emac1_mcg3, 83*7703f13aSKrzysztof Kozlowski emac1_phy, emac1_ptp, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4, 84*7703f13aSKrzysztof Kozlowski gcc_gp5, gpio, hs1_mi2s, hs2_mi2s, hs3_mi2s, ibi_i3c, 85*7703f13aSKrzysztof Kozlowski jitter_bist, lpass_slimbus, mdp0_vsync0, mdp0_vsync1, 86*7703f13aSKrzysztof Kozlowski mdp0_vsync2, mdp0_vsync3, mdp0_vsync4, mdp0_vsync5, 87*7703f13aSKrzysztof Kozlowski mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, mdp1_vsync0, 88*7703f13aSKrzysztof Kozlowski mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, 89*7703f13aSKrzysztof Kozlowski mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, 90*7703f13aSKrzysztof Kozlowski mi2s0_data0, mi2s0_data1, mi2s0_sck, mi2s0_ws, mi2s1_data0, 91*7703f13aSKrzysztof Kozlowski mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, mi2s2_data1, 92*7703f13aSKrzysztof Kozlowski mi2s2_sck, mi2s2_ws, mi2s_mclk1, mi2s_mclk2, pcie2a_clkreq, 93*7703f13aSKrzysztof Kozlowski pcie2b_clkreq, pcie3a_clkreq, pcie3b_clkreq, pcie4_clkreq, 94*7703f13aSKrzysztof Kozlowski phase_flag, pll_bist, pll_clk, prng_rosc0, prng_rosc1, 95*7703f13aSKrzysztof Kozlowski prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qspi, qspi_clk, 96*7703f13aSKrzysztof Kozlowski qspi_cs, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, 97*7703f13aSKrzysztof Kozlowski qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, 98*7703f13aSKrzysztof Kozlowski qup18, qup19, qup20, qup21, qup22, qup23, rgmii_0, rgmii_1, 99*7703f13aSKrzysztof Kozlowski sd_write, sdc40, sdc42, sdc43, sdc4_clk, sdc4_cmd, tb_trig, 100*7703f13aSKrzysztof Kozlowski tgu, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, 101*7703f13aSKrzysztof Kozlowski usb0_dp, usb0_phy, usb0_sbrx, usb0_sbtx, usb0_usb4, usb1_dp, 102*7703f13aSKrzysztof Kozlowski usb1_phy, usb1_sbrx, usb1_sbtx, usb1_usb4, usb2phy_ac, 103*7703f13aSKrzysztof Kozlowski vsense_trigger ] 104*7703f13aSKrzysztof Kozlowski 105*7703f13aSKrzysztof Kozlowski bias-disable: true 106*7703f13aSKrzysztof Kozlowski bias-pull-down: true 107*7703f13aSKrzysztof Kozlowski bias-pull-up: true 108*7703f13aSKrzysztof Kozlowski drive-strength: true 109*7703f13aSKrzysztof Kozlowski input-enable: true 110*7703f13aSKrzysztof Kozlowski output-high: true 111*7703f13aSKrzysztof Kozlowski output-low: true 112*7703f13aSKrzysztof Kozlowski 113*7703f13aSKrzysztof Kozlowski required: 114*7703f13aSKrzysztof Kozlowski - pins 115*7703f13aSKrzysztof Kozlowski 116*7703f13aSKrzysztof Kozlowski additionalProperties: false 117*7703f13aSKrzysztof Kozlowski 118*7703f13aSKrzysztof Kozlowskiexamples: 119*7703f13aSKrzysztof Kozlowski - | 120*7703f13aSKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 121*7703f13aSKrzysztof Kozlowski pinctrl@f100000 { 122*7703f13aSKrzysztof Kozlowski compatible = "qcom,sc8280xp-tlmm"; 123*7703f13aSKrzysztof Kozlowski reg = <0x0f100000 0x300000>; 124*7703f13aSKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 125*7703f13aSKrzysztof Kozlowski gpio-controller; 126*7703f13aSKrzysztof Kozlowski #gpio-cells = <2>; 127*7703f13aSKrzysztof Kozlowski interrupt-controller; 128*7703f13aSKrzysztof Kozlowski #interrupt-cells = <2>; 129*7703f13aSKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 230>; 130*7703f13aSKrzysztof Kozlowski 131*7703f13aSKrzysztof Kozlowski gpio-wo-subnode-state { 132*7703f13aSKrzysztof Kozlowski pins = "gpio1"; 133*7703f13aSKrzysztof Kozlowski function = "gpio"; 134*7703f13aSKrzysztof Kozlowski }; 135*7703f13aSKrzysztof Kozlowski 136*7703f13aSKrzysztof Kozlowski uart-w-subnodes-state { 137*7703f13aSKrzysztof Kozlowski rx-pins { 138*7703f13aSKrzysztof Kozlowski pins = "gpio4"; 139*7703f13aSKrzysztof Kozlowski function = "qup14"; 140*7703f13aSKrzysztof Kozlowski bias-pull-up; 141*7703f13aSKrzysztof Kozlowski }; 142*7703f13aSKrzysztof Kozlowski 143*7703f13aSKrzysztof Kozlowski tx-pins { 144*7703f13aSKrzysztof Kozlowski pins = "gpio5"; 145*7703f13aSKrzysztof Kozlowski function = "qup14"; 146*7703f13aSKrzysztof Kozlowski bias-disable; 147*7703f13aSKrzysztof Kozlowski }; 148*7703f13aSKrzysztof Kozlowski }; 149*7703f13aSKrzysztof Kozlowski }; 150*7703f13aSKrzysztof Kozlowski... 151