1*c66ec88fSEmmanuel Vadot* Advanced Interrupt Controller (AIC) 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Should be: 5*c66ec88fSEmmanuel Vadot - "atmel,<chip>-aic" where <chip> can be "at91rm9200", "sama5d2", 6*c66ec88fSEmmanuel Vadot "sama5d3" or "sama5d4" 7*c66ec88fSEmmanuel Vadot - "microchip,<chip>-aic" where <chip> can be "sam9x60" 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadot- interrupt-controller: Identifies the node as an interrupt controller. 10*c66ec88fSEmmanuel Vadot- #interrupt-cells: The number of cells to define the interrupts. It should be 3. 11*c66ec88fSEmmanuel Vadot The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). 12*c66ec88fSEmmanuel Vadot The second cell is used to specify flags: 13*c66ec88fSEmmanuel Vadot bits[3:0] trigger type and level flags: 14*c66ec88fSEmmanuel Vadot 1 = low-to-high edge triggered. 15*c66ec88fSEmmanuel Vadot 2 = high-to-low edge triggered. 16*c66ec88fSEmmanuel Vadot 4 = active high level-sensitive. 17*c66ec88fSEmmanuel Vadot 8 = active low level-sensitive. 18*c66ec88fSEmmanuel Vadot Valid combinations are 1, 2, 3, 4, 8. 19*c66ec88fSEmmanuel Vadot Default flag for internal sources should be set to 4 (active high). 20*c66ec88fSEmmanuel Vadot The third cell is used to specify the irq priority from 0 (lowest) to 7 21*c66ec88fSEmmanuel Vadot (highest). 22*c66ec88fSEmmanuel Vadot- reg: Should contain AIC registers location and length 23*c66ec88fSEmmanuel Vadot- atmel,external-irqs: u32 array of external irqs. 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel VadotExamples: 26*c66ec88fSEmmanuel Vadot /* 27*c66ec88fSEmmanuel Vadot * AIC 28*c66ec88fSEmmanuel Vadot */ 29*c66ec88fSEmmanuel Vadot aic: interrupt-controller@fffff000 { 30*c66ec88fSEmmanuel Vadot compatible = "atmel,at91rm9200-aic"; 31*c66ec88fSEmmanuel Vadot interrupt-controller; 32*c66ec88fSEmmanuel Vadot #interrupt-cells = <3>; 33*c66ec88fSEmmanuel Vadot reg = <0xfffff000 0x200>; 34*c66ec88fSEmmanuel Vadot }; 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel Vadot /* 37*c66ec88fSEmmanuel Vadot * An interrupt generating device that is wired to an AIC. 38*c66ec88fSEmmanuel Vadot */ 39*c66ec88fSEmmanuel Vadot dma: dma-controller@ffffec00 { 40*c66ec88fSEmmanuel Vadot compatible = "atmel,at91sam9g45-dma"; 41*c66ec88fSEmmanuel Vadot reg = <0xffffec00 0x200>; 42*c66ec88fSEmmanuel Vadot interrupts = <21 4 5>; 43*c66ec88fSEmmanuel Vadot }; 44