Commit | Line | Data |
---|---|---|
38ed0187 HK |
1 | Xilinx Zynq GPIO controller Device Tree Bindings |
2 | ------------------------------------------- | |
3 | ||
4 | Required properties: | |
5 | - #gpio-cells : Should be two | |
6 | - First cell is the GPIO line number | |
7 | - Second cell is used to specify optional | |
8 | parameters (unused) | |
bdf7a4ae | 9 | - compatible : Should be "xlnx,zynq-gpio-1.0" or "xlnx,zynqmp-gpio-1.0" |
38ed0187 HK |
10 | - clocks : Clock specifier (see clock bindings for details) |
11 | - gpio-controller : Marks the device node as a GPIO controller. | |
12 | - interrupts : Interrupt specifier (see interrupt bindings for | |
13 | details) | |
14 | - interrupt-parent : Must be core interrupt controller | |
787dfbb2 SB |
15 | - interrupt-controller : Marks the device node as an interrupt controller. |
16 | - #interrupt-cells : Should be 2. The first cell is the GPIO number. | |
17 | The second cell bits[3:0] is used to specify trigger type and level flags: | |
18 | 1 = low-to-high edge triggered. | |
19 | 2 = high-to-low edge triggered. | |
20 | 4 = active high level-sensitive. | |
21 | 8 = active low level-sensitive. | |
38ed0187 HK |
22 | - reg : Address and length of the register set for the device |
23 | ||
24 | Example: | |
25 | gpio@e000a000 { | |
26 | #gpio-cells = <2>; | |
27 | compatible = "xlnx,zynq-gpio-1.0"; | |
28 | clocks = <&clkc 42>; | |
29 | gpio-controller; | |
30 | interrupt-parent = <&intc>; | |
31 | interrupts = <0 20 4>; | |
787dfbb2 SB |
32 | interrupt-controller; |
33 | #interrupt-cells = <2>; | |
38ed0187 HK |
34 | reg = <0xe000a000 0x1000>; |
35 | }; |