1*4882a593SmuzhiyunNomadik GPIO controller 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- compatible : Should be "st,nomadik-gpio". 5*4882a593Smuzhiyun- reg : Physical base address and length of the controller's registers. 6*4882a593Smuzhiyun- interrupts : The interrupt outputs from the controller. 7*4882a593Smuzhiyun- #gpio-cells : Should be two: 8*4882a593Smuzhiyun The first cell is the pin number. 9*4882a593Smuzhiyun The second cell is used to specify optional parameters: 10*4882a593Smuzhiyun - bits[3:0] trigger type and level flags: 11*4882a593Smuzhiyun 1 = low-to-high edge triggered. 12*4882a593Smuzhiyun 2 = high-to-low edge triggered. 13*4882a593Smuzhiyun 4 = active high level-sensitive. 14*4882a593Smuzhiyun 8 = active low level-sensitive. 15*4882a593Smuzhiyun- gpio-controller : Marks the device node as a GPIO controller. 16*4882a593Smuzhiyun- interrupt-controller : Marks the device node as an interrupt controller. 17*4882a593Smuzhiyun- gpio-bank : Specifies which bank a controller owns. 18*4882a593Smuzhiyun- st,supports-sleepmode : Specifies whether controller can sleep or not 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunExample: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun gpio1: gpio@8012e080 { 23*4882a593Smuzhiyun compatible = "st,nomadik-gpio"; 24*4882a593Smuzhiyun reg = <0x8012e080 0x80>; 25*4882a593Smuzhiyun interrupts = <0 120 0x4>; 26*4882a593Smuzhiyun #gpio-cells = <2>; 27*4882a593Smuzhiyun gpio-controller; 28*4882a593Smuzhiyun interrupt-controller; 29*4882a593Smuzhiyun st,supports-sleepmode; 30*4882a593Smuzhiyun gpio-bank = <1>; 31*4882a593Smuzhiyun }; 32