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: 17*8e6458cdSDaniel Palmer enum: 18*8e6458cdSDaniel Palmer - mstar,msc313-gpio 19*8e6458cdSDaniel Palmer - sstar,ssd20xd-gpio 20493c7e03SDaniel Palmer 21493c7e03SDaniel Palmer reg: 22493c7e03SDaniel Palmer maxItems: 1 23493c7e03SDaniel Palmer 24493c7e03SDaniel Palmer gpio-controller: true 25493c7e03SDaniel Palmer 26493c7e03SDaniel Palmer "#gpio-cells": 27493c7e03SDaniel Palmer const: 2 28493c7e03SDaniel Palmer 29493c7e03SDaniel Palmer gpio-ranges: true 30493c7e03SDaniel Palmer 31493c7e03SDaniel Palmer interrupt-controller: true 32493c7e03SDaniel Palmer 33493c7e03SDaniel Palmer "#interrupt-cells": 34493c7e03SDaniel Palmer const: 2 35493c7e03SDaniel Palmer 36493c7e03SDaniel Palmerrequired: 37493c7e03SDaniel Palmer - compatible 38493c7e03SDaniel Palmer - reg 39493c7e03SDaniel Palmer - gpio-controller 40493c7e03SDaniel Palmer - "#gpio-cells" 41493c7e03SDaniel Palmer - interrupt-controller 42493c7e03SDaniel Palmer - "#interrupt-cells" 43493c7e03SDaniel Palmer 44493c7e03SDaniel PalmeradditionalProperties: false 45493c7e03SDaniel Palmer 46493c7e03SDaniel Palmerexamples: 47493c7e03SDaniel Palmer - | 48493c7e03SDaniel Palmer #include <dt-bindings/gpio/msc313-gpio.h> 49493c7e03SDaniel Palmer 50493c7e03SDaniel Palmer gpio: gpio@207800 { 5191f93c38SRob Herring compatible = "mstar,msc313-gpio"; 52493c7e03SDaniel Palmer #gpio-cells = <2>; 53493c7e03SDaniel Palmer reg = <0x207800 0x200>; 54493c7e03SDaniel Palmer gpio-controller; 55493c7e03SDaniel Palmer gpio-ranges = <&pinctrl 0 36 22>, 56493c7e03SDaniel Palmer <&pinctrl 22 63 4>, 57493c7e03SDaniel Palmer <&pinctrl 26 68 6>; 58493c7e03SDaniel Palmer #interrupt-cells = <2>; 59493c7e03SDaniel Palmer interrupt-controller; 60493c7e03SDaniel Palmer interrupt-parent = <&intc_fiq>; 61493c7e03SDaniel Palmer }; 62