18c2ecf20Sopenharmony_ci* Advanced Interrupt Controller (AIC) 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: Should be: 58c2ecf20Sopenharmony_ci - "atmel,<chip>-aic" where <chip> can be "at91rm9200", "sama5d2", 68c2ecf20Sopenharmony_ci "sama5d3" or "sama5d4" 78c2ecf20Sopenharmony_ci - "microchip,<chip>-aic" where <chip> can be "sam9x60" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci- interrupt-controller: Identifies the node as an interrupt controller. 108c2ecf20Sopenharmony_ci- #interrupt-cells: The number of cells to define the interrupts. It should be 3. 118c2ecf20Sopenharmony_ci The first cell is the IRQ number (aka "Peripheral IDentifier" on datasheet). 128c2ecf20Sopenharmony_ci The second cell is used to specify flags: 138c2ecf20Sopenharmony_ci bits[3:0] trigger type and level flags: 148c2ecf20Sopenharmony_ci 1 = low-to-high edge triggered. 158c2ecf20Sopenharmony_ci 2 = high-to-low edge triggered. 168c2ecf20Sopenharmony_ci 4 = active high level-sensitive. 178c2ecf20Sopenharmony_ci 8 = active low level-sensitive. 188c2ecf20Sopenharmony_ci Valid combinations are 1, 2, 3, 4, 8. 198c2ecf20Sopenharmony_ci Default flag for internal sources should be set to 4 (active high). 208c2ecf20Sopenharmony_ci The third cell is used to specify the irq priority from 0 (lowest) to 7 218c2ecf20Sopenharmony_ci (highest). 228c2ecf20Sopenharmony_ci- reg: Should contain AIC registers location and length 238c2ecf20Sopenharmony_ci- atmel,external-irqs: u32 array of external irqs. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExamples: 268c2ecf20Sopenharmony_ci /* 278c2ecf20Sopenharmony_ci * AIC 288c2ecf20Sopenharmony_ci */ 298c2ecf20Sopenharmony_ci aic: interrupt-controller@fffff000 { 308c2ecf20Sopenharmony_ci compatible = "atmel,at91rm9200-aic"; 318c2ecf20Sopenharmony_ci interrupt-controller; 328c2ecf20Sopenharmony_ci #interrupt-cells = <3>; 338c2ecf20Sopenharmony_ci reg = <0xfffff000 0x200>; 348c2ecf20Sopenharmony_ci }; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci /* 378c2ecf20Sopenharmony_ci * An interrupt generating device that is wired to an AIC. 388c2ecf20Sopenharmony_ci */ 398c2ecf20Sopenharmony_ci dma: dma-controller@ffffec00 { 408c2ecf20Sopenharmony_ci compatible = "atmel,at91sam9g45-dma"; 418c2ecf20Sopenharmony_ci reg = <0xffffec00 0x200>; 428c2ecf20Sopenharmony_ci interrupts = <21 4 5>; 438c2ecf20Sopenharmony_ci }; 44