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# 6 7title: MStar/SigmaStar GPIO controller 8 9maintainers: 10 - Daniel Palmer <daniel@thingy.jp> 11 12properties: 13 $nodename: 14 pattern: "^gpio@[0-9a-f]+$" 15 16 compatible: 17 const: mstar,msc313-gpio 18 19 reg: 20 maxItems: 1 21 22 gpio-controller: true 23 24 "#gpio-cells": 25 const: 2 26 27 gpio-ranges: true 28 29 interrupt-controller: true 30 31 "#interrupt-cells": 32 const: 2 33 34required: 35 - compatible 36 - reg 37 - gpio-controller 38 - "#gpio-cells" 39 - interrupt-controller 40 - "#interrupt-cells" 41 42additionalProperties: false 43 44examples: 45 - | 46 #include <dt-bindings/gpio/msc313-gpio.h> 47 48 gpio: gpio@207800 { 49 compatible = "mstar,msc313-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 }; 60