18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28bab661aSEmmanuel Vadot%YAML 1.2 38bab661aSEmmanuel Vadot--- 48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sm6350-tlmm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM6350 TLMM block 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Konrad Dybcio <konrad.dybcio@somainline.org> 118bab661aSEmmanuel Vadot 128bab661aSEmmanuel Vadotdescription: 138bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SM6350 SoC. 148bab661aSEmmanuel Vadot 158bab661aSEmmanuel VadotallOf: 168bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 178bab661aSEmmanuel Vadot 188bab661aSEmmanuel Vadotproperties: 198bab661aSEmmanuel Vadot compatible: 208bab661aSEmmanuel Vadot const: qcom,sm6350-tlmm 218bab661aSEmmanuel Vadot 228bab661aSEmmanuel Vadot reg: 238bab661aSEmmanuel Vadot maxItems: 1 248bab661aSEmmanuel Vadot 25cb7aa33aSEmmanuel Vadot interrupts: 26cb7aa33aSEmmanuel Vadot minItems: 9 27cb7aa33aSEmmanuel Vadot maxItems: 9 28cb7aa33aSEmmanuel Vadot 29cb7aa33aSEmmanuel Vadot gpio-reserved-ranges: 30cb7aa33aSEmmanuel Vadot minItems: 1 31cb7aa33aSEmmanuel Vadot maxItems: 78 32cb7aa33aSEmmanuel Vadot 33cb7aa33aSEmmanuel Vadot gpio-line-names: 34cb7aa33aSEmmanuel Vadot maxItems: 156 35cb7aa33aSEmmanuel Vadot 368bab661aSEmmanuel VadotpatternProperties: 378bab661aSEmmanuel Vadot "-state$": 388bab661aSEmmanuel Vadot oneOf: 398bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sm6350-tlmm-state" 408bab661aSEmmanuel Vadot - patternProperties: 418bab661aSEmmanuel Vadot "-pins$": 428bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sm6350-tlmm-state" 438bab661aSEmmanuel Vadot additionalProperties: false 448bab661aSEmmanuel Vadot 458bab661aSEmmanuel Vadot$defs: 468bab661aSEmmanuel Vadot qcom-sm6350-tlmm-state: 478bab661aSEmmanuel Vadot type: object 488bab661aSEmmanuel Vadot description: 498bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 508bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 518bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 52fac71e4eSEmmanuel Vadot unevaluatedProperties: false 538bab661aSEmmanuel Vadot 548bab661aSEmmanuel Vadot properties: 558bab661aSEmmanuel Vadot pins: 568bab661aSEmmanuel Vadot description: 578bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 588bab661aSEmmanuel Vadot subnode. 598bab661aSEmmanuel Vadot items: 608bab661aSEmmanuel Vadot oneOf: 61cb7aa33aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-5])$" 628bab661aSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] 638bab661aSEmmanuel Vadot minItems: 1 648bab661aSEmmanuel Vadot maxItems: 36 658bab661aSEmmanuel Vadot 668bab661aSEmmanuel Vadot function: 678bab661aSEmmanuel Vadot description: 688bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 698bab661aSEmmanuel Vadot pins. 708bab661aSEmmanuel Vadot 718bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, atest_char2, 728bab661aSEmmanuel Vadot atest_char3, atest_tsens, atest_tsens2, atest_usb1, atest_usb10, atest_usb11, 738bab661aSEmmanuel Vadot atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, atest_usb22, 748bab661aSEmmanuel Vadot atest_usb23, audio_ref, btfm_slimbus, cam_mclk0, cam_mclk1, cam_mclk2, cam_mclk3, 758bab661aSEmmanuel Vadot cam_mclk4, cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, 768bab661aSEmmanuel Vadot cci_timer4, cri_trng, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, 778bab661aSEmmanuel Vadot dp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, gp_pdm1, gp_pdm2, gpio, 788bab661aSEmmanuel Vadot gps_tx, ibi_i3c, jitter_bist, ldo_en, ldo_update, lpass_ext, m_voc, mclk, 798bab661aSEmmanuel Vadot mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s_0, mi2s_1, mi2s_2, 808bab661aSEmmanuel Vadot mss_lte, nav_gpio, nav_pps, pa_indicator, pcie0_clk, phase_flag0, phase_flag1, 818bab661aSEmmanuel Vadot phase_flag10, phase_flag11, phase_flag12, phase_flag13, phase_flag14, phase_flag15, 828bab661aSEmmanuel Vadot phase_flag16, phase_flag17, phase_flag18, phase_flag19, phase_flag2, phase_flag20, 838bab661aSEmmanuel Vadot phase_flag21, phase_flag22, phase_flag23, phase_flag24, phase_flag25, phase_flag26, 848bab661aSEmmanuel Vadot phase_flag27, phase_flag28, phase_flag29, phase_flag3, phase_flag30, phase_flag31, 858bab661aSEmmanuel Vadot phase_flag4, phase_flag5, phase_flag6, phase_flag7, phase_flag8, phase_flag9, 868bab661aSEmmanuel Vadot pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti, qdss_gpio, qdss_gpio0, 878bab661aSEmmanuel Vadot qdss_gpio1, qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13, qdss_gpio14, 888bab661aSEmmanuel Vadot qdss_gpio15, qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6, 898bab661aSEmmanuel Vadot qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink0_enable, qlink0_request, qlink0_wmss, 908bab661aSEmmanuel Vadot qlink1_enable, qlink1_request, qlink1_wmss, qup00, qup01, qup02, qup10, qup11, 918bab661aSEmmanuel Vadot qup12, qup13_f1, qup13_f2, qup14, rffe0_clk, rffe0_data, rffe1_clk, rffe1_data, 928bab661aSEmmanuel Vadot rffe2_clk, rffe2_data, rffe3_clk, rffe3_data, rffe4_clk, rffe4_data, sd_write, 938bab661aSEmmanuel Vadot sdc1_tb, sdc2_tb, sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1, 948bab661aSEmmanuel Vadot tsense_pwm2, uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, 958bab661aSEmmanuel Vadot uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1, 968bab661aSEmmanuel Vadot wlan2_adc0, wlan2_adc1, ] 978bab661aSEmmanuel Vadot 988bab661aSEmmanuel Vadot required: 998bab661aSEmmanuel Vadot - pins 1008bab661aSEmmanuel Vadot 101*8d13bc63SEmmanuel Vadotrequired: 102*8d13bc63SEmmanuel Vadot - compatible 103*8d13bc63SEmmanuel Vadot - reg 104*8d13bc63SEmmanuel Vadot 105*8d13bc63SEmmanuel VadotunevaluatedProperties: false 106*8d13bc63SEmmanuel Vadot 1078bab661aSEmmanuel Vadotexamples: 1088bab661aSEmmanuel Vadot - | 1098bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1108bab661aSEmmanuel Vadot pinctrl@f100000 { 1118bab661aSEmmanuel Vadot compatible = "qcom,sm6350-tlmm"; 1128bab661aSEmmanuel Vadot reg = <0x0f100000 0x300000>; 113cb7aa33aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>, 114cb7aa33aSEmmanuel Vadot <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>, 115cb7aa33aSEmmanuel Vadot <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>, 116cb7aa33aSEmmanuel Vadot <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, 117cb7aa33aSEmmanuel Vadot <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>, 118cb7aa33aSEmmanuel Vadot <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, 119cb7aa33aSEmmanuel Vadot <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, 120cb7aa33aSEmmanuel Vadot <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, 121cb7aa33aSEmmanuel Vadot <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; 122cb7aa33aSEmmanuel Vadot 1238bab661aSEmmanuel Vadot gpio-controller; 1248bab661aSEmmanuel Vadot #gpio-cells = <2>; 1258bab661aSEmmanuel Vadot interrupt-controller; 1268bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1278bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 157>; 1288bab661aSEmmanuel Vadot 1298bab661aSEmmanuel Vadot gpio-wo-subnode-state { 1308bab661aSEmmanuel Vadot pins = "gpio1"; 1318bab661aSEmmanuel Vadot function = "gpio"; 1328bab661aSEmmanuel Vadot }; 1338bab661aSEmmanuel Vadot 1348bab661aSEmmanuel Vadot uart-w-subnodes-state { 1358bab661aSEmmanuel Vadot rx-pins { 1368bab661aSEmmanuel Vadot pins = "gpio25"; 1378bab661aSEmmanuel Vadot function = "qup13_f2"; 1388bab661aSEmmanuel Vadot bias-disable; 1398bab661aSEmmanuel Vadot }; 1408bab661aSEmmanuel Vadot 1418bab661aSEmmanuel Vadot tx-pins { 1428bab661aSEmmanuel Vadot pins = "gpio26"; 1438bab661aSEmmanuel Vadot function = "qup13_f2"; 1448bab661aSEmmanuel Vadot bias-disable; 1458bab661aSEmmanuel Vadot }; 1468bab661aSEmmanuel Vadot }; 1478bab661aSEmmanuel Vadot }; 1488bab661aSEmmanuel Vadot... 149