xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/mstar,msc313-gpio.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: MStar/SigmaStar GPIO controller
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Daniel Palmer <daniel@thingy.jp>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  $nodename:
145def4c47SEmmanuel Vadot    pattern: "^gpio@[0-9a-f]+$"
155def4c47SEmmanuel Vadot
165def4c47SEmmanuel Vadot  compatible:
17*e67e8565SEmmanuel Vadot    enum:
18*e67e8565SEmmanuel Vadot      - mstar,msc313-gpio
19*e67e8565SEmmanuel Vadot      - sstar,ssd20xd-gpio
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadot  reg:
225def4c47SEmmanuel Vadot    maxItems: 1
235def4c47SEmmanuel Vadot
245def4c47SEmmanuel Vadot  gpio-controller: true
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  "#gpio-cells":
275def4c47SEmmanuel Vadot    const: 2
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  gpio-ranges: true
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  interrupt-controller: true
325def4c47SEmmanuel Vadot
335def4c47SEmmanuel Vadot  "#interrupt-cells":
345def4c47SEmmanuel Vadot    const: 2
355def4c47SEmmanuel Vadot
365def4c47SEmmanuel Vadotrequired:
375def4c47SEmmanuel Vadot  - compatible
385def4c47SEmmanuel Vadot  - reg
395def4c47SEmmanuel Vadot  - gpio-controller
405def4c47SEmmanuel Vadot  - "#gpio-cells"
415def4c47SEmmanuel Vadot  - interrupt-controller
425def4c47SEmmanuel Vadot  - "#interrupt-cells"
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel VadotadditionalProperties: false
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadotexamples:
475def4c47SEmmanuel Vadot  - |
485def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/msc313-gpio.h>
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel Vadot    gpio: gpio@207800 {
515def4c47SEmmanuel Vadot      compatible = "mstar,msc313-gpio";
525def4c47SEmmanuel Vadot      #gpio-cells = <2>;
535def4c47SEmmanuel Vadot      reg = <0x207800 0x200>;
545def4c47SEmmanuel Vadot      gpio-controller;
555def4c47SEmmanuel Vadot      gpio-ranges = <&pinctrl 0 36 22>,
565def4c47SEmmanuel Vadot                    <&pinctrl 22 63 4>,
575def4c47SEmmanuel Vadot                    <&pinctrl 26 68 6>;
585def4c47SEmmanuel Vadot      #interrupt-cells = <2>;
595def4c47SEmmanuel Vadot      interrupt-controller;
605def4c47SEmmanuel Vadot      interrupt-parent = <&intc_fiq>;
615def4c47SEmmanuel Vadot    };
62