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