Back to home page

OSCL-LXR

 
 

    


0001 Aspeed GPIO controller Device Tree Bindings
0002 -------------------------------------------
0003 
0004 Required properties:
0005 - compatible            : Either "aspeed,ast2400-gpio", "aspeed,ast2500-gpio",
0006                                         or "aspeed,ast2600-gpio".
0007 
0008 - #gpio-cells           : Should be two
0009                           - First cell is the GPIO line number
0010                           - Second cell is used to specify optional
0011                             parameters (unused)
0012 
0013 - reg                   : Address and length of the register set for the device
0014 - gpio-controller       : Marks the device node as a GPIO controller.
0015 - interrupts            : Interrupt specifier (see interrupt bindings for
0016                           details)
0017 - interrupt-controller  : Mark the GPIO controller as an interrupt-controller
0018 
0019 Optional properties:
0020 
0021 - clocks                : A phandle to the clock to use for debounce timings
0022 - ngpios                : Number of GPIOs controlled by this controller. Should be set
0023                                   when there are multiple GPIO controllers on a SoC (ast2600).
0024 
0025 The gpio and interrupt properties are further described in their respective
0026 bindings documentation:
0027 
0028 - Documentation/devicetree/bindings/gpio/gpio.txt
0029 - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
0030 
0031   Example:
0032         gpio@1e780000 {
0033                 #gpio-cells = <2>;
0034                 compatible = "aspeed,ast2400-gpio";
0035                 gpio-controller;
0036                 interrupts = <20>;
0037                 reg = <0x1e780000 0x1000>;
0038                 interrupt-controller;
0039         };