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,sdm630-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm SDM630 and SDM660 TLMM pin controller 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 118bab661aSEmmanuel Vadot - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 128bab661aSEmmanuel Vadot 138bab661aSEmmanuel Vadotdescription: 148bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SDM630 and SDM660 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel VadotallOf: 178bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 188bab661aSEmmanuel Vadot 198bab661aSEmmanuel Vadotproperties: 208bab661aSEmmanuel Vadot compatible: 218bab661aSEmmanuel Vadot enum: 228bab661aSEmmanuel Vadot - qcom,sdm630-pinctrl 238bab661aSEmmanuel Vadot - qcom,sdm660-pinctrl 248bab661aSEmmanuel Vadot 258bab661aSEmmanuel Vadot reg: 268bab661aSEmmanuel Vadot maxItems: 3 278bab661aSEmmanuel Vadot 288bab661aSEmmanuel Vadot reg-names: 298bab661aSEmmanuel Vadot items: 308bab661aSEmmanuel Vadot - const: south 318bab661aSEmmanuel Vadot - const: center 328bab661aSEmmanuel Vadot - const: north 338bab661aSEmmanuel Vadot 34cb7aa33aSEmmanuel Vadot interrupts: 35cb7aa33aSEmmanuel Vadot maxItems: 1 36cb7aa33aSEmmanuel Vadot 378bab661aSEmmanuel Vadot gpio-reserved-ranges: 388bab661aSEmmanuel Vadot minItems: 1 398bab661aSEmmanuel Vadot maxItems: 57 408bab661aSEmmanuel Vadot 418bab661aSEmmanuel Vadot gpio-line-names: 428bab661aSEmmanuel Vadot maxItems: 114 438bab661aSEmmanuel Vadot 448bab661aSEmmanuel VadotpatternProperties: 458bab661aSEmmanuel Vadot "-state$": 468bab661aSEmmanuel Vadot oneOf: 478bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sdm630-tlmm-state" 488bab661aSEmmanuel Vadot - patternProperties: 498bab661aSEmmanuel Vadot "-pins$": 508bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sdm630-tlmm-state" 518bab661aSEmmanuel Vadot additionalProperties: false 528bab661aSEmmanuel Vadot 538bab661aSEmmanuel Vadot$defs: 548bab661aSEmmanuel Vadot qcom-sdm630-tlmm-state: 558bab661aSEmmanuel Vadot type: object 568bab661aSEmmanuel Vadot description: 578bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 588bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 598bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 60fac71e4eSEmmanuel Vadot unevaluatedProperties: false 618bab661aSEmmanuel Vadot 628bab661aSEmmanuel Vadot properties: 638bab661aSEmmanuel Vadot pins: 648bab661aSEmmanuel Vadot description: 658bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 668bab661aSEmmanuel Vadot subnode. 678bab661aSEmmanuel Vadot items: 688bab661aSEmmanuel Vadot oneOf: 698bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-3])$" 708bab661aSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, 718bab661aSEmmanuel Vadot sdc2_cmd, sdc2_data ] 728bab661aSEmmanuel Vadot minItems: 1 738bab661aSEmmanuel Vadot maxItems: 36 748bab661aSEmmanuel Vadot 758bab661aSEmmanuel Vadot function: 768bab661aSEmmanuel Vadot description: 778bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 788bab661aSEmmanuel Vadot pins. 798bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, 808bab661aSEmmanuel Vadot atest_char2, atest_char3, atest_gpsadc0, atest_gpsadc1, 818bab661aSEmmanuel Vadot atest_tsens, atest_tsens2, atest_usb1, atest_usb10, 828bab661aSEmmanuel Vadot atest_usb11, atest_usb12, atest_usb13, atest_usb2, atest_usb20, 838bab661aSEmmanuel Vadot atest_usb21, atest_usb22, atest_usb23, audio_ref, bimc_dte0, 848bab661aSEmmanuel Vadot bimc_dte1, blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, 858bab661aSEmmanuel Vadot blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8_a, blsp_i2c8_b, 868bab661aSEmmanuel Vadot blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi3_cs1, blsp_spi3_cs2, 878bab661aSEmmanuel Vadot blsp_spi4, blsp_spi5, blsp_spi6, blsp_spi7, blsp_spi8_a, 888bab661aSEmmanuel Vadot blsp_spi8_b, blsp_spi8_cs1, blsp_spi8_cs2, blsp_uart1, 898bab661aSEmmanuel Vadot blsp_uart2, blsp_uart5, blsp_uart6_a, blsp_uart6_b, blsp_uim1, 908bab661aSEmmanuel Vadot blsp_uim2, blsp_uim5, blsp_uim6, cam_mclk, cci_async, cci_i2c, 918bab661aSEmmanuel Vadot cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, gcc_gp1, 928bab661aSEmmanuel Vadot gcc_gp2, gcc_gp3, gpio, gps_tx_a, gps_tx_b, gps_tx_c, 938bab661aSEmmanuel Vadot isense_dbg, jitter_bist, ldo_en, ldo_update, m_voc, mdp_vsync, 948bab661aSEmmanuel Vadot mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, mss_lte, 958bab661aSEmmanuel Vadot nav_pps_a, nav_pps_b, nav_pps_c, pa_indicator, phase_flag0, 968bab661aSEmmanuel Vadot phase_flag1, phase_flag10, phase_flag11, phase_flag12, 978bab661aSEmmanuel Vadot phase_flag13, phase_flag14, phase_flag15, phase_flag16, 988bab661aSEmmanuel Vadot phase_flag17, phase_flag18, phase_flag19, phase_flag2, 998bab661aSEmmanuel Vadot phase_flag20, phase_flag21, phase_flag22, phase_flag23, 1008bab661aSEmmanuel Vadot phase_flag24, phase_flag25, phase_flag26, phase_flag27, 1018bab661aSEmmanuel Vadot phase_flag28, phase_flag29, phase_flag3, phase_flag30, 1028bab661aSEmmanuel Vadot phase_flag31, phase_flag4, phase_flag5, phase_flag6, 1038bab661aSEmmanuel Vadot phase_flag7, phase_flag8, phase_flag9, pll_bypassnl, pll_reset, 1048bab661aSEmmanuel Vadot pri_mi2s, pri_mi2s_ws, prng_rosc, pwr_crypto, pwr_modem, 1058bab661aSEmmanuel Vadot pwr_nav, qdss_cti0_a, qdss_cti0_b, qdss_cti1_a, qdss_cti1_b, 1068bab661aSEmmanuel Vadot qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10, qdss_gpio11, 1078bab661aSEmmanuel Vadot qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15, qdss_gpio2, 1088bab661aSEmmanuel Vadot qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6, qdss_gpio7, 1098bab661aSEmmanuel Vadot qdss_gpio8, qdss_gpio9, qlink_enable, qlink_request, qspi_clk, 1108bab661aSEmmanuel Vadot qspi_cs, qspi_data0, qspi_data1, qspi_data2, qspi_data3, 1118bab661aSEmmanuel Vadot qspi_resetn, sec_mi2s, sndwire_clk, sndwire_data, sp_cmu, 1128bab661aSEmmanuel Vadot ssc_irq, tgu_ch0, tgu_ch1, tsense_pwm1, tsense_pwm2, uim1_clk, 1138bab661aSEmmanuel Vadot uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, 1148bab661aSEmmanuel Vadot uim2_present, uim2_reset, uim_batt, vfr_1, vsense_clkout, 1158bab661aSEmmanuel Vadot vsense_data0, vsense_data1, vsense_mode, wlan1_adc0, 1168bab661aSEmmanuel Vadot wlan1_adc1, wlan2_adc0, wlan2_adc1 ] 1178bab661aSEmmanuel Vadot 1188bab661aSEmmanuel Vadot required: 1198bab661aSEmmanuel Vadot - pins 1208bab661aSEmmanuel Vadot 1218bab661aSEmmanuel Vadotrequired: 1228bab661aSEmmanuel Vadot - compatible 1238bab661aSEmmanuel Vadot - reg 1248bab661aSEmmanuel Vadot 125*8d13bc63SEmmanuel VadotunevaluatedProperties: false 1268bab661aSEmmanuel Vadot 1278bab661aSEmmanuel Vadotexamples: 1288bab661aSEmmanuel Vadot - | 1298bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1308bab661aSEmmanuel Vadot 1318bab661aSEmmanuel Vadot tlmm: pinctrl@3100000 { 1328bab661aSEmmanuel Vadot compatible = "qcom,sdm630-pinctrl"; 1338bab661aSEmmanuel Vadot reg = <0x03100000 0x400000>, 1348bab661aSEmmanuel Vadot <0x03500000 0x400000>, 1358bab661aSEmmanuel Vadot <0x03900000 0x400000>; 1368bab661aSEmmanuel Vadot reg-names = "south", "center", "north"; 1378bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1388bab661aSEmmanuel Vadot gpio-controller; 1398bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 114>; 1408bab661aSEmmanuel Vadot #gpio-cells = <2>; 1418bab661aSEmmanuel Vadot interrupt-controller; 1428bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1438bab661aSEmmanuel Vadot 1448bab661aSEmmanuel Vadot blsp1-uart1-default-state { 1458bab661aSEmmanuel Vadot pins = "gpio0", "gpio1", "gpio2", "gpio3"; 1468bab661aSEmmanuel Vadot function = "gpio"; 1478bab661aSEmmanuel Vadot drive-strength = <2>; 1488bab661aSEmmanuel Vadot bias-disable; 1498bab661aSEmmanuel Vadot }; 1508bab661aSEmmanuel Vadot 1518bab661aSEmmanuel Vadot blsp2_uart1_default: blsp2-uart1-active-state { 1528bab661aSEmmanuel Vadot tx-rts-pins { 1538bab661aSEmmanuel Vadot pins = "gpio16", "gpio19"; 1548bab661aSEmmanuel Vadot function = "blsp_uart5"; 1558bab661aSEmmanuel Vadot drive-strength = <2>; 1568bab661aSEmmanuel Vadot bias-disable; 1578bab661aSEmmanuel Vadot }; 1588bab661aSEmmanuel Vadot 1598bab661aSEmmanuel Vadot rx-pins { 1608bab661aSEmmanuel Vadot pins = "gpio17"; 1618bab661aSEmmanuel Vadot function = "blsp_uart5"; 1628bab661aSEmmanuel Vadot drive-strength = <2>; 1638bab661aSEmmanuel Vadot bias-pull-up; 1648bab661aSEmmanuel Vadot }; 1658bab661aSEmmanuel Vadot 1668bab661aSEmmanuel Vadot cts-pins { 1678bab661aSEmmanuel Vadot pins = "gpio18"; 1688bab661aSEmmanuel Vadot function = "blsp_uart5"; 1698bab661aSEmmanuel Vadot drive-strength = <2>; 1708bab661aSEmmanuel Vadot bias-pull-down; 1718bab661aSEmmanuel Vadot }; 1728bab661aSEmmanuel Vadot }; 1738bab661aSEmmanuel Vadot }; 174