1493c7e03SDaniel Palmer# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2493c7e03SDaniel Palmer%YAML 1.2
3493c7e03SDaniel Palmer---
4493c7e03SDaniel Palmer$id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#
5493c7e03SDaniel Palmer$schema: http://devicetree.org/meta-schemas/core.yaml#
6493c7e03SDaniel Palmer
7493c7e03SDaniel Palmertitle: MStar/SigmaStar GPIO controller
8493c7e03SDaniel Palmer
9493c7e03SDaniel Palmermaintainers:
10493c7e03SDaniel Palmer  - Daniel Palmer <daniel@thingy.jp>
11493c7e03SDaniel Palmer
12493c7e03SDaniel Palmerproperties:
13493c7e03SDaniel Palmer  $nodename:
14493c7e03SDaniel Palmer    pattern: "^gpio@[0-9a-f]+$"
15493c7e03SDaniel Palmer
16493c7e03SDaniel Palmer  compatible:
17493c7e03SDaniel Palmer    const: mstar,msc313-gpio
18493c7e03SDaniel Palmer
19493c7e03SDaniel Palmer  reg:
20493c7e03SDaniel Palmer    maxItems: 1
21493c7e03SDaniel Palmer
22493c7e03SDaniel Palmer  gpio-controller: true
23493c7e03SDaniel Palmer
24493c7e03SDaniel Palmer  "#gpio-cells":
25493c7e03SDaniel Palmer    const: 2
26493c7e03SDaniel Palmer
27493c7e03SDaniel Palmer  gpio-ranges: true
28493c7e03SDaniel Palmer
29493c7e03SDaniel Palmer  interrupt-controller: true
30493c7e03SDaniel Palmer
31493c7e03SDaniel Palmer  "#interrupt-cells":
32493c7e03SDaniel Palmer    const: 2
33493c7e03SDaniel Palmer
34493c7e03SDaniel Palmerrequired:
35493c7e03SDaniel Palmer  - compatible
36493c7e03SDaniel Palmer  - reg
37493c7e03SDaniel Palmer  - gpio-controller
38493c7e03SDaniel Palmer  - "#gpio-cells"
39493c7e03SDaniel Palmer  - interrupt-controller
40493c7e03SDaniel Palmer  - "#interrupt-cells"
41493c7e03SDaniel Palmer
42493c7e03SDaniel PalmeradditionalProperties: false
43493c7e03SDaniel Palmer
44493c7e03SDaniel Palmerexamples:
45493c7e03SDaniel Palmer  - |
46493c7e03SDaniel Palmer    #include <dt-bindings/gpio/msc313-gpio.h>
47493c7e03SDaniel Palmer
48493c7e03SDaniel Palmer    gpio: gpio@207800 {
49*91f93c38SRob Herring      compatible = "mstar,msc313-gpio";
50493c7e03SDaniel Palmer      #gpio-cells = <2>;
51493c7e03SDaniel Palmer      reg = <0x207800 0x200>;
52493c7e03SDaniel Palmer      gpio-controller;
53493c7e03SDaniel Palmer      gpio-ranges = <&pinctrl 0 36 22>,
54493c7e03SDaniel Palmer                    <&pinctrl 22 63 4>,
55493c7e03SDaniel Palmer                    <&pinctrl 26 68 6>;
56493c7e03SDaniel Palmer      #interrupt-cells = <2>;
57493c7e03SDaniel Palmer      interrupt-controller;
58493c7e03SDaniel Palmer      interrupt-parent = <&intc_fiq>;
59493c7e03SDaniel Palmer    };
60