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,msm8660-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm MSM8660 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 MSM8660 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel Vadotproperties: 178bab661aSEmmanuel Vadot compatible: 188bab661aSEmmanuel Vadot const: qcom,msm8660-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: 86 368bab661aSEmmanuel Vadot 378bab661aSEmmanuel Vadot gpio-line-names: 388bab661aSEmmanuel Vadot maxItems: 173 398bab661aSEmmanuel Vadot 408bab661aSEmmanuel VadotpatternProperties: 418bab661aSEmmanuel Vadot "-state$": 428bab661aSEmmanuel Vadot oneOf: 438bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-msm8660-tlmm-state" 448bab661aSEmmanuel Vadot - patternProperties: 458bab661aSEmmanuel Vadot "-pins$": 468bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-msm8660-tlmm-state" 478bab661aSEmmanuel Vadot additionalProperties: false 488bab661aSEmmanuel Vadot 498bab661aSEmmanuel Vadot$defs: 508bab661aSEmmanuel Vadot qcom-msm8660-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-6][0-9]|17[0-2])$" 668bab661aSEmmanuel Vadot - enum: [ sdc3_clk, sdc3_cmd, sdc3_data, sdc4_clk, sdc4_cmd, sdc4_data ] 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: [ gpio, cam_mclk, dsub, ext_gps, gp_clk_0a, gp_clk_0b, gp_clk_1a, 768bab661aSEmmanuel Vadot gp_clk_1b, gp_clk_2a, gp_clk_2b, gp_mn, gsbi1, gsbi1_spi_cs1_n, 778bab661aSEmmanuel Vadot gsbi1_spi_cs2a_n, gsbi1_spi_cs2b_n, gsbi1_spi_cs3_n, gsbi2, 788bab661aSEmmanuel Vadot gsbi2_spi_cs1_n, gsbi2_spi_cs2_n, gsbi2_spi_cs3_n, gsbi3, 798bab661aSEmmanuel Vadot gsbi3_spi_cs1_n, gsbi3_spi_cs2_n, gsbi3_spi_cs3_n, gsbi4, 808bab661aSEmmanuel Vadot gsbi5, gsbi6, gsbi7, gsbi8, gsbi9, gsbi10, gsbi11, gsbi12, 818bab661aSEmmanuel Vadot hdmi, i2s, lcdc, mdp_vsync, mi2s, pcm, ps_hold, sdc1, sdc2, 828bab661aSEmmanuel Vadot sdc5, tsif1, tsif2, usb_fs1, usb_fs1_oe_n, usb_fs2, 838bab661aSEmmanuel Vadot usb_fs2_oe_n, vfe, vsens_alarm, ebi2, ebi2cs ] 848bab661aSEmmanuel Vadot 858bab661aSEmmanuel Vadot required: 868bab661aSEmmanuel Vadot - pins 878bab661aSEmmanuel Vadot 888bab661aSEmmanuel VadotallOf: 898bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 908bab661aSEmmanuel Vadot 918bab661aSEmmanuel Vadotrequired: 928bab661aSEmmanuel Vadot - compatible 938bab661aSEmmanuel Vadot - reg 948bab661aSEmmanuel Vadot 958bab661aSEmmanuel VadotadditionalProperties: false 968bab661aSEmmanuel Vadot 978bab661aSEmmanuel Vadotexamples: 988bab661aSEmmanuel Vadot - | 998bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1008bab661aSEmmanuel Vadot tlmm: pinctrl@800000 { 1018bab661aSEmmanuel Vadot compatible = "qcom,msm8660-pinctrl"; 1028bab661aSEmmanuel Vadot reg = <0x800000 0x4000>; 1038bab661aSEmmanuel Vadot 1048bab661aSEmmanuel Vadot gpio-controller; 1058bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 173>; 1068bab661aSEmmanuel Vadot #gpio-cells = <2>; 1078bab661aSEmmanuel Vadot interrupts = <0 16 0x4>; 1088bab661aSEmmanuel Vadot interrupt-controller; 1098bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1108bab661aSEmmanuel Vadot 1118bab661aSEmmanuel Vadot gsbi3-i2c-state { 1128bab661aSEmmanuel Vadot pins = "gpio43", "gpio44"; 1138bab661aSEmmanuel Vadot function = "gsbi3"; 1148bab661aSEmmanuel Vadot drive-strength = <8>; 1158bab661aSEmmanuel Vadot bias-disable; 1168bab661aSEmmanuel Vadot }; 1178bab661aSEmmanuel Vadot }; 118