Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / gpio / mrvl-gpio.txt
1 * Marvell PXA GPIO controller
2
3 Required properties:
4 - compatible : Should be "mrvl,pxa-gpio" or "mrvl,mmp-gpio"
5 - reg : Address and length of the register set for the device
6 - interrupts : Should be the port interrupt shared by all gpio pins.
7   There're three gpio interrupts in arch-pxa, and they're gpio0,
8   gpio1 and gpio_mux. There're only one gpio interrupt in arch-mmp,
9   gpio_mux.
10 - interrupt-name : Should be the name of irq resource. Each interrupt
11   binds its interrupt-name.
12 - interrupt-controller : Identifies the node as an interrupt controller.
13 - #interrupt-cells: Specifies the number of cells needed to encode an
14   interrupt source.
15 - gpio-controller : Marks the device node as a gpio controller.
16 - #gpio-cells : Should be one.  It is the pin number.
17
18 Example:
19
20         gpio: gpio@d4019000 {
21                 compatible = "mrvl,mmp-gpio";
22                 reg = <0xd4019000 0x1000>;
23                 interrupts = <49>;
24                 interrupt-name = "gpio_mux";
25                 gpio-controller;
26                 #gpio-cells = <1>;
27                 interrupt-controller;
28                 #interrupt-cells = <1>;
29       };