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 optional parameters (currently
18 - interrupt-controller: Marks the device node as an interrupt controller.
19 - #interrupt-cells : Should be 2. The first cell is the GPIO number.
20 The second cell bits[3:0] is used to specify trigger type and level flags:
21 1 = low-to-high edge triggered.
22 2 = high-to-low edge triggered.
23 4 = active high level-sensitive.
24 8 = active low level-sensitive.
26 Note: Each GPIO port should have an alias correctly numbered in "aliases"
40 compatible = "fsl,imx28-pinctrl", "simple-bus";
41 reg = <0x80018000 2000>;
44 compatible = "fsl,imx28-gpio";
49 #interrupt-cells = <2>;
53 compatible = "fsl,imx28-gpio";
58 #interrupt-cells = <2>;
62 compatible = "fsl,imx28-gpio";
67 #interrupt-cells = <2>;
71 compatible = "fsl,imx28-gpio";
76 #interrupt-cells = <2>;
80 compatible = "fsl,imx28-gpio";
85 #interrupt-cells = <2>;