12064b662SKonrad Dybcio# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22064b662SKonrad Dybcio%YAML 1.2 32064b662SKonrad Dybcio--- 42064b662SKonrad Dybcio$id: http://devicetree.org/schemas/pinctrl/qcom,sm6375-tlmm.yaml# 52064b662SKonrad Dybcio$schema: http://devicetree.org/meta-schemas/core.yaml# 62064b662SKonrad Dybcio 72064b662SKonrad Dybciotitle: Qualcomm Technologies, Inc. SM6375 TLMM block 82064b662SKonrad Dybcio 92064b662SKonrad Dybciomaintainers: 102064b662SKonrad Dybcio - Konrad Dybcio <konrad.dybcio@somainline.org> 112064b662SKonrad Dybcio 12fb45ee0aSKrzysztof Kozlowskidescription: 13fb45ee0aSKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm SM6375 SoC. 142064b662SKonrad Dybcio 152064b662SKonrad DybcioallOf: 162064b662SKonrad Dybcio - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 172064b662SKonrad Dybcio 182064b662SKonrad Dybcioproperties: 192064b662SKonrad Dybcio compatible: 202064b662SKonrad Dybcio const: qcom,sm6375-tlmm 212064b662SKonrad Dybcio 222064b662SKonrad Dybcio reg: 232064b662SKonrad Dybcio maxItems: 1 242064b662SKonrad Dybcio 2512a18bb7SKrzysztof Kozlowski interrupts: 2612a18bb7SKrzysztof Kozlowski maxItems: 1 2712a18bb7SKrzysztof Kozlowski 282064b662SKonrad Dybcio interrupt-controller: true 29fb45ee0aSKrzysztof Kozlowski "#interrupt-cells": true 302064b662SKonrad Dybcio gpio-controller: true 312064b662SKonrad Dybcio gpio-reserved-ranges: true 32fb45ee0aSKrzysztof Kozlowski "#gpio-cells": true 332064b662SKonrad Dybcio gpio-ranges: true 342064b662SKonrad Dybcio wakeup-parent: true 352064b662SKonrad Dybcio 362064b662SKonrad Dybciorequired: 372064b662SKonrad Dybcio - compatible 382064b662SKonrad Dybcio - reg 392064b662SKonrad Dybcio 402064b662SKonrad DybcioadditionalProperties: false 412064b662SKonrad Dybcio 422064b662SKonrad DybciopatternProperties: 43fb45ee0aSKrzysztof Kozlowski "-state$": 442064b662SKonrad Dybcio oneOf: 452064b662SKonrad Dybcio - $ref: "#/$defs/qcom-sm6375-tlmm-state" 462064b662SKonrad Dybcio - patternProperties: 4751af3784SKrzysztof Kozlowski "-pins$": 482064b662SKonrad Dybcio $ref: "#/$defs/qcom-sm6375-tlmm-state" 4951af3784SKrzysztof Kozlowski additionalProperties: false 502064b662SKonrad Dybcio 512064b662SKonrad Dybcio$defs: 522064b662SKonrad Dybcio qcom-sm6375-tlmm-state: 532064b662SKonrad Dybcio type: object 542064b662SKonrad Dybcio description: 552064b662SKonrad Dybcio Pinctrl node's client devices use subnodes for desired pin configuration. 562064b662SKonrad Dybcio Client device subnodes use below standard properties. 57b71b285aSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 582064b662SKonrad Dybcio 592064b662SKonrad Dybcio properties: 602064b662SKonrad Dybcio pins: 612064b662SKonrad Dybcio description: 622064b662SKonrad Dybcio List of gpio pins affected by the properties specified in this 632064b662SKonrad Dybcio subnode. 642064b662SKonrad Dybcio items: 652064b662SKonrad Dybcio oneOf: 66*a51c1f02SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-5])$" 672064b662SKonrad Dybcio - enum: [ ufs_reset, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, 682064b662SKonrad Dybcio sdc2_cmd, sdc2_data ] 692064b662SKonrad Dybcio minItems: 1 702064b662SKonrad Dybcio maxItems: 36 712064b662SKonrad Dybcio 722064b662SKonrad Dybcio function: 732064b662SKonrad Dybcio description: 742064b662SKonrad Dybcio Specify the alternative function to be configured for the specified 752064b662SKonrad Dybcio pins. 762064b662SKonrad Dybcio 772064b662SKonrad Dybcio enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, 782064b662SKonrad Dybcio atest_char2, atest_char3, atest_tsens, atest_tsens2, 792064b662SKonrad Dybcio atest_usb1, atest_usb10, atest_usb11, atest_usb12, 802064b662SKonrad Dybcio atest_usb13, atest_usb2, atest_usb20, atest_usb21, 812064b662SKonrad Dybcio atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk, 822064b662SKonrad Dybcio cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, 832064b662SKonrad Dybcio cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist, 842064b662SKonrad Dybcio ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, 852064b662SKonrad Dybcio gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, gp_pdm1, gp_pdm2, gpio, 862064b662SKonrad Dybcio gps_tx, ibi_i3c, jitter_bist, ldo_en, ldo_update, lpass_ext, 872064b662SKonrad Dybcio m_voc, mclk, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, 882064b662SKonrad Dybcio mdp_vsync3, mi2s_0, mi2s_1, mi2s_2, mss_lte, nav_gpio, 892064b662SKonrad Dybcio nav_pps, pa_indicator, phase_flag0, phase_flag1, phase_flag10, 902064b662SKonrad Dybcio phase_flag11, phase_flag12, phase_flag13, phase_flag14, 912064b662SKonrad Dybcio phase_flag15, phase_flag16, phase_flag17, phase_flag18, 922064b662SKonrad Dybcio phase_flag19, phase_flag2, phase_flag20, phase_flag21, 932064b662SKonrad Dybcio phase_flag22, phase_flag23, phase_flag24, phase_flag25, 942064b662SKonrad Dybcio phase_flag26, phase_flag27, phase_flag28, phase_flag29, 952064b662SKonrad Dybcio phase_flag3, phase_flag30, phase_flag31, phase_flag4, 962064b662SKonrad Dybcio phase_flag5, phase_flag6, phase_flag7, phase_flag8, 972064b662SKonrad Dybcio phase_flag9, pll_bist, pll_bypassnl, pll_clk, pll_reset, 982064b662SKonrad Dybcio prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, 992064b662SKonrad Dybcio qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10, qdss_gpio11, 1002064b662SKonrad Dybcio qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15, 1012064b662SKonrad Dybcio qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6, 1022064b662SKonrad Dybcio qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink0_enable, 1032064b662SKonrad Dybcio qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, 1042064b662SKonrad Dybcio qlink1_wmss, qup00, qup01, qup02, qup10, qup11_f1, qup11_f2, 1052064b662SKonrad Dybcio qup12, qup13_f1, qup13_f2, qup14, sd_write, sdc1_tb, sdc2_tb, 1062064b662SKonrad Dybcio sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1, 1072064b662SKonrad Dybcio tsense_pwm2, uim1_clk, uim1_data, uim1_present, uim1_reset, 1082064b662SKonrad Dybcio uim2_clk, uim2_data, uim2_present, uim2_reset, usb2phy_ac, 1092064b662SKonrad Dybcio usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1, 1102064b662SKonrad Dybcio wlan2_adc0, wlan2_adc1 ] 1112064b662SKonrad Dybcio 1122064b662SKonrad Dybcio 1132064b662SKonrad Dybcio bias-disable: true 1142064b662SKonrad Dybcio bias-pull-down: true 1152064b662SKonrad Dybcio bias-pull-up: true 1162064b662SKonrad Dybcio drive-strength: true 1172064b662SKonrad Dybcio input-enable: true 1182064b662SKonrad Dybcio output-high: true 1192064b662SKonrad Dybcio output-low: true 1202064b662SKonrad Dybcio 1212064b662SKonrad Dybcio required: 1222064b662SKonrad Dybcio - pins 123c8441085SKrzysztof Kozlowski 1242064b662SKonrad Dybcio additionalProperties: false 1252064b662SKonrad Dybcio 1262064b662SKonrad Dybcioexamples: 1272064b662SKonrad Dybcio - | 1282064b662SKonrad Dybcio #include <dt-bindings/interrupt-controller/arm-gic.h> 1292064b662SKonrad Dybcio pinctrl@500000 { 1302064b662SKonrad Dybcio compatible = "qcom,sm6375-tlmm"; 1312064b662SKonrad Dybcio reg = <0x00500000 0x800000>; 1322064b662SKonrad Dybcio interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; 1332064b662SKonrad Dybcio gpio-controller; 1342064b662SKonrad Dybcio #gpio-cells = <2>; 1352064b662SKonrad Dybcio interrupt-controller; 1362064b662SKonrad Dybcio #interrupt-cells = <2>; 137*a51c1f02SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 157>; /* GPIOs + ufs_reset */ 1382064b662SKonrad Dybcio 1392064b662SKonrad Dybcio gpio-wo-subnode-state { 1402064b662SKonrad Dybcio pins = "gpio1"; 1412064b662SKonrad Dybcio function = "gpio"; 1422064b662SKonrad Dybcio }; 1432064b662SKonrad Dybcio 1442064b662SKonrad Dybcio uart-w-subnodes-state { 14551af3784SKrzysztof Kozlowski rx-pins { 1462064b662SKonrad Dybcio pins = "gpio18"; 1472064b662SKonrad Dybcio function = "qup13_f2"; 1482064b662SKonrad Dybcio bias-pull-up; 1492064b662SKonrad Dybcio }; 1502064b662SKonrad Dybcio 15151af3784SKrzysztof Kozlowski tx-pins { 1522064b662SKonrad Dybcio pins = "gpio19"; 1532064b662SKonrad Dybcio function = "qup13_f2"; 1542064b662SKonrad Dybcio bias-disable; 1552064b662SKonrad Dybcio }; 1562064b662SKonrad Dybcio }; 1572064b662SKonrad Dybcio }; 1582064b662SKonrad Dybcio... 159