xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-zynq.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/gpio-zynq.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Xilinx Zynq GPIO controller Device Tree Bindings
8
9maintainers:
10  - Michal Simek <michal.simek@xilinx.com>
11
12properties:
13  compatible:
14    const: xlnx,zynq-gpio-1.0
15
16  reg:
17    maxItems: 1
18
19  "#gpio-cells":
20    const: 2
21
22  interrupts:
23    maxItems: 1
24
25  gpio-controller: true
26
27  interrupt-controller: true
28
29  "#interrupt-cells":
30    const: 2
31
32  clocks:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - "#gpio-cells"
39  - interrupts
40  - gpio-controller
41  - interrupt-controller
42  - "#interrupt-cells"
43  - clocks
44
45additionalProperties: false
46
47examples:
48  - |
49    gpio@e000a000 {
50      #gpio-cells = <2>;
51      compatible = "xlnx,zynq-gpio-1.0";
52      clocks = <&clkc 42>;
53      gpio-controller;
54      interrupt-parent = <&intc>;
55      interrupts = <0 20 4>;
56      interrupt-controller;
57      #interrupt-cells = <2>;
58      reg = <0xe000a000 0x1000>;
59    };
60