xref: /linux/Documentation/devicetree/bindings/gpio/gpio-twl4030.txt (revision b8589e2a8065b8e7773742b60ae96b63b757bb69)
1*b8589e2aSBenoit Coussontwl4030 GPIO controller bindings
2*b8589e2aSBenoit Cousson
3*b8589e2aSBenoit CoussonRequired properties:
4*b8589e2aSBenoit Cousson- compatible:
5*b8589e2aSBenoit Cousson  - "ti,twl4030-gpio" for twl4030 GPIO controller
6*b8589e2aSBenoit Cousson- #gpio-cells : Should be two.
7*b8589e2aSBenoit Cousson  - first cell is the pin number
8*b8589e2aSBenoit Cousson  - second cell is used to specify optional parameters (unused)
9*b8589e2aSBenoit Cousson- gpio-controller : Marks the device node as a GPIO controller.
10*b8589e2aSBenoit Cousson- #interrupt-cells : Should be 2.
11*b8589e2aSBenoit Cousson- interrupt-controller: Mark the device node as an interrupt controller
12*b8589e2aSBenoit Cousson  The first cell is the GPIO number.
13*b8589e2aSBenoit Cousson  The second cell is not used.
14*b8589e2aSBenoit Cousson
15*b8589e2aSBenoit CoussonExample:
16*b8589e2aSBenoit Cousson
17*b8589e2aSBenoit Coussontwl_gpio: gpio {
18*b8589e2aSBenoit Cousson    compatible = "ti,twl4030-gpio";
19*b8589e2aSBenoit Cousson    #gpio-cells = <2>;
20*b8589e2aSBenoit Cousson    gpio-controller;
21*b8589e2aSBenoit Cousson    #interrupt-cells = <2>;
22*b8589e2aSBenoit Cousson    interrupt-controller;
23*b8589e2aSBenoit Cousson};
24