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