gpio-aspeed.txt (1278B)
1Aspeed GPIO controller Device Tree Bindings 2------------------------------------------- 3 4Required properties: 5- compatible : Either "aspeed,ast2400-gpio", "aspeed,ast2500-gpio", 6 or "aspeed,ast2600-gpio". 7 8- #gpio-cells : Should be two 9 - First cell is the GPIO line number 10 - Second cell is used to specify optional 11 parameters (unused) 12 13- reg : Address and length of the register set for the device 14- gpio-controller : Marks the device node as a GPIO controller. 15- interrupts : Interrupt specifier (see interrupt bindings for 16 details) 17- interrupt-controller : Mark the GPIO controller as an interrupt-controller 18 19Optional properties: 20 21- clocks : A phandle to the clock to use for debounce timings 22- ngpios : Number of GPIOs controlled by this controller. Should be set 23 when there are multiple GPIO controllers on a SoC (ast2600). 24 25The gpio and interrupt properties are further described in their respective 26bindings documentation: 27 28- Documentation/devicetree/bindings/gpio/gpio.txt 29- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 30 31 Example: 32 gpio@1e780000 { 33 #gpio-cells = <2>; 34 compatible = "aspeed,ast2400-gpio"; 35 gpio-controller; 36 interrupts = <20>; 37 reg = <0x1e780000 0x1000>; 38 interrupt-controller; 39 };