1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8bab661aSEmmanuel Vadot%YAML 1.2 3*8bab661aSEmmanuel Vadot--- 4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,msm8660-pinctrl.yaml# 5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8bab661aSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Qualcomm MSM8660 TLMM pin controller 8*8bab661aSEmmanuel Vadot 9*8bab661aSEmmanuel Vadotmaintainers: 10*8bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 11*8bab661aSEmmanuel Vadot - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 12*8bab661aSEmmanuel Vadot 13*8bab661aSEmmanuel Vadotdescription: 14*8bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm MSM8660 SoC. 15*8bab661aSEmmanuel Vadot 16*8bab661aSEmmanuel Vadotproperties: 17*8bab661aSEmmanuel Vadot compatible: 18*8bab661aSEmmanuel Vadot const: qcom,msm8660-pinctrl 19*8bab661aSEmmanuel Vadot 20*8bab661aSEmmanuel Vadot reg: 21*8bab661aSEmmanuel Vadot maxItems: 1 22*8bab661aSEmmanuel Vadot 23*8bab661aSEmmanuel Vadot interrupts: true 24*8bab661aSEmmanuel Vadot interrupt-controller: true 25*8bab661aSEmmanuel Vadot "#interrupt-cells": true 26*8bab661aSEmmanuel Vadot gpio-controller: true 27*8bab661aSEmmanuel Vadot "#gpio-cells": true 28*8bab661aSEmmanuel Vadot gpio-ranges: true 29*8bab661aSEmmanuel Vadot wakeup-parent: true 30*8bab661aSEmmanuel Vadot 31*8bab661aSEmmanuel Vadot gpio-reserved-ranges: 32*8bab661aSEmmanuel Vadot minItems: 1 33*8bab661aSEmmanuel Vadot maxItems: 86 34*8bab661aSEmmanuel Vadot 35*8bab661aSEmmanuel Vadot gpio-line-names: 36*8bab661aSEmmanuel Vadot maxItems: 173 37*8bab661aSEmmanuel Vadot 38*8bab661aSEmmanuel VadotpatternProperties: 39*8bab661aSEmmanuel Vadot "-state$": 40*8bab661aSEmmanuel Vadot oneOf: 41*8bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-msm8660-tlmm-state" 42*8bab661aSEmmanuel Vadot - patternProperties: 43*8bab661aSEmmanuel Vadot "-pins$": 44*8bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-msm8660-tlmm-state" 45*8bab661aSEmmanuel Vadot additionalProperties: false 46*8bab661aSEmmanuel Vadot 47*8bab661aSEmmanuel Vadot$defs: 48*8bab661aSEmmanuel Vadot qcom-msm8660-tlmm-state: 49*8bab661aSEmmanuel Vadot type: object 50*8bab661aSEmmanuel Vadot description: 51*8bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 52*8bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 53*8bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 54*8bab661aSEmmanuel Vadot 55*8bab661aSEmmanuel Vadot properties: 56*8bab661aSEmmanuel Vadot pins: 57*8bab661aSEmmanuel Vadot description: 58*8bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 59*8bab661aSEmmanuel Vadot subnode. 60*8bab661aSEmmanuel Vadot items: 61*8bab661aSEmmanuel Vadot oneOf: 62*8bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-6][0-9]|17[0-2])$" 63*8bab661aSEmmanuel Vadot - enum: [ sdc3_clk, sdc3_cmd, sdc3_data, sdc4_clk, sdc4_cmd, sdc4_data ] 64*8bab661aSEmmanuel Vadot minItems: 1 65*8bab661aSEmmanuel Vadot maxItems: 36 66*8bab661aSEmmanuel Vadot 67*8bab661aSEmmanuel Vadot function: 68*8bab661aSEmmanuel Vadot description: 69*8bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 70*8bab661aSEmmanuel Vadot pins. 71*8bab661aSEmmanuel Vadot 72*8bab661aSEmmanuel Vadot enum: [ gpio, cam_mclk, dsub, ext_gps, gp_clk_0a, gp_clk_0b, gp_clk_1a, 73*8bab661aSEmmanuel Vadot gp_clk_1b, gp_clk_2a, gp_clk_2b, gp_mn, gsbi1, gsbi1_spi_cs1_n, 74*8bab661aSEmmanuel Vadot gsbi1_spi_cs2a_n, gsbi1_spi_cs2b_n, gsbi1_spi_cs3_n, gsbi2, 75*8bab661aSEmmanuel Vadot gsbi2_spi_cs1_n, gsbi2_spi_cs2_n, gsbi2_spi_cs3_n, gsbi3, 76*8bab661aSEmmanuel Vadot gsbi3_spi_cs1_n, gsbi3_spi_cs2_n, gsbi3_spi_cs3_n, gsbi4, 77*8bab661aSEmmanuel Vadot gsbi5, gsbi6, gsbi7, gsbi8, gsbi9, gsbi10, gsbi11, gsbi12, 78*8bab661aSEmmanuel Vadot hdmi, i2s, lcdc, mdp_vsync, mi2s, pcm, ps_hold, sdc1, sdc2, 79*8bab661aSEmmanuel Vadot sdc5, tsif1, tsif2, usb_fs1, usb_fs1_oe_n, usb_fs2, 80*8bab661aSEmmanuel Vadot usb_fs2_oe_n, vfe, vsens_alarm, ebi2, ebi2cs ] 81*8bab661aSEmmanuel Vadot 82*8bab661aSEmmanuel Vadot 83*8bab661aSEmmanuel Vadot bias-pull-down: true 84*8bab661aSEmmanuel Vadot bias-pull-up: true 85*8bab661aSEmmanuel Vadot bias-disable: true 86*8bab661aSEmmanuel Vadot drive-strength: true 87*8bab661aSEmmanuel Vadot input-enable: true 88*8bab661aSEmmanuel Vadot output-high: true 89*8bab661aSEmmanuel Vadot output-low: true 90*8bab661aSEmmanuel Vadot 91*8bab661aSEmmanuel Vadot required: 92*8bab661aSEmmanuel Vadot - pins 93*8bab661aSEmmanuel Vadot 94*8bab661aSEmmanuel Vadot additionalProperties: false 95*8bab661aSEmmanuel Vadot 96*8bab661aSEmmanuel VadotallOf: 97*8bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 98*8bab661aSEmmanuel Vadot 99*8bab661aSEmmanuel Vadotrequired: 100*8bab661aSEmmanuel Vadot - compatible 101*8bab661aSEmmanuel Vadot - reg 102*8bab661aSEmmanuel Vadot 103*8bab661aSEmmanuel VadotadditionalProperties: false 104*8bab661aSEmmanuel Vadot 105*8bab661aSEmmanuel Vadotexamples: 106*8bab661aSEmmanuel Vadot - | 107*8bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 108*8bab661aSEmmanuel Vadot tlmm: pinctrl@800000 { 109*8bab661aSEmmanuel Vadot compatible = "qcom,msm8660-pinctrl"; 110*8bab661aSEmmanuel Vadot reg = <0x800000 0x4000>; 111*8bab661aSEmmanuel Vadot 112*8bab661aSEmmanuel Vadot gpio-controller; 113*8bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 173>; 114*8bab661aSEmmanuel Vadot #gpio-cells = <2>; 115*8bab661aSEmmanuel Vadot interrupts = <0 16 0x4>; 116*8bab661aSEmmanuel Vadot interrupt-controller; 117*8bab661aSEmmanuel Vadot #interrupt-cells = <2>; 118*8bab661aSEmmanuel Vadot 119*8bab661aSEmmanuel Vadot gsbi3-i2c-state { 120*8bab661aSEmmanuel Vadot pins = "gpio43", "gpio44"; 121*8bab661aSEmmanuel Vadot function = "gsbi3"; 122*8bab661aSEmmanuel Vadot drive-strength = <8>; 123*8bab661aSEmmanuel Vadot bias-disable; 124*8bab661aSEmmanuel Vadot }; 125*8bab661aSEmmanuel Vadot }; 126