2012-03-01 05:49:57 +00:00
|
|
|
* Marvell PXA GPIO controller
|
|
|
|
|
|
|
|
Required properties:
|
2013-04-09 14:27:50 +00:00
|
|
|
- compatible : Should be "intel,pxa25x-gpio", "intel,pxa26x-gpio",
|
|
|
|
"intel,pxa27x-gpio", "intel,pxa3xx-gpio",
|
2015-01-27 04:46:05 +00:00
|
|
|
"marvell,pxa93x-gpio", "marvell,mmp-gpio",
|
|
|
|
"marvell,mmp2-gpio" or marvell,pxa1928-gpio.
|
2012-03-01 05:49:57 +00:00
|
|
|
- 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.
|
2013-07-11 15:17:54 +00:00
|
|
|
- interrupt-names : Should be the names of irq resources. Each interrupt
|
|
|
|
uses its own interrupt name, so there should be as many interrupt names
|
2015-03-04 03:50:29 +00:00
|
|
|
as referenced interrupts.
|
2012-04-27 08:21:08 +00:00
|
|
|
- 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.
|
2016-09-05 06:20:40 +00:00
|
|
|
- #gpio-cells : Should be two. The first cell is the pin number and
|
|
|
|
the second cell is used to specify flags. See gpio.txt for possible
|
|
|
|
values.
|
2012-03-01 05:49:57 +00:00
|
|
|
|
2014-08-14 09:40:24 +00:00
|
|
|
Example for a MMP platform:
|
2012-03-01 05:49:57 +00:00
|
|
|
|
|
|
|
gpio: gpio@d4019000 {
|
2013-04-09 14:27:50 +00:00
|
|
|
compatible = "marvell,mmp-gpio";
|
2012-03-01 05:49:57 +00:00
|
|
|
reg = <0xd4019000 0x1000>;
|
2012-04-27 08:21:08 +00:00
|
|
|
interrupts = <49>;
|
2013-07-11 15:17:54 +00:00
|
|
|
interrupt-names = "gpio_mux";
|
2012-03-01 05:49:57 +00:00
|
|
|
gpio-controller;
|
2016-09-05 06:20:40 +00:00
|
|
|
#gpio-cells = <2>;
|
2012-03-01 05:49:57 +00:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
};
|
2012-06-27 11:40:04 +00:00
|
|
|
|
2014-08-14 09:40:24 +00:00
|
|
|
Example for a PXA3xx platform:
|
|
|
|
|
|
|
|
gpio: gpio@40e00000 {
|
|
|
|
compatible = "intel,pxa3xx-gpio";
|
|
|
|
reg = <0x40e00000 0x10000>;
|
|
|
|
interrupt-names = "gpio0", "gpio1", "gpio_mux";
|
|
|
|
interrupts = <8 9 10>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <0x2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <0x2>;
|
|
|
|
};
|