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: 10*0710c3d3SKonrad Dybcio - Konrad Dybcio <konradybcio@kernel.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 gpio-reserved-ranges: true 292064b662SKonrad Dybcio 302064b662SKonrad DybciopatternProperties: 31fb45ee0aSKrzysztof Kozlowski "-state$": 322064b662SKonrad Dybcio oneOf: 332064b662SKonrad Dybcio - $ref: "#/$defs/qcom-sm6375-tlmm-state" 342064b662SKonrad Dybcio - patternProperties: 3551af3784SKrzysztof Kozlowski "-pins$": 362064b662SKonrad Dybcio $ref: "#/$defs/qcom-sm6375-tlmm-state" 3751af3784SKrzysztof Kozlowski additionalProperties: false 382064b662SKonrad Dybcio 392064b662SKonrad Dybcio$defs: 402064b662SKonrad Dybcio qcom-sm6375-tlmm-state: 412064b662SKonrad Dybcio type: object 422064b662SKonrad Dybcio description: 432064b662SKonrad Dybcio Pinctrl node's client devices use subnodes for desired pin configuration. 442064b662SKonrad Dybcio Client device subnodes use below standard properties. 45b71b285aSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 4613bb968bSKrzysztof Kozlowski unevaluatedProperties: false 472064b662SKonrad Dybcio 482064b662SKonrad Dybcio properties: 492064b662SKonrad Dybcio pins: 502064b662SKonrad Dybcio description: 512064b662SKonrad Dybcio List of gpio pins affected by the properties specified in this 522064b662SKonrad Dybcio subnode. 532064b662SKonrad Dybcio items: 542064b662SKonrad Dybcio oneOf: 55a51c1f02SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-5])$" 562064b662SKonrad Dybcio - enum: [ ufs_reset, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, 572064b662SKonrad Dybcio sdc2_cmd, sdc2_data ] 582064b662SKonrad Dybcio minItems: 1 592064b662SKonrad Dybcio maxItems: 36 602064b662SKonrad Dybcio 612064b662SKonrad Dybcio function: 622064b662SKonrad Dybcio description: 632064b662SKonrad Dybcio Specify the alternative function to be configured for the specified 642064b662SKonrad Dybcio pins. 652064b662SKonrad Dybcio 662064b662SKonrad Dybcio enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, 672064b662SKonrad Dybcio atest_char2, atest_char3, atest_tsens, atest_tsens2, 682064b662SKonrad Dybcio atest_usb1, atest_usb10, atest_usb11, atest_usb12, 692064b662SKonrad Dybcio atest_usb13, atest_usb2, atest_usb20, atest_usb21, 702064b662SKonrad Dybcio atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk, 712064b662SKonrad Dybcio cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, 722064b662SKonrad Dybcio cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist, 732064b662SKonrad Dybcio ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, 742064b662SKonrad Dybcio gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, gp_pdm1, gp_pdm2, gpio, 752064b662SKonrad Dybcio gps_tx, ibi_i3c, jitter_bist, ldo_en, ldo_update, lpass_ext, 762064b662SKonrad Dybcio m_voc, mclk, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, 772064b662SKonrad Dybcio mdp_vsync3, mi2s_0, mi2s_1, mi2s_2, mss_lte, nav_gpio, 782064b662SKonrad Dybcio nav_pps, pa_indicator, phase_flag0, phase_flag1, phase_flag10, 792064b662SKonrad Dybcio phase_flag11, phase_flag12, phase_flag13, phase_flag14, 802064b662SKonrad Dybcio phase_flag15, phase_flag16, phase_flag17, phase_flag18, 812064b662SKonrad Dybcio phase_flag19, phase_flag2, phase_flag20, phase_flag21, 822064b662SKonrad Dybcio phase_flag22, phase_flag23, phase_flag24, phase_flag25, 832064b662SKonrad Dybcio phase_flag26, phase_flag27, phase_flag28, phase_flag29, 842064b662SKonrad Dybcio phase_flag3, phase_flag30, phase_flag31, phase_flag4, 852064b662SKonrad Dybcio phase_flag5, phase_flag6, phase_flag7, phase_flag8, 862064b662SKonrad Dybcio phase_flag9, pll_bist, pll_bypassnl, pll_clk, pll_reset, 872064b662SKonrad Dybcio prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, 882064b662SKonrad Dybcio qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10, qdss_gpio11, 892064b662SKonrad Dybcio qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15, 902064b662SKonrad Dybcio qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6, 912064b662SKonrad Dybcio qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink0_enable, 922064b662SKonrad Dybcio qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, 932064b662SKonrad Dybcio qlink1_wmss, qup00, qup01, qup02, qup10, qup11_f1, qup11_f2, 942064b662SKonrad Dybcio qup12, qup13_f1, qup13_f2, qup14, sd_write, sdc1_tb, sdc2_tb, 952064b662SKonrad Dybcio sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1, 962064b662SKonrad Dybcio tsense_pwm2, uim1_clk, uim1_data, uim1_present, uim1_reset, 972064b662SKonrad Dybcio uim2_clk, uim2_data, uim2_present, uim2_reset, usb2phy_ac, 982064b662SKonrad Dybcio usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1, 992064b662SKonrad Dybcio wlan2_adc0, wlan2_adc1 ] 1002064b662SKonrad Dybcio 1012064b662SKonrad Dybcio required: 1022064b662SKonrad Dybcio - pins 103c8441085SKrzysztof Kozlowski 10479d770afSKrzysztof Kozlowskirequired: 10579d770afSKrzysztof Kozlowski - compatible 10679d770afSKrzysztof Kozlowski - reg 10779d770afSKrzysztof Kozlowski 10879d770afSKrzysztof KozlowskiunevaluatedProperties: false 10979d770afSKrzysztof Kozlowski 1102064b662SKonrad Dybcioexamples: 1112064b662SKonrad Dybcio - | 1122064b662SKonrad Dybcio #include <dt-bindings/interrupt-controller/arm-gic.h> 1132064b662SKonrad Dybcio pinctrl@500000 { 1142064b662SKonrad Dybcio compatible = "qcom,sm6375-tlmm"; 1152064b662SKonrad Dybcio reg = <0x00500000 0x800000>; 1162064b662SKonrad Dybcio interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; 1172064b662SKonrad Dybcio gpio-controller; 1182064b662SKonrad Dybcio #gpio-cells = <2>; 1192064b662SKonrad Dybcio interrupt-controller; 1202064b662SKonrad Dybcio #interrupt-cells = <2>; 121a51c1f02SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 157>; /* GPIOs + ufs_reset */ 1222064b662SKonrad Dybcio 1232064b662SKonrad Dybcio gpio-wo-subnode-state { 1242064b662SKonrad Dybcio pins = "gpio1"; 1252064b662SKonrad Dybcio function = "gpio"; 1262064b662SKonrad Dybcio }; 1272064b662SKonrad Dybcio 1282064b662SKonrad Dybcio uart-w-subnodes-state { 12951af3784SKrzysztof Kozlowski rx-pins { 1302064b662SKonrad Dybcio pins = "gpio18"; 1312064b662SKonrad Dybcio function = "qup13_f2"; 1322064b662SKonrad Dybcio bias-pull-up; 1332064b662SKonrad Dybcio }; 1342064b662SKonrad Dybcio 13551af3784SKrzysztof Kozlowski tx-pins { 1362064b662SKonrad Dybcio pins = "gpio19"; 1372064b662SKonrad Dybcio function = "qup13_f2"; 1382064b662SKonrad Dybcio bias-disable; 1392064b662SKonrad Dybcio }; 1402064b662SKonrad Dybcio }; 1412064b662SKonrad Dybcio }; 1422064b662SKonrad Dybcio... 143