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,msm8976-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm MSM8976 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 MSM8976 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel Vadotproperties: 178bab661aSEmmanuel Vadot compatible: 188bab661aSEmmanuel Vadot const: qcom,msm8976-pinctrl 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot reg: 218bab661aSEmmanuel Vadot maxItems: 1 228bab661aSEmmanuel Vadot 23cb7aa33aSEmmanuel Vadot interrupts: 24cb7aa33aSEmmanuel Vadot maxItems: 1 25cb7aa33aSEmmanuel Vadot 268bab661aSEmmanuel Vadot gpio-reserved-ranges: 278bab661aSEmmanuel Vadot minItems: 1 288bab661aSEmmanuel Vadot maxItems: 73 298bab661aSEmmanuel Vadot 308bab661aSEmmanuel Vadot gpio-line-names: 318bab661aSEmmanuel Vadot maxItems: 145 328bab661aSEmmanuel Vadot 338bab661aSEmmanuel VadotpatternProperties: 348bab661aSEmmanuel Vadot "-state$": 358bab661aSEmmanuel Vadot oneOf: 368bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-msm8976-tlmm-state" 378bab661aSEmmanuel Vadot - patternProperties: 388bab661aSEmmanuel Vadot "-pins$": 398bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-msm8976-tlmm-state" 408bab661aSEmmanuel Vadot additionalProperties: false 418bab661aSEmmanuel Vadot 428bab661aSEmmanuel Vadot$defs: 438bab661aSEmmanuel Vadot qcom-msm8976-tlmm-state: 448bab661aSEmmanuel Vadot type: object 458bab661aSEmmanuel Vadot description: 468bab661aSEmmanuel Vadot Desired pin configuration for a device or its specific state (like sleep 478bab661aSEmmanuel Vadot or active). 488bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 49fac71e4eSEmmanuel Vadot unevaluatedProperties: false 508bab661aSEmmanuel Vadot 518bab661aSEmmanuel Vadot properties: 528bab661aSEmmanuel Vadot pins: 538bab661aSEmmanuel Vadot description: 548bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this state. 558bab661aSEmmanuel Vadot items: 568bab661aSEmmanuel Vadot oneOf: 578bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-4])$" 588bab661aSEmmanuel Vadot - enum: [ qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, 598bab661aSEmmanuel Vadot qdsd_data3, sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, 608bab661aSEmmanuel Vadot sdc2_clk, sdc2_cmd, sdc2_data ] 618bab661aSEmmanuel Vadot minItems: 1 628bab661aSEmmanuel Vadot maxItems: 36 638bab661aSEmmanuel Vadot 648bab661aSEmmanuel Vadot function: 658bab661aSEmmanuel Vadot description: 668bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 678bab661aSEmmanuel Vadot pins. 688bab661aSEmmanuel Vadot 698bab661aSEmmanuel Vadot enum: [ gpio, blsp_uart1, blsp_spi1, smb_int, blsp_i2c1, blsp_spi2, 708bab661aSEmmanuel Vadot blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, blsp_spi3, 718bab661aSEmmanuel Vadot qdss_tracedata_b, blsp_i2c3, gcc_gp2_clk_b, gcc_gp3_clk_b, 728bab661aSEmmanuel Vadot blsp_spi4, cap_int, blsp_i2c4, blsp_spi5, blsp_uart5, 738bab661aSEmmanuel Vadot qdss_traceclk_a, m_voc, blsp_i2c5, qdss_tracectl_a, 748bab661aSEmmanuel Vadot qdss_tracedata_a, blsp_spi6, blsp_uart6, qdss_tracectl_b, 758bab661aSEmmanuel Vadot blsp_i2c6, qdss_traceclk_b, mdp_vsync, pri_mi2s_mclk_a, 768bab661aSEmmanuel Vadot sec_mi2s_mclk_a, cam_mclk, cci0_i2c, cci1_i2c, blsp1_spi, 778bab661aSEmmanuel Vadot blsp3_spi, gcc_gp1_clk_a, gcc_gp2_clk_a, gcc_gp3_clk_a, 788bab661aSEmmanuel Vadot uim_batt, sd_write, uim1_data, uim1_clk, uim1_reset, 798bab661aSEmmanuel Vadot uim1_present, uim2_data, uim2_clk, uim2_reset, uim2_present, 808bab661aSEmmanuel Vadot ts_xvdd, mipi_dsi0, us_euro, ts_resout, ts_sample, 818bab661aSEmmanuel Vadot sec_mi2s_mclk_b, pri_mi2s, codec_reset, cdc_pdm0, us_emitter, 828bab661aSEmmanuel Vadot pri_mi2s_mclk_b, pri_mi2s_mclk_c, lpass_slimbus, 838bab661aSEmmanuel Vadot lpass_slimbus0, lpass_slimbus1, codec_int1, codec_int2, 848bab661aSEmmanuel Vadot wcss_bt, sdc3, wcss_wlan2, wcss_wlan1, wcss_wlan0, wcss_wlan, 858bab661aSEmmanuel Vadot wcss_fm, key_volp, key_snapshot, key_focus, key_home, pwr_down, 868bab661aSEmmanuel Vadot dmic0_clk, hdmi_int, dmic0_data, wsa_vi, wsa_en, blsp_spi8, 878bab661aSEmmanuel Vadot wsa_irq, blsp_i2c8, pa_indicator, modem_tsync, ssbi_wtr1, 888bab661aSEmmanuel Vadot gsm1_tx, gsm0_tx, sdcard_det, sec_mi2s, ss_switch ] 898bab661aSEmmanuel Vadot 908bab661aSEmmanuel Vadot required: 918bab661aSEmmanuel Vadot - pins 928bab661aSEmmanuel Vadot 938bab661aSEmmanuel VadotallOf: 948bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 958bab661aSEmmanuel Vadot 968bab661aSEmmanuel Vadotrequired: 978bab661aSEmmanuel Vadot - compatible 988bab661aSEmmanuel Vadot - reg 998bab661aSEmmanuel Vadot 100*8d13bc63SEmmanuel VadotunevaluatedProperties: false 1018bab661aSEmmanuel Vadot 1028bab661aSEmmanuel Vadotexamples: 1038bab661aSEmmanuel Vadot - | 1048bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1058bab661aSEmmanuel Vadot 1068bab661aSEmmanuel Vadot tlmm: pinctrl@1000000 { 1078bab661aSEmmanuel Vadot compatible = "qcom,msm8976-pinctrl"; 1088bab661aSEmmanuel Vadot reg = <0x1000000 0x300000>; 1098bab661aSEmmanuel Vadot #gpio-cells = <2>; 1108bab661aSEmmanuel Vadot gpio-controller; 1118bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 145>; 1128bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1138bab661aSEmmanuel Vadot interrupt-controller; 1148bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1158bab661aSEmmanuel Vadot 1168bab661aSEmmanuel Vadot blsp1-uart2-active-state { 1178bab661aSEmmanuel Vadot pins = "gpio4", "gpio5", "gpio6", "gpio7"; 1188bab661aSEmmanuel Vadot function = "blsp_uart2"; 1198bab661aSEmmanuel Vadot drive-strength = <2>; 1208bab661aSEmmanuel Vadot bias-disable; 1218bab661aSEmmanuel Vadot }; 1228bab661aSEmmanuel Vadot }; 123