1*c66ec88fSEmmanuel Vadot* ARM Nested Vector Interrupt Controller (NVIC)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe NVIC provides an interrupt controller that is tightly coupled to
4*c66ec88fSEmmanuel VadotCortex-M based processor cores.  The NVIC implemented on different SoCs
5*c66ec88fSEmmanuel Vadotvary in the number of interrupts and priority bits per interrupt.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotMain node required properties:
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot- compatible : should be one of:
10*c66ec88fSEmmanuel Vadot	"arm,v6m-nvic"
11*c66ec88fSEmmanuel Vadot	"arm,v7m-nvic"
12*c66ec88fSEmmanuel Vadot	"arm,v8m-nvic"
13*c66ec88fSEmmanuel Vadot- interrupt-controller : Identifies the node as an interrupt controller
14*c66ec88fSEmmanuel Vadot- #interrupt-cells : Specifies the number of cells needed to encode an
15*c66ec88fSEmmanuel Vadot  interrupt source.  The type shall be a <u32> and the value shall be 2.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot  The 1st cell contains the interrupt number for the interrupt type.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot  The 2nd cell is the priority of the interrupt.
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot- reg : Specifies base physical address(s) and size of the NVIC registers.
22*c66ec88fSEmmanuel Vadot  This is at a fixed address (0xe000e100) and size (0xc00).
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot- arm,num-irq-priority-bits: The number of priority bits implemented by the
25*c66ec88fSEmmanuel Vadot  given SoC
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel VadotExample:
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel Vadot	intc: interrupt-controller@e000e100 {
30*c66ec88fSEmmanuel Vadot		compatible = "arm,v7m-nvic";
31*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
32*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
33*c66ec88fSEmmanuel Vadot		interrupt-controller;
34*c66ec88fSEmmanuel Vadot		reg = <0xe000e100 0xc00>;
35*c66ec88fSEmmanuel Vadot		arm,num-irq-priority-bits = <4>;
36*c66ec88fSEmmanuel Vadot	};
37