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