diff options
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/gpio-davinci.txt')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-davinci.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt new file mode 100644 index 000000000000..a2e839d6e338 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt | |||
@@ -0,0 +1,41 @@ | |||
1 | Davinci GPIO controller bindings | ||
2 | |||
3 | Required Properties: | ||
4 | - compatible: should be "ti,dm6441-gpio" | ||
5 | |||
6 | - reg: Physical base address of the controller and the size of memory mapped | ||
7 | registers. | ||
8 | |||
9 | - gpio-controller : Marks the device node as a gpio controller. | ||
10 | |||
11 | - interrupt-parent: phandle of the parent interrupt controller. | ||
12 | |||
13 | - interrupts: Array of GPIO interrupt number. Only banked or unbanked IRQs are | ||
14 | supported at a time. | ||
15 | |||
16 | - ti,ngpio: The number of GPIO pins supported. | ||
17 | |||
18 | - ti,davinci-gpio-unbanked: The number of GPIOs that have an individual interrupt | ||
19 | line to processor. | ||
20 | |||
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. | ||
24 | |||
25 | Example: | ||
26 | |||
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>; | ||
41 | }; | ||