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,sc7180-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm SC7180 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 SC7180 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel Vadotproperties: 178bab661aSEmmanuel Vadot compatible: 188bab661aSEmmanuel Vadot const: qcom,sc7180-pinctrl 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot reg: 218bab661aSEmmanuel Vadot maxItems: 3 228bab661aSEmmanuel Vadot 238bab661aSEmmanuel Vadot reg-names: 248bab661aSEmmanuel Vadot items: 258bab661aSEmmanuel Vadot - const: west 268bab661aSEmmanuel Vadot - const: north 278bab661aSEmmanuel Vadot - const: south 288bab661aSEmmanuel Vadot 29cb7aa33aSEmmanuel Vadot interrupts: 30cb7aa33aSEmmanuel Vadot maxItems: 1 31cb7aa33aSEmmanuel Vadot 328bab661aSEmmanuel Vadot gpio-reserved-ranges: 338bab661aSEmmanuel Vadot minItems: 1 348bab661aSEmmanuel Vadot maxItems: 60 358bab661aSEmmanuel Vadot 368bab661aSEmmanuel Vadot gpio-line-names: 378bab661aSEmmanuel Vadot maxItems: 119 388bab661aSEmmanuel Vadot 398bab661aSEmmanuel VadotpatternProperties: 408bab661aSEmmanuel Vadot "-state$": 418bab661aSEmmanuel Vadot oneOf: 428bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sc7180-tlmm-state" 438bab661aSEmmanuel Vadot - patternProperties: 448bab661aSEmmanuel Vadot "-pins$": 458bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sc7180-tlmm-state" 468bab661aSEmmanuel Vadot additionalProperties: false 478bab661aSEmmanuel Vadot 488bab661aSEmmanuel Vadot$defs: 498bab661aSEmmanuel Vadot qcom-sc7180-tlmm-state: 508bab661aSEmmanuel Vadot type: object 518bab661aSEmmanuel Vadot description: 528bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 538bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 548bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 55fac71e4eSEmmanuel Vadot unevaluatedProperties: false 568bab661aSEmmanuel Vadot 578bab661aSEmmanuel Vadot properties: 588bab661aSEmmanuel Vadot pins: 598bab661aSEmmanuel Vadot description: 608bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 618bab661aSEmmanuel Vadot subnode. 628bab661aSEmmanuel Vadot items: 638bab661aSEmmanuel Vadot oneOf: 648bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-8])$" 658bab661aSEmmanuel Vadot - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, 668bab661aSEmmanuel Vadot sdc2_cmd, sdc2_data, ufs_reset ] 678bab661aSEmmanuel Vadot minItems: 1 688bab661aSEmmanuel Vadot maxItems: 36 698bab661aSEmmanuel Vadot 708bab661aSEmmanuel Vadot function: 718bab661aSEmmanuel Vadot description: 728bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 738bab661aSEmmanuel Vadot pins. 748bab661aSEmmanuel Vadot 758bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_char0, 768bab661aSEmmanuel Vadot atest_char1, atest_char2, atest_char3, atest_tsens, 778bab661aSEmmanuel Vadot atest_tsens2, atest_usb1, atest_usb10, atest_usb11, 788bab661aSEmmanuel Vadot atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, 798bab661aSEmmanuel Vadot atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk, 808bab661aSEmmanuel Vadot cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, 818bab661aSEmmanuel Vadot cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist, ddr_pxi0, 828bab661aSEmmanuel Vadot ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, gcc_gp1, 838bab661aSEmmanuel Vadot gcc_gp2, gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gps_tx, 848bab661aSEmmanuel Vadot jitter_bist, ldo_en, ldo_update, lpass_ext, mdp_vsync, 858bab661aSEmmanuel Vadot mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s_0, mi2s_1, 868bab661aSEmmanuel Vadot mi2s_2, mss_lte, m_voc, pa_indicator, phase_flag, PLL_BIST, 878bab661aSEmmanuel Vadot pll_bypassnl, pll_reset, prng_rosc, qdss, qdss_cti, 888bab661aSEmmanuel Vadot qlink_enable, qlink_request, qspi_clk, qspi_cs, qspi_data, 898bab661aSEmmanuel Vadot qup00, qup01, qup02_i2c, qup02_uart, qup03, qup04_i2c, 908bab661aSEmmanuel Vadot qup04_uart, qup05, qup10, qup11_i2c, qup11_uart, qup12, 918bab661aSEmmanuel Vadot qup13_i2c, qup13_uart, qup14, qup15, sdc1_tb, sdc2_tb, 928bab661aSEmmanuel Vadot sd_write, sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, 938bab661aSEmmanuel Vadot tsense_pwm1, tsense_pwm2, uim1, uim2, uim_batt, usb_phy, vfr_1, 948bab661aSEmmanuel Vadot _V_GPIO, _V_PPS_IN, _V_PPS_OUT, vsense_trigger, wlan1_adc0, 958bab661aSEmmanuel Vadot wlan1_adc1, wlan2_adc0, wlan2_adc1 ] 968bab661aSEmmanuel Vadot 978bab661aSEmmanuel Vadot required: 988bab661aSEmmanuel Vadot - pins 998bab661aSEmmanuel Vadot 1008bab661aSEmmanuel VadotallOf: 1018bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 1028bab661aSEmmanuel Vadot 1038bab661aSEmmanuel Vadotrequired: 1048bab661aSEmmanuel Vadot - compatible 1058bab661aSEmmanuel Vadot - reg 1068bab661aSEmmanuel Vadot - reg-names 1078bab661aSEmmanuel Vadot 108*8d13bc63SEmmanuel VadotunevaluatedProperties: false 1098bab661aSEmmanuel Vadot 1108bab661aSEmmanuel Vadotexamples: 1118bab661aSEmmanuel Vadot - | 1128bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1138bab661aSEmmanuel Vadot 1148bab661aSEmmanuel Vadot tlmm: pinctrl@3500000 { 1158bab661aSEmmanuel Vadot compatible = "qcom,sc7180-pinctrl"; 1168bab661aSEmmanuel Vadot reg = <0x03500000 0x300000>, 1178bab661aSEmmanuel Vadot <0x03900000 0x300000>, 1188bab661aSEmmanuel Vadot <0x03d00000 0x300000>; 1198bab661aSEmmanuel Vadot reg-names = "west", "north", "south"; 1208bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1218bab661aSEmmanuel Vadot gpio-controller; 1228bab661aSEmmanuel Vadot #gpio-cells = <2>; 1238bab661aSEmmanuel Vadot interrupt-controller; 1248bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1258bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 120>; 1268bab661aSEmmanuel Vadot wakeup-parent = <&pdc>; 1278bab661aSEmmanuel Vadot 1288bab661aSEmmanuel Vadot dp_hot_plug_det: dp-hot-plug-det-state { 1298bab661aSEmmanuel Vadot pins = "gpio117"; 1308bab661aSEmmanuel Vadot function = "dp_hot"; 1318bab661aSEmmanuel Vadot }; 1328bab661aSEmmanuel Vadot 1338bab661aSEmmanuel Vadot qup_spi11_cs_gpio: qup-spi11-cs-gpio-state { 1348bab661aSEmmanuel Vadot spi-pins { 1358bab661aSEmmanuel Vadot pins = "gpio53", "gpio54", "gpio55"; 1368bab661aSEmmanuel Vadot function = "qup15"; 1378bab661aSEmmanuel Vadot }; 1388bab661aSEmmanuel Vadot 1398bab661aSEmmanuel Vadot cs-pins { 1408bab661aSEmmanuel Vadot pins = "gpio56"; 1418bab661aSEmmanuel Vadot function = "gpio"; 1428bab661aSEmmanuel Vadot }; 1438bab661aSEmmanuel Vadot }; 1448bab661aSEmmanuel Vadot }; 145