0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: MStar/SigmaStar GPIO controller
0008
0009 maintainers:
0010 - Daniel Palmer <daniel@thingy.jp>
0011
0012 properties:
0013 $nodename:
0014 pattern: "^gpio@[0-9a-f]+$"
0015
0016 compatible:
0017 enum:
0018 - mstar,msc313-gpio
0019 - sstar,ssd20xd-gpio
0020
0021 reg:
0022 maxItems: 1
0023
0024 gpio-controller: true
0025
0026 "#gpio-cells":
0027 const: 2
0028
0029 gpio-ranges: true
0030
0031 interrupt-controller: true
0032
0033 "#interrupt-cells":
0034 const: 2
0035
0036 required:
0037 - compatible
0038 - reg
0039 - gpio-controller
0040 - "#gpio-cells"
0041 - interrupt-controller
0042 - "#interrupt-cells"
0043
0044 additionalProperties: false
0045
0046 examples:
0047 - |
0048 #include <dt-bindings/gpio/msc313-gpio.h>
0049
0050 gpio: gpio@207800 {
0051 compatible = "mstar,msc313-gpio";
0052 #gpio-cells = <2>;
0053 reg = <0x207800 0x200>;
0054 gpio-controller;
0055 gpio-ranges = <&pinctrl 0 36 22>,
0056 <&pinctrl 22 63 4>,
0057 <&pinctrl 26 68 6>;
0058 #interrupt-cells = <2>;
0059 interrupt-controller;
0060 interrupt-parent = <&intc_fiq>;
0061 };