162306a36Sopenharmony_ci* Advanced Interrupt Controller (AIC) 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: Should be: 562306a36Sopenharmony_ci - "atmel,<chip>-aic" where <chip> can be "at91rm9200", "sama5d2", 662306a36Sopenharmony_ci "sama5d3" or "sama5d4" 762306a36Sopenharmony_ci - "microchip,<chip>-aic" where <chip> can be "sam9x60" 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci- interrupt-controller: Identifies the node as an interrupt controller. 1062306a36Sopenharmony_ci- #interrupt-cells: The number of cells to define the interrupts. It should be 3. 1162306a36Sopenharmony_ci The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). 1262306a36Sopenharmony_ci The second cell is used to specify flags: 1362306a36Sopenharmony_ci bits[3:0] trigger type and level flags: 1462306a36Sopenharmony_ci 1 = low-to-high edge triggered. 1562306a36Sopenharmony_ci 2 = high-to-low edge triggered. 1662306a36Sopenharmony_ci 4 = active high level-sensitive. 1762306a36Sopenharmony_ci 8 = active low level-sensitive. 1862306a36Sopenharmony_ci Valid combinations are 1, 2, 3, 4, 8. 1962306a36Sopenharmony_ci Default flag for internal sources should be set to 4 (active high). 2062306a36Sopenharmony_ci The third cell is used to specify the irq priority from 0 (lowest) to 7 2162306a36Sopenharmony_ci (highest). 2262306a36Sopenharmony_ci- reg: Should contain AIC registers location and length 2362306a36Sopenharmony_ci- atmel,external-irqs: u32 array of external irqs. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciExamples: 2662306a36Sopenharmony_ci /* 2762306a36Sopenharmony_ci * AIC 2862306a36Sopenharmony_ci */ 2962306a36Sopenharmony_ci aic: interrupt-controller@fffff000 { 3062306a36Sopenharmony_ci compatible = "atmel,at91rm9200-aic"; 3162306a36Sopenharmony_ci interrupt-controller; 3262306a36Sopenharmony_ci #interrupt-cells = <3>; 3362306a36Sopenharmony_ci reg = <0xfffff000 0x200>; 3462306a36Sopenharmony_ci }; 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci /* 3762306a36Sopenharmony_ci * An interrupt generating device that is wired to an AIC. 3862306a36Sopenharmony_ci */ 3962306a36Sopenharmony_ci dma: dma-controller@ffffec00 { 4062306a36Sopenharmony_ci compatible = "atmel,at91sam9g45-dma"; 4162306a36Sopenharmony_ci reg = <0xffffec00 0x200>; 4262306a36Sopenharmony_ci interrupts = <21 4 5>; 4362306a36Sopenharmony_ci }; 44