2012-03-01 05:49:57 +00:00
|
|
|
* Marvell PXA GPIO controller
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : Should be "mrvl,pxa-gpio" or "mrvl,mmp-gpio"
|
|
|
|
- reg : Address and length of the register set for the device
|
2012-04-27 08:21:08 +00:00
|
|
|
- interrupts : Should be the port interrupt shared by all gpio pins.
|
|
|
|
There're three gpio interrupts in arch-pxa, and they're gpio0,
|
|
|
|
gpio1 and gpio_mux. There're only one gpio interrupt in arch-mmp,
|
|
|
|
gpio_mux.
|
|
|
|
- interrupt-name : Should be the name of irq resource. Each interrupt
|
|
|
|
binds its interrupt-name.
|
|
|
|
- interrupt-controller : Identifies the node as an interrupt controller.
|
|
|
|
- #interrupt-cells: Specifies the number of cells needed to encode an
|
|
|
|
interrupt source.
|
2012-03-01 05:49:57 +00:00
|
|
|
- gpio-controller : Marks the device node as a gpio controller.
|
|
|
|
- #gpio-cells : Should be one. It is the pin number.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
gpio: gpio@d4019000 {
|
2012-04-27 08:21:08 +00:00
|
|
|
compatible = "mrvl,mmp-gpio";
|
2012-03-01 05:49:57 +00:00
|
|
|
reg = <0xd4019000 0x1000>;
|
2012-04-27 08:21:08 +00:00
|
|
|
interrupts = <49>;
|
|
|
|
interrupt-name = "gpio_mux";
|
2012-03-01 05:49:57 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
};
|