Back to home page

OSCL-LXR

 
 

    


0001 twl4030 GPIO controller bindings
0002 
0003 Required properties:
0004 - compatible:
0005   - "ti,twl4030-gpio" for twl4030 GPIO controller
0006 - #gpio-cells : Should be two.
0007   - first cell is the pin number
0008   - second cell is used to specify optional parameters (unused)
0009 - gpio-controller : Marks the device node as a GPIO controller.
0010 - #interrupt-cells : Should be 2.
0011 - interrupt-controller: Mark the device node as an interrupt controller
0012   The first cell is the GPIO number.
0013   The second cell is not used.
0014 - ti,use-leds : Enables LEDA and LEDB outputs if set
0015 - ti,debounce : if n-th bit is set, debounces GPIO-n
0016 - ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1)
0017 - ti,pullups : if n-th bit is set, set a pullup on GPIO-n
0018 - ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n
0019 
0020 Example:
0021 
0022 twl_gpio: gpio {
0023     compatible = "ti,twl4030-gpio";
0024     #gpio-cells = <2>;
0025     gpio-controller;
0026     #interrupt-cells = <2>;
0027     interrupt-controller;
0028     ti,use-leds;
0029 };