1*f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*f126890aSEmmanuel Vadot%YAML 1.2 3*f126890aSEmmanuel Vadot--- 4*f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/microchip,sama7g5-eic.yaml# 5*f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*f126890aSEmmanuel Vadot 7*f126890aSEmmanuel Vadottitle: Microchip External Interrupt Controller 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadotmaintainers: 10*f126890aSEmmanuel Vadot - Claudiu Beznea <claudiu.beznea@microchip.com> 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel Vadotdescription: 13*f126890aSEmmanuel Vadot This interrupt controller is found in Microchip SoCs (SAMA7G5) and provides 14*f126890aSEmmanuel Vadot support for handling up to 2 external interrupt lines. 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadotproperties: 17*f126890aSEmmanuel Vadot compatible: 18*f126890aSEmmanuel Vadot enum: 19*f126890aSEmmanuel Vadot - microchip,sama7g5-eic 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot reg: 22*f126890aSEmmanuel Vadot maxItems: 1 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot interrupt-controller: true 25*f126890aSEmmanuel Vadot 26*f126890aSEmmanuel Vadot '#interrupt-cells': 27*f126890aSEmmanuel Vadot const: 2 28*f126890aSEmmanuel Vadot description: 29*f126890aSEmmanuel Vadot The first cell is the input IRQ number (between 0 and 1), the second cell 30*f126890aSEmmanuel Vadot is the trigger type as defined in interrupt.txt present in this directory. 31*f126890aSEmmanuel Vadot 32*f126890aSEmmanuel Vadot interrupts: 33*f126890aSEmmanuel Vadot description: | 34*f126890aSEmmanuel Vadot Contains the GIC SPI IRQs mapped to the external interrupt lines. They 35*f126890aSEmmanuel Vadot should be specified sequentially from output 0 to output 1. 36*f126890aSEmmanuel Vadot minItems: 2 37*f126890aSEmmanuel Vadot maxItems: 2 38*f126890aSEmmanuel Vadot 39*f126890aSEmmanuel Vadot clocks: 40*f126890aSEmmanuel Vadot maxItems: 1 41*f126890aSEmmanuel Vadot 42*f126890aSEmmanuel Vadot clock-names: 43*f126890aSEmmanuel Vadot const: pclk 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadotrequired: 46*f126890aSEmmanuel Vadot - compatible 47*f126890aSEmmanuel Vadot - reg 48*f126890aSEmmanuel Vadot - interrupt-controller 49*f126890aSEmmanuel Vadot - '#interrupt-cells' 50*f126890aSEmmanuel Vadot - interrupts 51*f126890aSEmmanuel Vadot - clocks 52*f126890aSEmmanuel Vadot - clock-names 53*f126890aSEmmanuel Vadot 54*f126890aSEmmanuel VadotadditionalProperties: false 55*f126890aSEmmanuel Vadot 56*f126890aSEmmanuel Vadotexamples: 57*f126890aSEmmanuel Vadot - | 58*f126890aSEmmanuel Vadot #include <dt-bindings/clock/at91.h> 59*f126890aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot eic: interrupt-controller@e1628000 { 62*f126890aSEmmanuel Vadot compatible = "microchip,sama7g5-eic"; 63*f126890aSEmmanuel Vadot reg = <0xe1628000 0x100>; 64*f126890aSEmmanuel Vadot interrupt-parent = <&gic>; 65*f126890aSEmmanuel Vadot interrupt-controller; 66*f126890aSEmmanuel Vadot #interrupt-cells = <2>; 67*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, 68*f126890aSEmmanuel Vadot <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; 69*f126890aSEmmanuel Vadot clocks = <&pmc PMC_TYPE_PERIPHERAL 37>; 70*f126890aSEmmanuel Vadot clock-names = "pclk"; 71*f126890aSEmmanuel Vadot }; 72*f126890aSEmmanuel Vadot 73*f126890aSEmmanuel Vadot... 74