blob: 05428f39d9ac0a8dac2eb5c13ae0f1ff53580d0e [file] [log] [blame]
Haojian Zhuang46e446d2012-03-01 13:49:57 +08001* Marvell PXA GPIO controller
2
3Required properties:
4- compatible : Should be "mrvl,pxa-gpio" or "mrvl,mmp-gpio"
5- reg : Address and length of the register set for the device
Haojian Zhuangace12972012-04-27 16:21:08 +08006- 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.
Haojian Zhuang46e446d2012-03-01 13:49:57 +080015- gpio-controller : Marks the device node as a gpio controller.
16- #gpio-cells : Should be one. It is the pin number.
17
18Example:
19
20 gpio: gpio@d4019000 {
Haojian Zhuangace12972012-04-27 16:21:08 +080021 compatible = "mrvl,mmp-gpio";
Haojian Zhuang46e446d2012-03-01 13:49:57 +080022 reg = <0xd4019000 0x1000>;
Haojian Zhuangace12972012-04-27 16:21:08 +080023 interrupts = <49>;
24 interrupt-name = "gpio_mux";
Haojian Zhuang46e446d2012-03-01 13:49:57 +080025 gpio-controller;
26 #gpio-cells = <1>;
27 interrupt-controller;
28 #interrupt-cells = <1>;
29 };