Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / gpio / mstar,msc313-gpio.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: MStar/SigmaStar GPIO controller
8
9 maintainers:
10   - Daniel Palmer <daniel@thingy.jp>
11
12 properties:
13   $nodename:
14     pattern: "^gpio@[0-9a-f]+$"
15
16   compatible:
17     const: mstar,msc313-gpio
18
19   reg:
20     maxItems: 1
21
22   gpio-controller: true
23
24   "#gpio-cells":
25     const: 2
26
27   gpio-ranges: true
28
29   interrupt-controller: true
30
31   "#interrupt-cells":
32     const: 2
33
34 required:
35   - compatible
36   - reg
37   - gpio-controller
38   - "#gpio-cells"
39   - interrupt-controller
40   - "#interrupt-cells"
41
42 additionalProperties: false
43
44 examples:
45   - |
46     #include <dt-bindings/gpio/msc313-gpio.h>
47
48     gpio: gpio@207800 {
49       compatible = "mstar,msc313e-gpio";
50       #gpio-cells = <2>;
51       reg = <0x207800 0x200>;
52       gpio-controller;
53       gpio-ranges = <&pinctrl 0 36 22>,
54                     <&pinctrl 22 63 4>,
55                     <&pinctrl 26 68 6>;
56       #interrupt-cells = <2>;
57       interrupt-controller;
58       interrupt-parent = <&intc_fiq>;
59     };