136 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/gpio-mxs.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Freescale MXS GPIO controller8 9maintainers:10 - Shawn Guo <shawnguo@kernel.org>11 12description: |13 The Freescale MXS GPIO controller is part of MXS PIN controller.14 The GPIOs are organized in port/bank, each port consists of 32 GPIOs.15 As the GPIO controller is embedded in the PIN controller and all the16 GPIO ports share the same IO space with PIN controller, the GPIO node17 will be represented as sub-nodes of MXS pinctrl node.18 19properties:20 compatible:21 enum:22 - fsl,imx23-pinctrl23 - fsl,imx28-pinctrl24 25 '#address-cells':26 const: 127 '#size-cells':28 const: 029 30 reg:31 maxItems: 132 33patternProperties:34 "gpio@[0-9]+$":35 type: object36 properties:37 compatible:38 enum:39 - fsl,imx23-gpio40 - fsl,imx28-gpio41 42 reg:43 maxItems: 144 45 interrupts:46 description: Should be the port interrupt shared by all 32 pins.47 maxItems: 148 49 interrupt-controller: true50 51 "#interrupt-cells":52 const: 253 54 "#gpio-cells":55 const: 256 57 gpio-controller: true58 59 required:60 - compatible61 - reg62 - interrupts63 - interrupt-controller64 - "#interrupt-cells"65 - "#gpio-cells"66 - gpio-controller67 68 additionalProperties: false69 70required:71 - compatible72 - reg73 - '#address-cells'74 - '#size-cells'75 76additionalProperties: false77 78examples:79 - |80 pinctrl@80018000 {81 #address-cells = <1>;82 #size-cells = <0>;83 compatible = "fsl,imx28-pinctrl";84 reg = <0x80018000 0x2000>;85 86 gpio@0 {87 compatible = "fsl,imx28-gpio";88 reg = <0>;89 interrupts = <127>;90 gpio-controller;91 #gpio-cells = <2>;92 interrupt-controller;93 #interrupt-cells = <2>;94 };95 96 gpio@1 {97 compatible = "fsl,imx28-gpio";98 reg = <1>;99 interrupts = <126>;100 gpio-controller;101 #gpio-cells = <2>;102 interrupt-controller;103 #interrupt-cells = <2>;104 };105 106 gpio@2 {107 compatible = "fsl,imx28-gpio";108 reg = <2>;109 interrupts = <125>;110 gpio-controller;111 #gpio-cells = <2>;112 interrupt-controller;113 #interrupt-cells = <2>;114 };115 116 gpio@3 {117 compatible = "fsl,imx28-gpio";118 reg = <3>;119 interrupts = <124>;120 gpio-controller;121 #gpio-cells = <2>;122 interrupt-controller;123 #interrupt-cells = <2>;124 };125 126 gpio@4 {127 compatible = "fsl,imx28-gpio";128 reg = <4>;129 interrupts = <123>;130 gpio-controller;131 #gpio-cells = <2>;132 interrupt-controller;133 #interrupt-cells = <2>;134 };135 };136