1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 2 %YAML 1.2 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/qco 5 $schema: http://devicetree.org/meta-schemas/co 6 7 title: Qualcomm Technologies, Inc. IPQ4019 TLM 8 9 maintainers: 10 - Bjorn Andersson <bjorn.andersson@linaro.org 11 12 description: | 13 Top Level Mode Multiplexer pin controller in 14 15 allOf: 16 - $ref: /schemas/pinctrl/qcom,tlmm-common.ya 17 18 properties: 19 compatible: 20 const: qcom,ipq4019-pinctrl 21 22 reg: 23 maxItems: 1 24 25 interrupts: 26 maxItems: 1 27 28 gpio-reserved-ranges: true 29 30 patternProperties: 31 "-state$": 32 oneOf: 33 - $ref: "#/$defs/qcom-ipq4019-tlmm-state 34 - patternProperties: 35 "-pins$": 36 $ref: "#/$defs/qcom-ipq4019-tlmm-s 37 additionalProperties: false 38 39 "-hog(-[0-9]+)?$": 40 type: object 41 required: 42 - gpio-hog 43 44 $defs: 45 qcom-ipq4019-tlmm-state: 46 type: object 47 description: 48 Pinctrl node's client devices use subnod 49 Client device subnodes use below standar 50 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tl 51 unevaluatedProperties: false 52 53 properties: 54 pins: 55 description: 56 List of gpio pins affected by the pr 57 subnode. 58 items: 59 pattern: "^gpio([0-9]|[1-9][0-9])$" 60 minItems: 1 61 maxItems: 36 62 63 function: 64 description: 65 Specify the alternative function to 66 pins. 67 enum: [ aud_pin, audio_pwm, blsp_i2c0, 68 blsp_spi1, blsp_uart0, blsp_ua 69 i2s_rx, i2s_spdif_in, i2s_spdi 70 jtag, led0, led1, led2, led3, 71 led8, led9, led10, led11, mdc, 72 prng_rosc, qpic, rgmii, rmii, 73 smart2, smart3, tm, wifi0, wif 74 75 required: 76 - pins 77 78 required: 79 - compatible 80 - reg 81 82 unevaluatedProperties: false 83 84 examples: 85 - | 86 #include <dt-bindings/interrupt-controller 87 tlmm: pinctrl@1000000 { 88 compatible = "qcom,ipq4019-pinctrl"; 89 reg = <0x01000000 0x300000>; 90 91 gpio-controller; 92 #gpio-cells = <2>; 93 gpio-ranges = <&tlmm 0 0 100>; 94 interrupt-controller; 95 #interrupt-cells = <2>; 96 interrupts = <GIC_SPI 208 IRQ_TYPE_LEV 97 98 uart-state { 99 pins = "gpio16", "gpio17"; 100 function = "blsp_uart0"; 101 bias-disable; 102 }; 103 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.