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