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,msm8960-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm MSM8960 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 MSM8960 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel Vadotproperties: 178bab661aSEmmanuel Vadot compatible: 188bab661aSEmmanuel Vadot const: qcom,msm8960-pinctrl 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot reg: 218bab661aSEmmanuel Vadot maxItems: 1 228bab661aSEmmanuel Vadot 23cb7aa33aSEmmanuel Vadot interrupts: 24cb7aa33aSEmmanuel Vadot maxItems: 1 25cb7aa33aSEmmanuel Vadot 268bab661aSEmmanuel Vadot interrupt-controller: true 278bab661aSEmmanuel Vadot "#interrupt-cells": true 288bab661aSEmmanuel Vadot gpio-controller: true 298bab661aSEmmanuel Vadot "#gpio-cells": true 308bab661aSEmmanuel Vadot gpio-ranges: true 318bab661aSEmmanuel Vadot wakeup-parent: true 328bab661aSEmmanuel Vadot 338bab661aSEmmanuel Vadot gpio-reserved-ranges: 348bab661aSEmmanuel Vadot minItems: 1 358bab661aSEmmanuel Vadot maxItems: 76 368bab661aSEmmanuel Vadot 378bab661aSEmmanuel Vadot gpio-line-names: 388bab661aSEmmanuel Vadot maxItems: 152 398bab661aSEmmanuel Vadot 408bab661aSEmmanuel VadotpatternProperties: 418bab661aSEmmanuel Vadot "-state$": 428bab661aSEmmanuel Vadot oneOf: 438bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-msm8960-tlmm-state" 448bab661aSEmmanuel Vadot - patternProperties: 458bab661aSEmmanuel Vadot "-pins$": 468bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-msm8960-tlmm-state" 478bab661aSEmmanuel Vadot additionalProperties: false 488bab661aSEmmanuel Vadot 498bab661aSEmmanuel Vadot$defs: 508bab661aSEmmanuel Vadot qcom-msm8960-tlmm-state: 518bab661aSEmmanuel Vadot type: object 528bab661aSEmmanuel Vadot description: 538bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 548bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 558bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 56*fac71e4eSEmmanuel Vadot unevaluatedProperties: false 578bab661aSEmmanuel Vadot 588bab661aSEmmanuel Vadot properties: 598bab661aSEmmanuel Vadot pins: 608bab661aSEmmanuel Vadot description: 618bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 628bab661aSEmmanuel Vadot subnode. 638bab661aSEmmanuel Vadot items: 648bab661aSEmmanuel Vadot oneOf: 658bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-1])$" 668bab661aSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc3_clk, sdc3_cmd, 678bab661aSEmmanuel Vadot sdc3_data ] 688bab661aSEmmanuel Vadot minItems: 1 698bab661aSEmmanuel Vadot maxItems: 36 708bab661aSEmmanuel Vadot 718bab661aSEmmanuel Vadot function: 728bab661aSEmmanuel Vadot description: 738bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 748bab661aSEmmanuel Vadot pins. 758bab661aSEmmanuel Vadot 768bab661aSEmmanuel Vadot enum: [ gpio, audio_pcm, bt, cam_mclk0, cam_mclk1, cam_mclk2, 778bab661aSEmmanuel Vadot codec_mic_i2s, codec_spkr_i2s, ext_gps, fm, gps_blanking, 788bab661aSEmmanuel Vadot gps_pps_in, gps_pps_out, gp_clk_0a, gp_clk_0b, gp_clk_1a, 798bab661aSEmmanuel Vadot gp_clk_1b, gp_clk_2a, gp_clk_2b, gp_mn, gp_pdm_0a, gp_pdm_0b, 808bab661aSEmmanuel Vadot gp_pdm_1a, gp_pdm_1b, gp_pdm_2a, gp_pdm_2b, gsbi1, 818bab661aSEmmanuel Vadot gsbi1_spi_cs1_n, gsbi1_spi_cs2a_n, gsbi1_spi_cs2b_n, 828bab661aSEmmanuel Vadot gsbi1_spi_cs3_n, gsbi2, gsbi2_spi_cs1_n, gsbi2_spi_cs2_n, 838bab661aSEmmanuel Vadot gsbi2_spi_cs3_n, gsbi3, gsbi4, gsbi4_3d_cam_i2c_l, 848bab661aSEmmanuel Vadot gsbi4_3d_cam_i2c_r, gsbi5, gsbi5_3d_cam_i2c_l, 858bab661aSEmmanuel Vadot gsbi5_3d_cam_i2c_r, gsbi6, gsbi7, gsbi8, gsbi9, gsbi10, gsbi11, 868bab661aSEmmanuel Vadot gsbi11_spi_cs1a_n, gsbi11_spi_cs1b_n, gsbi11_spi_cs2a_n, 878bab661aSEmmanuel Vadot gsbi11_spi_cs2b_n, gsbi11_spi_cs3_n, gsbi12, hdmi_cec, 888bab661aSEmmanuel Vadot hdmi_ddc_clock, hdmi_ddc_data, hdmi_hot_plug_detect, hsic, 898bab661aSEmmanuel Vadot mdp_vsync, mi2s, mic_i2s, pmb_clk, pmb_ext_ctrl, ps_hold, 908bab661aSEmmanuel Vadot rpm_wdog, sdc2, sdc4, sdc5, slimbus1, slimbus2, spkr_i2s, 918bab661aSEmmanuel Vadot ssbi1, ssbi2, ssbi_ext_gps, ssbi_pmic2, ssbi_qpa1, ssbi_ts, 928bab661aSEmmanuel Vadot tsif1, tsif2, ts_eoc, usb_fs1, usb_fs1_oe, usb_fs1_oe_n, 938bab661aSEmmanuel Vadot usb_fs2, usb_fs2_oe, usb_fs2_oe_n, vfe_camif_timer1_a, 948bab661aSEmmanuel Vadot vfe_camif_timer1_b, vfe_camif_timer2, vfe_camif_timer3_a, 958bab661aSEmmanuel Vadot vfe_camif_timer3_b, vfe_camif_timer4_a, vfe_camif_timer4_b, 968bab661aSEmmanuel Vadot vfe_camif_timer4_c, vfe_camif_timer5_a, vfe_camif_timer5_b, 978bab661aSEmmanuel Vadot vfe_camif_timer6_a, vfe_camif_timer6_b, vfe_camif_timer6_c, 988bab661aSEmmanuel Vadot vfe_camif_timer7_a, vfe_camif_timer7_b, vfe_camif_timer7_c, 998bab661aSEmmanuel Vadot wlan ] 1008bab661aSEmmanuel Vadot 1018bab661aSEmmanuel Vadot required: 1028bab661aSEmmanuel Vadot - pins 1038bab661aSEmmanuel Vadot 1048bab661aSEmmanuel VadotallOf: 1058bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 1068bab661aSEmmanuel Vadot 1078bab661aSEmmanuel Vadotrequired: 1088bab661aSEmmanuel Vadot - compatible 1098bab661aSEmmanuel Vadot - reg 1108bab661aSEmmanuel Vadot 1118bab661aSEmmanuel VadotadditionalProperties: false 1128bab661aSEmmanuel Vadot 1138bab661aSEmmanuel Vadotexamples: 1148bab661aSEmmanuel Vadot - | 1158bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1168bab661aSEmmanuel Vadot 1178bab661aSEmmanuel Vadot msmgpio: pinctrl@800000 { 1188bab661aSEmmanuel Vadot compatible = "qcom,msm8960-pinctrl"; 1198bab661aSEmmanuel Vadot reg = <0x800000 0x4000>; 1208bab661aSEmmanuel Vadot #gpio-cells = <2>; 1218bab661aSEmmanuel Vadot gpio-controller; 1228bab661aSEmmanuel Vadot gpio-ranges = <&msmgpio 0 0 152>; 1238bab661aSEmmanuel Vadot interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 1248bab661aSEmmanuel Vadot interrupt-controller; 1258bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1268bab661aSEmmanuel Vadot 1278bab661aSEmmanuel Vadot spi1-default-state { 1288bab661aSEmmanuel Vadot mosi-pins { 1298bab661aSEmmanuel Vadot pins = "gpio6"; 1308bab661aSEmmanuel Vadot function = "gsbi1"; 1318bab661aSEmmanuel Vadot drive-strength = <12>; 1328bab661aSEmmanuel Vadot bias-disable; 1338bab661aSEmmanuel Vadot }; 1348bab661aSEmmanuel Vadot 1358bab661aSEmmanuel Vadot miso-pins { 1368bab661aSEmmanuel Vadot pins = "gpio7"; 1378bab661aSEmmanuel Vadot function = "gsbi1"; 1388bab661aSEmmanuel Vadot drive-strength = <12>; 1398bab661aSEmmanuel Vadot bias-disable; 1408bab661aSEmmanuel Vadot }; 1418bab661aSEmmanuel Vadot 1428bab661aSEmmanuel Vadot cs-pins { 1438bab661aSEmmanuel Vadot pins = "gpio8"; 1448bab661aSEmmanuel Vadot function = "gpio"; 1458bab661aSEmmanuel Vadot drive-strength = <12>; 1468bab661aSEmmanuel Vadot bias-disable; 1478bab661aSEmmanuel Vadot output-low; 1488bab661aSEmmanuel Vadot }; 1498bab661aSEmmanuel Vadot 1508bab661aSEmmanuel Vadot clk-pins { 1518bab661aSEmmanuel Vadot pins = "gpio9"; 1528bab661aSEmmanuel Vadot function = "gsbi1"; 1538bab661aSEmmanuel Vadot drive-strength = <12>; 1548bab661aSEmmanuel Vadot bias-disable; 1558bab661aSEmmanuel Vadot }; 1568bab661aSEmmanuel Vadot }; 1578bab661aSEmmanuel Vadot }; 158