116dc56ebSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 216dc56ebSKrzysztof Kozlowski%YAML 1.2 316dc56ebSKrzysztof Kozlowski--- 416dc56ebSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sm8350-tlmm.yaml# 516dc56ebSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 616dc56ebSKrzysztof Kozlowski 716dc56ebSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SM8350 TLMM block 816dc56ebSKrzysztof Kozlowski 916dc56ebSKrzysztof Kozlowskimaintainers: 1016dc56ebSKrzysztof Kozlowski - Vinod Koul <vkoul@kernel.org> 1116dc56ebSKrzysztof Kozlowski 1216dc56ebSKrzysztof Kozlowskidescription: 1316dc56ebSKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm SM8350 SoC. 1416dc56ebSKrzysztof Kozlowski 1516dc56ebSKrzysztof KozlowskiallOf: 1616dc56ebSKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 1716dc56ebSKrzysztof Kozlowski 1816dc56ebSKrzysztof Kozlowskiproperties: 1916dc56ebSKrzysztof Kozlowski compatible: 2016dc56ebSKrzysztof Kozlowski const: qcom,sm8350-tlmm 2116dc56ebSKrzysztof Kozlowski 2216dc56ebSKrzysztof Kozlowski reg: 2316dc56ebSKrzysztof Kozlowski maxItems: 1 2416dc56ebSKrzysztof Kozlowski 2512a18bb7SKrzysztof Kozlowski interrupts: 2612a18bb7SKrzysztof Kozlowski maxItems: 1 2712a18bb7SKrzysztof Kozlowski 2816dc56ebSKrzysztof Kozlowski interrupt-controller: true 2916dc56ebSKrzysztof Kozlowski "#interrupt-cells": true 3016dc56ebSKrzysztof Kozlowski gpio-controller: true 3186a8754bSKrzysztof Kozlowski 3286a8754bSKrzysztof Kozlowski gpio-reserved-ranges: 3386a8754bSKrzysztof Kozlowski minItems: 1 3486a8754bSKrzysztof Kozlowski maxItems: 102 3586a8754bSKrzysztof Kozlowski 3686a8754bSKrzysztof Kozlowski gpio-line-names: 3786a8754bSKrzysztof Kozlowski maxItems: 203 3886a8754bSKrzysztof Kozlowski 3916dc56ebSKrzysztof Kozlowski "#gpio-cells": true 4016dc56ebSKrzysztof Kozlowski gpio-ranges: true 4116dc56ebSKrzysztof Kozlowski wakeup-parent: true 4216dc56ebSKrzysztof Kozlowski 4316dc56ebSKrzysztof Kozlowskirequired: 4416dc56ebSKrzysztof Kozlowski - compatible 4516dc56ebSKrzysztof Kozlowski - reg 4616dc56ebSKrzysztof Kozlowski 4716dc56ebSKrzysztof KozlowskiadditionalProperties: false 4816dc56ebSKrzysztof Kozlowski 4916dc56ebSKrzysztof KozlowskipatternProperties: 5016dc56ebSKrzysztof Kozlowski "-state$": 5116dc56ebSKrzysztof Kozlowski oneOf: 5216dc56ebSKrzysztof Kozlowski - $ref: "#/$defs/qcom-sm8350-tlmm-state" 5316dc56ebSKrzysztof Kozlowski - patternProperties: 5416dc56ebSKrzysztof Kozlowski "-pins$": 5516dc56ebSKrzysztof Kozlowski $ref: "#/$defs/qcom-sm8350-tlmm-state" 5616dc56ebSKrzysztof Kozlowski additionalProperties: false 5716dc56ebSKrzysztof Kozlowski 5816dc56ebSKrzysztof Kozlowski$defs: 5916dc56ebSKrzysztof Kozlowski qcom-sm8350-tlmm-state: 6016dc56ebSKrzysztof Kozlowski type: object 6116dc56ebSKrzysztof Kozlowski description: 6216dc56ebSKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 6316dc56ebSKrzysztof Kozlowski Client device subnodes use below standard properties. 6416dc56ebSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 65*a3c355b5SKrzysztof Kozlowski unevaluatedProperties: false 6616dc56ebSKrzysztof Kozlowski 6716dc56ebSKrzysztof Kozlowski properties: 6816dc56ebSKrzysztof Kozlowski pins: 6916dc56ebSKrzysztof Kozlowski description: 7016dc56ebSKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 7116dc56ebSKrzysztof Kozlowski subnode. 7216dc56ebSKrzysztof Kozlowski items: 7316dc56ebSKrzysztof Kozlowski oneOf: 7445277153SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-2])$" 7516dc56ebSKrzysztof Kozlowski - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] 7616dc56ebSKrzysztof Kozlowski minItems: 1 7716dc56ebSKrzysztof Kozlowski maxItems: 36 7816dc56ebSKrzysztof Kozlowski 7916dc56ebSKrzysztof Kozlowski function: 8016dc56ebSKrzysztof Kozlowski description: 8116dc56ebSKrzysztof Kozlowski Specify the alternative function to be configured for the specified 8216dc56ebSKrzysztof Kozlowski pins. 8316dc56ebSKrzysztof Kozlowski 8416dc56ebSKrzysztof Kozlowski enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, 8516dc56ebSKrzysztof Kozlowski cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, 8616dc56ebSKrzysztof Kozlowski cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 8716dc56ebSKrzysztof Kozlowski ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, 8816dc56ebSKrzysztof Kozlowski gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, 8916dc56ebSKrzysztof Kozlowski mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, 9016dc56ebSKrzysztof Kozlowski mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, 9116dc56ebSKrzysztof Kozlowski mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, 9216dc56ebSKrzysztof Kozlowski mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, 9316dc56ebSKrzysztof Kozlowski mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, 9416dc56ebSKrzysztof Kozlowski mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator, 9516dc56ebSKrzysztof Kozlowski pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk, 9616dc56ebSKrzysztof Kozlowski pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, 9716dc56ebSKrzysztof Kozlowski qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, 9816dc56ebSKrzysztof Kozlowski qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0, 9916dc56ebSKrzysztof Kozlowski qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, 10016dc56ebSKrzysztof Kozlowski qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, 10116dc56ebSKrzysztof Kozlowski qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, 10216dc56ebSKrzysztof Kozlowski qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, 10316dc56ebSKrzysztof Kozlowski sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, 10416dc56ebSKrzysztof Kozlowski tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, 10516dc56ebSKrzysztof Kozlowski uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present, 10616dc56ebSKrzysztof Kozlowski uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] 10716dc56ebSKrzysztof Kozlowski 10816dc56ebSKrzysztof Kozlowski required: 10916dc56ebSKrzysztof Kozlowski - pins 11016dc56ebSKrzysztof Kozlowski 11116dc56ebSKrzysztof Kozlowskiexamples: 11216dc56ebSKrzysztof Kozlowski - | 11316dc56ebSKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 11416dc56ebSKrzysztof Kozlowski pinctrl@f100000 { 11516dc56ebSKrzysztof Kozlowski compatible = "qcom,sm8350-tlmm"; 11616dc56ebSKrzysztof Kozlowski reg = <0x0f100000 0x300000>; 11716dc56ebSKrzysztof Kozlowski interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 11816dc56ebSKrzysztof Kozlowski gpio-controller; 11916dc56ebSKrzysztof Kozlowski #gpio-cells = <2>; 12016dc56ebSKrzysztof Kozlowski interrupt-controller; 12116dc56ebSKrzysztof Kozlowski #interrupt-cells = <2>; 1226f4e10ffSKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 204>; /* GPIOs + ufs_reset */ 12316dc56ebSKrzysztof Kozlowski 12416dc56ebSKrzysztof Kozlowski gpio-wo-subnode-state { 12516dc56ebSKrzysztof Kozlowski pins = "gpio1"; 12616dc56ebSKrzysztof Kozlowski function = "gpio"; 12716dc56ebSKrzysztof Kozlowski }; 12816dc56ebSKrzysztof Kozlowski 12916dc56ebSKrzysztof Kozlowski uart-w-subnodes-state { 13016dc56ebSKrzysztof Kozlowski rx-pins { 13116dc56ebSKrzysztof Kozlowski pins = "gpio18"; 13216dc56ebSKrzysztof Kozlowski function = "qup3"; 13316dc56ebSKrzysztof Kozlowski bias-pull-up; 13416dc56ebSKrzysztof Kozlowski }; 13516dc56ebSKrzysztof Kozlowski 13616dc56ebSKrzysztof Kozlowski tx-pins { 13716dc56ebSKrzysztof Kozlowski pins = "gpio19"; 13816dc56ebSKrzysztof Kozlowski function = "qup3"; 13916dc56ebSKrzysztof Kozlowski bias-disable; 14016dc56ebSKrzysztof Kozlowski }; 14116dc56ebSKrzysztof Kozlowski }; 14216dc56ebSKrzysztof Kozlowski }; 14316dc56ebSKrzysztof Kozlowski... 144