Commit | Line | Data |
---|---|---|
95e7fc84 WC |
1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
2 | %YAML 1.2 | |
3 | --- | |
4 | $id: http://devicetree.org/schemas/gpio/hisilicon,ascend910-gpio.yaml# | |
5 | $schema: http://devicetree.org/meta-schemas/core.yaml# | |
6 | ||
7 | title: HiSilicon common GPIO controller | |
8 | ||
9 | maintainers: | |
10 | - Jay Fang <f.fangjian@huawei.com> | |
11 | ||
12 | description: | |
13 | The HiSilicon common GPIO controller can be used for many different | |
14 | types of SoC such as Huawei Ascend AI series chips. | |
15 | ||
16 | properties: | |
17 | compatible: | |
18 | const: hisilicon,ascend910-gpio | |
19 | ||
20 | reg: | |
21 | maxItems: 1 | |
22 | ||
23 | interrupts: | |
24 | maxItems: 1 | |
25 | ||
26 | gpio-controller: true | |
27 | ||
28 | "#gpio-cells": | |
29 | const: 2 | |
30 | ||
31 | ngpios: | |
32 | minimum: 1 | |
33 | maximum: 32 | |
34 | ||
35 | required: | |
36 | - compatible | |
37 | - reg | |
38 | - interrupts | |
39 | - gpio-controller | |
40 | - "#gpio-cells" | |
41 | - ngpios | |
42 | ||
43 | additionalProperties: false | |
44 | ||
45 | examples: | |
46 | - | | |
47 | #include <dt-bindings/interrupt-controller/arm-gic.h> | |
48 | ||
49 | gpio@840d0000 { | |
50 | compatible = "hisilicon,ascend910-gpio"; | |
51 | reg = <0x840d0000 0x1000>; | |
52 | ngpios = <32>; | |
53 | gpio-controller; | |
54 | #gpio-cells = <2>; | |
55 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; | |
56 | }; |