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