Back to home page

OSCL-LXR

 
 

    


0001 Nomadik GPIO controller
0002 
0003 Required properties:
0004 - compatible            : Should be "st,nomadik-gpio".
0005 - reg                   : Physical base address and length of the controller's registers.
0006 - interrupts            : The interrupt outputs from the controller.
0007 - #gpio-cells           : Should be two:
0008                             The first cell is the pin number.
0009                             The second cell is used to specify optional parameters:
0010                               - bits[3:0] trigger type and level flags:
0011                                   1 = low-to-high edge triggered.
0012                                   2 = high-to-low edge triggered.
0013                                   4 = active high level-sensitive.
0014                                   8 = active low level-sensitive.
0015 - gpio-controller       : Marks the device node as a GPIO controller.
0016 - interrupt-controller  : Marks the device node as an interrupt controller.
0017 - gpio-bank             : Specifies which bank a controller owns.
0018 - st,supports-sleepmode : Specifies whether controller can sleep or not
0019 
0020 Example:
0021 
0022                 gpio1: gpio@8012e080 {
0023                         compatible = "st,nomadik-gpio";
0024                         reg =  <0x8012e080 0x80>;
0025                         interrupts = <0 120 0x4>;
0026                         #gpio-cells = <2>;
0027                         gpio-controller;
0028                         interrupt-controller;
0029                         st,supports-sleepmode;
0030                         gpio-bank = <1>;
0031                 };