Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / Documentation / devicetree / bindings / gpio / gpio-davinci.txt
bloba2e839d6e338b5e15c31e951b30dd72615099ad3
1 Davinci GPIO controller bindings
3 Required Properties:
4 - compatible: should be "ti,dm6441-gpio"
6 - reg: Physical base address of the controller and the size of memory mapped
7        registers.
9 - gpio-controller : Marks the device node as a gpio controller.
11 - interrupt-parent: phandle of the parent interrupt controller.
13 - interrupts: Array of GPIO interrupt number. Only banked or unbanked IRQs are
14               supported at a time.
16 - ti,ngpio: The number of GPIO pins supported.
18 - ti,davinci-gpio-unbanked: The number of GPIOs that have an individual interrupt
19                              line to processor.
21 The GPIO controller also acts as an interrupt controller. It uses the default
22 two cells specifier as described in Documentation/devicetree/bindings/
23 interrupt-controller/interrupts.txt.
25 Example:
27 gpio: gpio@1e26000 {
28         compatible = "ti,dm6441-gpio";
29         gpio-controller;
30         reg = <0x226000 0x1000>;
31         interrupt-parent = <&intc>;
32         interrupts = <42 IRQ_TYPE_EDGE_BOTH 43 IRQ_TYPE_EDGE_BOTH
33                 44 IRQ_TYPE_EDGE_BOTH 45 IRQ_TYPE_EDGE_BOTH
34                 46 IRQ_TYPE_EDGE_BOTH 47 IRQ_TYPE_EDGE_BOTH
35                 48 IRQ_TYPE_EDGE_BOTH 49 IRQ_TYPE_EDGE_BOTH
36                 50 IRQ_TYPE_EDGE_BOTH>;
37         ti,ngpio = <144>;
38         ti,davinci-gpio-unbanked = <0>;
39         interrupt-controller;
40         #interrupt-cells = <2>;