1*c22fc62bSGeert Uytterhoeven# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*c22fc62bSGeert Uytterhoeven%YAML 1.2 3*c22fc62bSGeert Uytterhoeven--- 4*c22fc62bSGeert Uytterhoeven$id: http://devicetree.org/schemas/gpio/renesas,em-gio.yaml# 5*c22fc62bSGeert Uytterhoeven$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c22fc62bSGeert Uytterhoeven 7*c22fc62bSGeert Uytterhoeventitle: Renesas EMMA Mobile General Purpose I/O Interface 8*c22fc62bSGeert Uytterhoeven 9*c22fc62bSGeert Uytterhoevenmaintainers: 10*c22fc62bSGeert Uytterhoeven - Magnus Damm <magnus.damm@gmail.com> 11*c22fc62bSGeert Uytterhoeven 12*c22fc62bSGeert Uytterhoevenproperties: 13*c22fc62bSGeert Uytterhoeven compatible: 14*c22fc62bSGeert Uytterhoeven const: renesas,em-gio 15*c22fc62bSGeert Uytterhoeven 16*c22fc62bSGeert Uytterhoeven reg: 17*c22fc62bSGeert Uytterhoeven items: 18*c22fc62bSGeert Uytterhoeven - description: First set of contiguous registers 19*c22fc62bSGeert Uytterhoeven - description: Second set of contiguous registers 20*c22fc62bSGeert Uytterhoeven 21*c22fc62bSGeert Uytterhoeven interrupts: 22*c22fc62bSGeert Uytterhoeven items: 23*c22fc62bSGeert Uytterhoeven - description: Interrupt for the first set of 16 GPIO ports 24*c22fc62bSGeert Uytterhoeven - description: Interrupt for the second set of 16 GPIO ports 25*c22fc62bSGeert Uytterhoeven 26*c22fc62bSGeert Uytterhoeven gpio-controller: true 27*c22fc62bSGeert Uytterhoeven 28*c22fc62bSGeert Uytterhoeven '#gpio-cells': 29*c22fc62bSGeert Uytterhoeven const: 2 30*c22fc62bSGeert Uytterhoeven 31*c22fc62bSGeert Uytterhoeven gpio-ranges: 32*c22fc62bSGeert Uytterhoeven maxItems: 1 33*c22fc62bSGeert Uytterhoeven 34*c22fc62bSGeert Uytterhoeven ngpios: 35*c22fc62bSGeert Uytterhoeven minimum: 1 36*c22fc62bSGeert Uytterhoeven maximum: 32 37*c22fc62bSGeert Uytterhoeven 38*c22fc62bSGeert Uytterhoeven interrupt-controller: true 39*c22fc62bSGeert Uytterhoeven 40*c22fc62bSGeert Uytterhoeven '#interrupt-cells': 41*c22fc62bSGeert Uytterhoeven const: 2 42*c22fc62bSGeert Uytterhoeven 43*c22fc62bSGeert Uytterhoevenrequired: 44*c22fc62bSGeert Uytterhoeven - compatible 45*c22fc62bSGeert Uytterhoeven - reg 46*c22fc62bSGeert Uytterhoeven - interrupts 47*c22fc62bSGeert Uytterhoeven - gpio-controller 48*c22fc62bSGeert Uytterhoeven - '#gpio-cells' 49*c22fc62bSGeert Uytterhoeven - gpio-ranges 50*c22fc62bSGeert Uytterhoeven - ngpios 51*c22fc62bSGeert Uytterhoeven - interrupt-controller 52*c22fc62bSGeert Uytterhoeven - '#interrupt-cells' 53*c22fc62bSGeert Uytterhoeven 54*c22fc62bSGeert UytterhoevenadditionalProperties: false 55*c22fc62bSGeert Uytterhoeven 56*c22fc62bSGeert Uytterhoevenexamples: 57*c22fc62bSGeert Uytterhoeven - | 58*c22fc62bSGeert Uytterhoeven #include <dt-bindings/interrupt-controller/arm-gic.h> 59*c22fc62bSGeert Uytterhoeven gpio0: gpio@e0050000 { 60*c22fc62bSGeert Uytterhoeven compatible = "renesas,em-gio"; 61*c22fc62bSGeert Uytterhoeven reg = <0xe0050000 0x2c>, <0xe0050040 0x20>; 62*c22fc62bSGeert Uytterhoeven interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, 63*c22fc62bSGeert Uytterhoeven <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; 64*c22fc62bSGeert Uytterhoeven gpio-controller; 65*c22fc62bSGeert Uytterhoeven #gpio-cells = <2>; 66*c22fc62bSGeert Uytterhoeven gpio-ranges = <&pfc 0 0 32>; 67*c22fc62bSGeert Uytterhoeven ngpios = <32>; 68*c22fc62bSGeert Uytterhoeven interrupt-controller; 69*c22fc62bSGeert Uytterhoeven #interrupt-cells = <2>; 70*c22fc62bSGeert Uytterhoeven }; 71