blob: 5f360e7cdd324901246155cbece7d3bc3c46e102 [file] [log] [blame]
Shawn Guo8937cb62011-07-07 00:37:43 +08001* Freescale i.MX/MXC GPIO controller
2
3Required properties:
4- compatible : Should be "fsl,<soc>-gpio"
5- reg : Address and length of the register set for the device
6- interrupts : Should be the port interrupt shared by all 32 pins, if
7 one number. If two numbers, the first one is the interrupt shared
8 by low 16 pins and the second one is for high 16 pins.
9- gpio-controller : Marks the device node as a gpio controller.
10- #gpio-cells : Should be two. The first cell is the pin number and
Shawn Guoc1cb4382012-06-28 11:15:37 +080011 the second cell is used to specify the gpio polarity:
12 0 = active high
13 1 = active low
Shawn Guo8937cb62011-07-07 00:37:43 +080014
15Example:
16
17gpio0: gpio@73f84000 {
18 compatible = "fsl,imx51-gpio", "fsl,imx31-gpio";
19 reg = <0x73f84000 0x4000>;
20 interrupts = <50 51>;
21 gpio-controller;
22 #gpio-cells = <2>;
23};