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)
9 - compatible : Should be "xlnx,zynq-gpio-1.0" or
10 "xlnx,zynqmp-gpio-1.0" or "xlnx,versal-gpio-1.0
11 or "xlnx,pmc-gpio-1.0
12 - clocks : Clock specifier (see clock bindings for details)
13 - gpio-controller : Marks the device node as a GPIO controller.
14 - interrupts : Interrupt specifier (see interrupt bindings for
15 details)
16 - interrupt-controller : Marks the device node as an interrupt controller.
17 - #interrupt-cells : Should be 2. The first cell is the GPIO number.
18 The second cell bits[3:0] is used to specify trigger type and level flags:
19 1 = low-to-high edge triggered.
20 2 = high-to-low edge triggered.
21 4 = active high level-sensitive.
22 8 = active low level-sensitive.
23 - reg : Address and length of the register set for the device
24
25 Example:
26 gpio@e000a000 {
27 #gpio-cells = <2>;
28 compatible = "xlnx,zynq-gpio-1.0";
29 clocks = <&clkc 42>;
30 gpio-controller;
31 interrupt-parent = <&intc>;
32 interrupts = <0 20 4>;
33 interrupt-controller;
34 #interrupt-cells = <2>;
35 reg = <0xe000a000 0x1000>;
36 };
Cache object: 85bc485e384b13c56203976e048e0980
|