xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/faraday,ftgpio010.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/faraday,ftgpio010.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Faraday Technology FTGPIO010 GPIO Controller
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - const: cortina,gemini-gpio
17          - const: faraday,ftgpio010
18      - items:
19          - const: moxa,moxart-gpio
20          - const: faraday,ftgpio010
21      - const: faraday,ftgpio010
22
23  reg:
24    maxItems: 1
25
26  resets:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34    description: Should contain the interrupt line for the GPIO block
35
36  gpio-controller: true
37  "#gpio-cells":
38    const: 2
39
40  interrupt-controller: true
41  "#interrupt-cells":
42    const: 2
43
44required:
45  - compatible
46  - reg
47  - interrupts
48  - "#gpio-cells"
49  - interrupt-controller
50  - "#interrupt-cells"
51
52additionalProperties: false
53
54examples:
55  - |
56    #include <dt-bindings/interrupt-controller/irq.h>
57    gpio@4d000000 {
58      compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
59      reg = <0x4d000000 0x100>;
60      interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
61      gpio-controller;
62      #gpio-cells = <2>;
63      interrupt-controller;
64      #interrupt-cells = <2>;
65    };
66