115dfa161SAbel Vesa# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 215dfa161SAbel Vesa%YAML 1.2 315dfa161SAbel Vesa--- 415dfa161SAbel Vesa$id: http://devicetree.org/schemas/pinctrl/qcom,sm8550-tlmm.yaml# 515dfa161SAbel Vesa$schema: http://devicetree.org/meta-schemas/core.yaml# 615dfa161SAbel Vesa 715dfa161SAbel Vesatitle: Qualcomm Technologies, Inc. SM8550 TLMM block 815dfa161SAbel Vesa 915dfa161SAbel Vesamaintainers: 1015dfa161SAbel Vesa - Abel Vesa <abel.vesa@linaro.org> 1115dfa161SAbel Vesa 1215dfa161SAbel Vesadescription: 1315dfa161SAbel Vesa Top Level Mode Multiplexer pin controller in Qualcomm SM8550 SoC. 1415dfa161SAbel Vesa 1515dfa161SAbel VesaallOf: 1615dfa161SAbel Vesa - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 1715dfa161SAbel Vesa 1815dfa161SAbel Vesaproperties: 1915dfa161SAbel Vesa compatible: 2015dfa161SAbel Vesa const: qcom,sm8550-tlmm 2115dfa161SAbel Vesa 2215dfa161SAbel Vesa reg: 2315dfa161SAbel Vesa maxItems: 1 2415dfa161SAbel Vesa 25fc19a564SKrzysztof Kozlowski interrupts: 26fc19a564SKrzysztof Kozlowski maxItems: 1 27fc19a564SKrzysztof Kozlowski 2815dfa161SAbel Vesa gpio-reserved-ranges: 2915dfa161SAbel Vesa minItems: 1 3015dfa161SAbel Vesa maxItems: 105 3115dfa161SAbel Vesa 3215dfa161SAbel Vesa gpio-line-names: 3315dfa161SAbel Vesa maxItems: 210 3415dfa161SAbel Vesa 3515dfa161SAbel VesapatternProperties: 3615dfa161SAbel Vesa "-state$": 3715dfa161SAbel Vesa oneOf: 3815dfa161SAbel Vesa - $ref: "#/$defs/qcom-sm8550-tlmm-state" 3915dfa161SAbel Vesa - patternProperties: 4015dfa161SAbel Vesa "-pins$": 4115dfa161SAbel Vesa $ref: "#/$defs/qcom-sm8550-tlmm-state" 4215dfa161SAbel Vesa additionalProperties: false 4315dfa161SAbel Vesa 4415dfa161SAbel Vesa$defs: 4515dfa161SAbel Vesa qcom-sm8550-tlmm-state: 4615dfa161SAbel Vesa type: object 4715dfa161SAbel Vesa description: 4815dfa161SAbel Vesa Pinctrl node's client devices use subnodes for desired pin configuration. 4915dfa161SAbel Vesa Client device subnodes use below standard properties. 5015dfa161SAbel Vesa $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 51152674abSKrzysztof Kozlowski unevaluatedProperties: false 5215dfa161SAbel Vesa 5315dfa161SAbel Vesa properties: 5415dfa161SAbel Vesa pins: 5515dfa161SAbel Vesa description: 5615dfa161SAbel Vesa List of gpio pins affected by the properties specified in this 5715dfa161SAbel Vesa subnode. 5815dfa161SAbel Vesa items: 5915dfa161SAbel Vesa oneOf: 6015dfa161SAbel Vesa - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" 6115dfa161SAbel Vesa - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 6215dfa161SAbel Vesa minItems: 1 6315dfa161SAbel Vesa maxItems: 36 6415dfa161SAbel Vesa 6515dfa161SAbel Vesa function: 6615dfa161SAbel Vesa description: 6715dfa161SAbel Vesa Specify the alternative function to be configured for the specified 6815dfa161SAbel Vesa pins. 6915dfa161SAbel Vesa enum: [ aon_cci, aoss_cti, atest_char, atest_usb, 7015dfa161SAbel Vesa audio_ext_mclk0, audio_ext_mclk1, audio_ref_clk, 7115dfa161SAbel Vesa cam_aon_mclk4, cam_mclk, cci_async_in, cci_i2c_scl, 7215dfa161SAbel Vesa cci_i2c_sda, cci_timer, cmu_rng, coex_uart1_rx, 7315dfa161SAbel Vesa coex_uart1_tx, coex_uart2_rx, coex_uart2_tx, 7415dfa161SAbel Vesa cri_trng, dbg_out_clk, ddr_bist_complete, 7515dfa161SAbel Vesa ddr_bist_fail, ddr_bist_start, ddr_bist_stop, 7615dfa161SAbel Vesa ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, 7715dfa161SAbel Vesa gcc_gp1, gcc_gp2, gcc_gp3, gpio, i2chub0_se0, 7815dfa161SAbel Vesa i2chub0_se1, i2chub0_se2, i2chub0_se3, i2chub0_se4, 7915dfa161SAbel Vesa i2chub0_se5, i2chub0_se6, i2chub0_se7, i2chub0_se8, 8015dfa161SAbel Vesa i2chub0_se9, i2s0_data0, i2s0_data1, i2s0_sck, 8115dfa161SAbel Vesa i2s0_ws, i2s1_data0, i2s1_data1, i2s1_sck, i2s1_ws, 8215dfa161SAbel Vesa ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0_out, 8315dfa161SAbel Vesa mdp_vsync1_out, mdp_vsync2_out, mdp_vsync3_out, 8415dfa161SAbel Vesa mdp_vsync_e, nav_gpio0, nav_gpio1, nav_gpio2, 8515dfa161SAbel Vesa pcie0_clk_req_n, pcie1_clk_req_n, phase_flag, 8615dfa161SAbel Vesa pll_bist_sync, pll_clk_aux, prng_rosc0, prng_rosc1, 8715dfa161SAbel Vesa prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, 8815dfa161SAbel Vesa qlink0_enable, qlink0_request, qlink0_wmss, 8915dfa161SAbel Vesa qlink1_enable, qlink1_request, qlink1_wmss, 9015dfa161SAbel Vesa qlink2_enable, qlink2_request, qlink2_wmss, 9115dfa161SAbel Vesa qspi0, qspi1, qspi2, qspi3, qspi_clk, qspi_cs, 9215dfa161SAbel Vesa qup1_se0, qup1_se1, qup1_se2, qup1_se3, qup1_se4, 9315dfa161SAbel Vesa qup1_se5, qup1_se6, qup1_se7, qup2_se0, 9415dfa161SAbel Vesa qup2_se0_l0_mira, qup2_se0_l0_mirb, qup2_se0_l1_mira, 9515dfa161SAbel Vesa qup2_se0_l1_mirb, qup2_se0_l2_mira, qup2_se0_l2_mirb, 9615dfa161SAbel Vesa qup2_se0_l3_mira, qup2_se0_l3_mirb, qup2_se1, 9715dfa161SAbel Vesa qup2_se2, qup2_se3, qup2_se4, qup2_se5, qup2_se6, 9815dfa161SAbel Vesa qup2_se7, sd_write_protect, sdc40, sdc41, sdc42, 9915dfa161SAbel Vesa sdc43, sdc4_clk, sdc4_cmd, tb_trig_sdc2, tb_trig_sdc4, 10015dfa161SAbel Vesa tgu_ch0_trigout, tgu_ch1_trigout, tgu_ch2_trigout, 10115dfa161SAbel Vesa tgu_ch3_trigout, tmess_prng0, tmess_prng1, tmess_prng2, 10215dfa161SAbel Vesa tmess_prng3, tsense_pwm1, tsense_pwm2, tsense_pwm3, 10315dfa161SAbel Vesa uim0_clk, uim0_data, uim0_present, uim0_reset, 10415dfa161SAbel Vesa uim1_clk, uim1_data, uim1_present, uim1_reset, 10515dfa161SAbel Vesa usb1_hs, usb_phy, vfr_0, vfr_1, vsense_trigger_mirnat ] 10615dfa161SAbel Vesa 10715dfa161SAbel Vesa required: 10815dfa161SAbel Vesa - pins 10915dfa161SAbel Vesa 11015dfa161SAbel Vesarequired: 11115dfa161SAbel Vesa - compatible 11215dfa161SAbel Vesa - reg 11315dfa161SAbel Vesa 114*79d770afSKrzysztof KozlowskiunevaluatedProperties: false 11515dfa161SAbel Vesa 11615dfa161SAbel Vesaexamples: 11715dfa161SAbel Vesa - | 11815dfa161SAbel Vesa #include <dt-bindings/interrupt-controller/arm-gic.h> 11915dfa161SAbel Vesa tlmm: pinctrl@f100000 { 12015dfa161SAbel Vesa compatible = "qcom,sm8550-tlmm"; 12115dfa161SAbel Vesa reg = <0x0f100000 0x300000>; 12215dfa161SAbel Vesa gpio-controller; 12315dfa161SAbel Vesa #gpio-cells = <2>; 12415dfa161SAbel Vesa gpio-ranges = <&tlmm 0 0 211>; 12515dfa161SAbel Vesa interrupt-controller; 12615dfa161SAbel Vesa #interrupt-cells = <2>; 12715dfa161SAbel Vesa interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 12815dfa161SAbel Vesa 12915dfa161SAbel Vesa gpio-wo-state { 13015dfa161SAbel Vesa pins = "gpio1"; 13115dfa161SAbel Vesa function = "gpio"; 13215dfa161SAbel Vesa }; 13315dfa161SAbel Vesa 13415dfa161SAbel Vesa uart-w-state { 13515dfa161SAbel Vesa rx-pins { 13615dfa161SAbel Vesa pins = "gpio26"; 13715dfa161SAbel Vesa function = "qup2_se7"; 13815dfa161SAbel Vesa bias-pull-up; 13915dfa161SAbel Vesa }; 14015dfa161SAbel Vesa 14115dfa161SAbel Vesa tx-pins { 14215dfa161SAbel Vesa pins = "gpio27"; 14315dfa161SAbel Vesa function = "qup2_se7"; 14415dfa161SAbel Vesa bias-disable; 14515dfa161SAbel Vesa }; 14615dfa161SAbel Vesa }; 14715dfa161SAbel Vesa }; 14815dfa161SAbel Vesa... 149