2016-03-23 09:47:19 +00:00
|
|
|
* Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
|
2015-07-16 19:08:24 +00:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : Should be "fsl,<soc>-gpio"
|
|
|
|
The following <soc>s are known to be supported:
|
2016-03-23 09:47:19 +00:00
|
|
|
mpc5121, mpc5125, mpc8349, mpc8572, mpc8610, pq3, qoriq,
|
|
|
|
ls1021a, ls1043a, ls2080a.
|
2015-07-16 19:08:24 +00:00
|
|
|
- reg : Address and length of the register set for the device
|
|
|
|
- interrupts : Should be the port interrupt shared by all 32 pins.
|
|
|
|
- #gpio-cells : Should be two. The first cell is the pin number and
|
|
|
|
the second cell is used to specify the gpio polarity:
|
|
|
|
0 = active high
|
|
|
|
1 = active low
|
|
|
|
|
2015-12-04 22:55:04 +00:00
|
|
|
Optional properties:
|
|
|
|
- little-endian : GPIO registers are used as little endian. If not
|
|
|
|
present registers are used as big endian by default.
|
|
|
|
|
2016-03-23 09:47:19 +00:00
|
|
|
Example of gpio-controller node for a mpc5125 SoC:
|
2015-07-16 19:08:24 +00:00
|
|
|
|
|
|
|
gpio0: gpio@1100 {
|
|
|
|
compatible = "fsl,mpc5125-gpio";
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
reg = <0x1100 0x080>;
|
|
|
|
interrupts = <78 0x8>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-03-23 09:47:19 +00:00
|
|
|
|
|
|
|
Example of gpio-controller node for a ls2080a SoC:
|
|
|
|
|
|
|
|
gpio0: gpio@2300000 {
|
|
|
|
compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
|
|
|
|
reg = <0x0 0x2300000 0x0 0x10000>;
|
|
|
|
interrupts = <0 36 0x4>; /* Level high type */
|
|
|
|
gpio-controller;
|
|
|
|
little-endian;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|