1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,ipq8064-pinctrl.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. IPQ8064 TLMM block 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Bjorn Andersson <bjorn.andersson@linaro.org> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotdescription: | 13*b2d2a78aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm IPQ8064 SoC. 14*b2d2a78aSEmmanuel Vadot 15*b2d2a78aSEmmanuel VadotallOf: 16*b2d2a78aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 17*b2d2a78aSEmmanuel Vadot 18*b2d2a78aSEmmanuel Vadotproperties: 19*b2d2a78aSEmmanuel Vadot compatible: 20*b2d2a78aSEmmanuel Vadot const: qcom,ipq8064-pinctrl 21*b2d2a78aSEmmanuel Vadot 22*b2d2a78aSEmmanuel Vadot reg: 23*b2d2a78aSEmmanuel Vadot maxItems: 1 24*b2d2a78aSEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadot interrupts: 26*b2d2a78aSEmmanuel Vadot maxItems: 1 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel Vadot gpio-reserved-ranges: true 29*b2d2a78aSEmmanuel Vadot 30*b2d2a78aSEmmanuel VadotpatternProperties: 31*b2d2a78aSEmmanuel Vadot "-state$": 32*b2d2a78aSEmmanuel Vadot oneOf: 33*b2d2a78aSEmmanuel Vadot - $ref: "#/$defs/qcom-ipq8064-tlmm-state" 34*b2d2a78aSEmmanuel Vadot - patternProperties: 35*b2d2a78aSEmmanuel Vadot "-pins$": 36*b2d2a78aSEmmanuel Vadot $ref: "#/$defs/qcom-ipq8064-tlmm-state" 37*b2d2a78aSEmmanuel Vadot additionalProperties: false 38*b2d2a78aSEmmanuel Vadot 39*b2d2a78aSEmmanuel Vadot$defs: 40*b2d2a78aSEmmanuel Vadot qcom-ipq8064-tlmm-state: 41*b2d2a78aSEmmanuel Vadot type: object 42*b2d2a78aSEmmanuel Vadot description: 43*b2d2a78aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 44*b2d2a78aSEmmanuel Vadot Client device subnodes use below standard properties. 45*b2d2a78aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 46*b2d2a78aSEmmanuel Vadot unevaluatedProperties: false 47*b2d2a78aSEmmanuel Vadot 48*b2d2a78aSEmmanuel Vadot properties: 49*b2d2a78aSEmmanuel Vadot pins: 50*b2d2a78aSEmmanuel Vadot description: 51*b2d2a78aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 52*b2d2a78aSEmmanuel Vadot subnode. 53*b2d2a78aSEmmanuel Vadot items: 54*b2d2a78aSEmmanuel Vadot oneOf: 55*b2d2a78aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-5][0-9]|6[0-8])$" 56*b2d2a78aSEmmanuel Vadot - enum: [ sdc3_clk, sdc3_cmd, sdc3_data ] 57*b2d2a78aSEmmanuel Vadot minItems: 1 58*b2d2a78aSEmmanuel Vadot maxItems: 36 59*b2d2a78aSEmmanuel Vadot 60*b2d2a78aSEmmanuel Vadot function: 61*b2d2a78aSEmmanuel Vadot description: 62*b2d2a78aSEmmanuel Vadot Specify the alternative function to be configured for the specified 63*b2d2a78aSEmmanuel Vadot pins. 64*b2d2a78aSEmmanuel Vadot enum: [ mdio, mi2s, pdm, ssbi, spmi, audio_pcm, gpio, gsbi1, gsbi2, gsbi4, gsbi5, 65*b2d2a78aSEmmanuel Vadot gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, gsbi7, nss_spi, sdc1, 66*b2d2a78aSEmmanuel Vadot spdif, nand, tsif1, tsif2, usb_fs_n, usb_fs, usb2_hsic, rgmii2, sata, 67*b2d2a78aSEmmanuel Vadot pcie1_rst, pcie1_prsnt, pcie1_pwren_n, pcie1_pwren, pcie1_pwrflt, 68*b2d2a78aSEmmanuel Vadot pcie1_clk_req, pcie2_rst, pcie2_prsnt, pcie2_pwren_n, pcie2_pwren, 69*b2d2a78aSEmmanuel Vadot pcie2_pwrflt, pcie2_clk_req, pcie3_rst, pcie3_prsnt, pcie3_pwren_n, 70*b2d2a78aSEmmanuel Vadot pcie3_pwren, pcie3_pwrflt, pcie3_clk_req, ps_hold ] 71*b2d2a78aSEmmanuel Vadot 72*b2d2a78aSEmmanuel Vadot required: 73*b2d2a78aSEmmanuel Vadot - pins 74*b2d2a78aSEmmanuel Vadot 75*b2d2a78aSEmmanuel Vadotrequired: 76*b2d2a78aSEmmanuel Vadot - compatible 77*b2d2a78aSEmmanuel Vadot - reg 78*b2d2a78aSEmmanuel Vadot 79*b2d2a78aSEmmanuel VadotunevaluatedProperties: false 80*b2d2a78aSEmmanuel Vadot 81*b2d2a78aSEmmanuel Vadotexamples: 82*b2d2a78aSEmmanuel Vadot - | 83*b2d2a78aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 84*b2d2a78aSEmmanuel Vadot tlmm: pinctrl@800000 { 85*b2d2a78aSEmmanuel Vadot compatible = "qcom,ipq8064-pinctrl"; 86*b2d2a78aSEmmanuel Vadot reg = <0x00800000 0x4000>; 87*b2d2a78aSEmmanuel Vadot 88*b2d2a78aSEmmanuel Vadot gpio-controller; 89*b2d2a78aSEmmanuel Vadot #gpio-cells = <2>; 90*b2d2a78aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 69>; 91*b2d2a78aSEmmanuel Vadot interrupt-controller; 92*b2d2a78aSEmmanuel Vadot #interrupt-cells = <2>; 93*b2d2a78aSEmmanuel Vadot interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 94*b2d2a78aSEmmanuel Vadot 95*b2d2a78aSEmmanuel Vadot uart-state { 96*b2d2a78aSEmmanuel Vadot rx-pins { 97*b2d2a78aSEmmanuel Vadot pins = "gpio19"; 98*b2d2a78aSEmmanuel Vadot function = "gsbi5"; 99*b2d2a78aSEmmanuel Vadot bias-pull-up; 100*b2d2a78aSEmmanuel Vadot }; 101*b2d2a78aSEmmanuel Vadot 102*b2d2a78aSEmmanuel Vadot tx-pins { 103*b2d2a78aSEmmanuel Vadot pins = "gpio18"; 104*b2d2a78aSEmmanuel Vadot function = "gsbi5"; 105*b2d2a78aSEmmanuel Vadot bias-disable; 106*b2d2a78aSEmmanuel Vadot }; 107*b2d2a78aSEmmanuel Vadot }; 108*b2d2a78aSEmmanuel Vadot }; 109