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