Back to home page

OSCL-LXR

 
 

    


0001 * Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
0002 
0003 Required properties:
0004 - compatible : Should be "fsl,<soc>-gpio"
0005   The following <soc>s are known to be supported:
0006         mpc5121, mpc5125, mpc8349, mpc8572, mpc8610, pq3, qoriq,
0007         ls1021a, ls1043a, ls2080a, ls1028a, ls1088a.
0008 - reg : Address and length of the register set for the device
0009 - interrupts : Should be the port interrupt shared by all 32 pins.
0010 - #gpio-cells : Should be two.  The first cell is the pin number and
0011   the second cell is used to specify the gpio polarity:
0012       0 = active high
0013       1 = active low
0014 
0015 Optional properties:
0016 - little-endian : GPIO registers are used as little endian. If not
0017                   present registers are used as big endian by default.
0018 
0019 Example of gpio-controller node for a mpc5125 SoC:
0020 
0021 gpio0: gpio@1100 {
0022         compatible = "fsl,mpc5125-gpio";
0023         #gpio-cells = <2>;
0024         reg = <0x1100 0x080>;
0025         interrupts = <78 0x8>;
0026 };
0027 
0028 Example of gpio-controller node for a ls2080a SoC:
0029 
0030 gpio0: gpio@2300000 {
0031         compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
0032         reg = <0x0 0x2300000 0x0 0x10000>;
0033         interrupts = <0 36 0x4>; /* Level high type */
0034         gpio-controller;
0035         little-endian;
0036         #gpio-cells = <2>;
0037         interrupt-controller;
0038         #interrupt-cells = <2>;
0039 };
0040 
0041 
0042 Example of gpio-controller node for a ls1028a/ls1088a SoC:
0043 
0044 gpio1: gpio@2300000 {
0045         compatible = "fsl,ls1028a-gpio", "fsl,ls1088a-gpio", "fsl,qoriq-gpio";
0046         reg = <0x0 0x2300000 0x0 0x10000>;
0047         interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
0048         gpio-controller;
0049         #gpio-cells = <2>;
0050         interrupt-controller;
0051         #interrupt-cells = <2>;
0052         little-endian;
0053 };