1*4882a593Smuzhiyuntwl4030 GPIO controller bindings 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- compatible: 5*4882a593Smuzhiyun - "ti,twl4030-gpio" for twl4030 GPIO controller 6*4882a593Smuzhiyun- #gpio-cells : Should be two. 7*4882a593Smuzhiyun - first cell is the pin number 8*4882a593Smuzhiyun - second cell is used to specify optional parameters (unused) 9*4882a593Smuzhiyun- gpio-controller : Marks the device node as a GPIO controller. 10*4882a593Smuzhiyun- #interrupt-cells : Should be 2. 11*4882a593Smuzhiyun- interrupt-controller: Mark the device node as an interrupt controller 12*4882a593Smuzhiyun The first cell is the GPIO number. 13*4882a593Smuzhiyun The second cell is not used. 14*4882a593Smuzhiyun- ti,use-leds : Enables LEDA and LEDB outputs if set 15*4882a593Smuzhiyun- ti,debounce : if n-th bit is set, debounces GPIO-n 16*4882a593Smuzhiyun- ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1) 17*4882a593Smuzhiyun- ti,pullups : if n-th bit is set, set a pullup on GPIO-n 18*4882a593Smuzhiyun- ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunExample: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuntwl_gpio: gpio { 23*4882a593Smuzhiyun compatible = "ti,twl4030-gpio"; 24*4882a593Smuzhiyun #gpio-cells = <2>; 25*4882a593Smuzhiyun gpio-controller; 26*4882a593Smuzhiyun #interrupt-cells = <2>; 27*4882a593Smuzhiyun interrupt-controller; 28*4882a593Smuzhiyun ti,use-leds; 29*4882a593Smuzhiyun}; 30