1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/idt,32434-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: IDT 79RC32434 GPIO controller
8
9maintainers:
10  - Thomas Bogendoerfer <tsbogend@alpha.franken.de>
11
12properties:
13  compatible:
14    const: idt,32434-gpio
15
16  reg:
17    maxItems: 2
18
19  reg-names:
20    items:
21      - const: gpio
22      - const: pic
23
24  gpio-controller: true
25
26  "#gpio-cells":
27    const: 2
28
29  ngpios:
30    minimum: 1
31    maximum: 32
32
33  interrupt-controller: true
34
35  "#interrupt-cells":
36    const: 2
37
38  interrupts:
39    maxItems: 1
40
41required:
42  - compatible
43  - reg
44  - reg-names
45  - gpio-controller
46  - "#gpio-cells"
47
48additionalProperties: false
49
50examples:
51  - |
52    gpio0: gpio@50004 {
53        compatible = "idt,32434-gpio";
54        reg = <0x50004 0x10>, <0x38030 0x0c>;
55        reg-names = "gpio", "pic";
56
57        interrupt-controller;
58        #interrupt-cells = <2>;
59
60        interrupt-parent = <&cpuintc>;
61        interrupts = <6>;
62
63        gpio-controller;
64        #gpio-cells = <2>;
65
66        ngpios = <14>;
67    };
68