1 * Freescale MXS GPIO controller
3 The Freescale MXS GPIO controller is part of MXS PIN controller. The
4 GPIOs are organized in port/bank. Each port consists of 32 GPIOs.
6 As the GPIO controller is embedded in the PIN controller and all the
7 GPIO ports share the same IO space with PIN controller, the GPIO node
8 will be represented as sub-nodes of MXS pinctrl node.
10 Required properties for GPIO node:
11 - compatible : Should be "fsl,<soc>-gpio". The supported SoCs include
13 - interrupts : Should be the port interrupt shared by all 32 pins.
14 - gpio-controller : Marks the device node as a gpio controller.
15 - #gpio-cells : Should be two. The first cell is the pin number and
16 the second cell is used to specify the gpio polarity:
19 - interrupt-controller: Marks the device node as an interrupt controller.
20 - #interrupt-cells : Should be 2. The first cell is the GPIO number.
21 The second cell bits[3:0] is used to specify trigger type and level flags:
22 1 = low-to-high edge triggered.
23 2 = high-to-low edge triggered.
24 4 = active high level-sensitive.
25 8 = active low level-sensitive.
27 Note: Each GPIO port should have an alias correctly numbered in "aliases"
41 compatible = "fsl,imx28-pinctrl", "simple-bus";
42 reg = <0x80018000 2000>;
45 compatible = "fsl,imx28-gpio";
50 #interrupt-cells = <2>;
54 compatible = "fsl,imx28-gpio";
59 #interrupt-cells = <2>;
63 compatible = "fsl,imx28-gpio";
68 #interrupt-cells = <2>;
72 compatible = "fsl,imx28-gpio";
77 #interrupt-cells = <2>;
81 compatible = "fsl,imx28-gpio";
86 #interrupt-cells = <2>;