xref: /linux/Documentation/devicetree/bindings/gpio/qca,ar7100-gpio.yaml (revision fcb117e0758d1462128a50c5788555e03b48833b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/qca,ar7100-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Atheros AR7xxx/AR9xxx GPIO controller
8
9maintainers:
10  - Alban Bedel <albeu@free.fr>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - const: qca,ar9132-gpio
17          - const: qca,ar7100-gpio
18      - enum:
19          - qca,ar7100-gpio
20          - qca,ar9340-gpio
21
22  reg:
23    maxItems: 1
24
25  gpio-controller: true
26
27  '#gpio-cells':
28    const: 2
29
30  ngpios: true
31
32  interrupts:
33    maxItems: 1
34
35  interrupt-controller: true
36
37  '#interrupt-cells':
38    const: 2
39
40required:
41  - compatible
42  - reg
43  - gpio-controller
44  - '#gpio-cells'
45  - ngpios
46
47additionalProperties: false
48
49examples:
50  - |
51    gpio@18040000 {
52        compatible = "qca,ar9132-gpio", "qca,ar7100-gpio";
53        reg = <0x18040000 0x30>;
54        interrupts = <2>;
55        ngpios = <22>;
56        gpio-controller;
57        #gpio-cells = <2>;
58        interrupt-controller;
59        #interrupt-cells = <2>;
60    };
61