xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/cavium,octeon-3860-gpio.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/cavium,octeon-3860-gpio.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Cavium Octeon 3860 GPIO controller
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Bartosz Golaszewski <brgl@bgdev.pl>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotproperties:
13*833e5d42SEmmanuel Vadot  compatible:
14*833e5d42SEmmanuel Vadot    const: cavium,octeon-3860-gpio
15*833e5d42SEmmanuel Vadot
16*833e5d42SEmmanuel Vadot  reg:
17*833e5d42SEmmanuel Vadot    maxItems: 1
18*833e5d42SEmmanuel Vadot
19*833e5d42SEmmanuel Vadot  gpio-controller: true
20*833e5d42SEmmanuel Vadot
21*833e5d42SEmmanuel Vadot  '#gpio-cells':
22*833e5d42SEmmanuel Vadot    const: 2
23*833e5d42SEmmanuel Vadot
24*833e5d42SEmmanuel Vadot  interrupt-controller: true
25*833e5d42SEmmanuel Vadot
26*833e5d42SEmmanuel Vadot  '#interrupt-cells':
27*833e5d42SEmmanuel Vadot    const: 2
28*833e5d42SEmmanuel Vadot
29*833e5d42SEmmanuel Vadot  interrupts:
30*833e5d42SEmmanuel Vadot    maxItems: 16
31*833e5d42SEmmanuel Vadot
32*833e5d42SEmmanuel Vadotrequired:
33*833e5d42SEmmanuel Vadot  - compatible
34*833e5d42SEmmanuel Vadot  - reg
35*833e5d42SEmmanuel Vadot  - gpio-controller
36*833e5d42SEmmanuel Vadot  - '#gpio-cells'
37*833e5d42SEmmanuel Vadot  - interrupt-controller
38*833e5d42SEmmanuel Vadot  - '#interrupt-cells'
39*833e5d42SEmmanuel Vadot  - interrupts
40*833e5d42SEmmanuel Vadot
41*833e5d42SEmmanuel VadotadditionalProperties: false
42*833e5d42SEmmanuel Vadot
43*833e5d42SEmmanuel Vadotexamples:
44*833e5d42SEmmanuel Vadot  - |
45*833e5d42SEmmanuel Vadot    bus {
46*833e5d42SEmmanuel Vadot        #address-cells = <2>;
47*833e5d42SEmmanuel Vadot        #size-cells = <2>;
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel Vadot        gpio@1070000000800 {
50*833e5d42SEmmanuel Vadot            compatible = "cavium,octeon-3860-gpio";
51*833e5d42SEmmanuel Vadot            reg = <0x10700 0x00000800 0x0 0x100>;
52*833e5d42SEmmanuel Vadot            gpio-controller;
53*833e5d42SEmmanuel Vadot            #gpio-cells = <2>;
54*833e5d42SEmmanuel Vadot            interrupt-controller;
55*833e5d42SEmmanuel Vadot            #interrupt-cells = <2>;
56*833e5d42SEmmanuel Vadot            /* The GPIO pin connect to 16 consecutive CUI bits */
57*833e5d42SEmmanuel Vadot            interrupts = <0 16>, <0 17>, <0 18>, <0 19>,
58*833e5d42SEmmanuel Vadot                        <0 20>, <0 21>, <0 22>, <0 23>,
59*833e5d42SEmmanuel Vadot                        <0 24>, <0 25>, <0 26>, <0 27>,
60*833e5d42SEmmanuel Vadot                        <0 28>, <0 29>, <0 30>, <0 31>;
61*833e5d42SEmmanuel Vadot        };
62*833e5d42SEmmanuel Vadot    };
63