WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / gpio / mstar,msc313-gpio.yaml
blob1f2ef408bb436ed29961a04de358752253406816
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#
7 title: MStar/SigmaStar GPIO controller
9 maintainers:
10   - Daniel Palmer <daniel@thingy.jp>
12 properties:
13   $nodename:
14     pattern: "^gpio@[0-9a-f]+$"
16   compatible:
17     const: mstar,msc313-gpio
19   reg:
20     maxItems: 1
22   gpio-controller: true
24   "#gpio-cells":
25     const: 2
27   gpio-ranges: true
29   interrupt-controller: true
31   "#interrupt-cells":
32     const: 2
34 required:
35   - compatible
36   - reg
37   - gpio-controller
38   - "#gpio-cells"
39   - interrupt-controller
40   - "#interrupt-cells"
42 additionalProperties: false
44 examples:
45   - |
46     #include <dt-bindings/gpio/msc313-gpio.h>
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     };