1Davinci/Keystone GPIO controller bindings
2
3Required Properties:
4- compatible: should be "ti,dm6441-gpio", "ti,keystone-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- #gpio-cells : Should be two.
12  - first cell is the pin number
13  - second cell is used to specify optional parameters (unused)
14
15- interrupt-parent: phandle of the parent interrupt controller.
16
17- interrupts: Array of GPIO interrupt number. Only banked or unbanked IRQs are
18	      supported at a time.
19
20- ti,ngpio: The number of GPIO pins supported.
21
22- ti,davinci-gpio-unbanked: The number of GPIOs that have an individual interrupt
23		             line to processor.
24
25The GPIO controller also acts as an interrupt controller. It uses the default
26two cells specifier as described in Documentation/devicetree/bindings/
27interrupt-controller/interrupts.txt.
28
29Example:
30
31gpio: gpio@1e26000 {
32	compatible = "ti,dm6441-gpio";
33	gpio-controller;
34	#gpio-cells = <2>;
35	reg = <0x226000 0x1000>;
36	interrupt-parent = <&intc>;
37	interrupts = <42 IRQ_TYPE_EDGE_BOTH 43 IRQ_TYPE_EDGE_BOTH
38		44 IRQ_TYPE_EDGE_BOTH 45 IRQ_TYPE_EDGE_BOTH
39		46 IRQ_TYPE_EDGE_BOTH 47 IRQ_TYPE_EDGE_BOTH
40		48 IRQ_TYPE_EDGE_BOTH 49 IRQ_TYPE_EDGE_BOTH
41		50 IRQ_TYPE_EDGE_BOTH>;
42	ti,ngpio = <144>;
43	ti,davinci-gpio-unbanked = <0>;
44	interrupt-controller;
45	#interrupt-cells = <2>;
46};
47
48leds {
49	compatible = "gpio-leds";
50
51	led1 {
52		label = "davinci:green:usr1";
53		gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
54		...
55	};
56
57	led2 {
58		label = "davinci:red:debug1";
59		gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
60		...
61	};
62};
63