0001 ===========================================
0002 C-SKY Multi-processors Interrupt Controller
0003 ===========================================
0004
0005 C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860
0006 SMP soc, and it also could be used in non-SMP system.
0007
0008 Interrupt number definition:
0009 0-15 : software irq, and we use 15 as our IPI_IRQ.
0010 16-31 : private irq, and we use 16 as the co-processor timer.
0011 31-1024: common irq for soc ip.
0012
0013 Interrupt trigger mode: (Defined in dt-bindings/interrupt-controller/irq.h)
0014 IRQ_TYPE_LEVEL_HIGH (default)
0015 IRQ_TYPE_LEVEL_LOW
0016 IRQ_TYPE_EDGE_RISING
0017 IRQ_TYPE_EDGE_FALLING
0018
0019 =============================
0020 intc node bindings definition
0021 =============================
0022
0023 Description: Describes SMP interrupt controller
0024
0025 PROPERTIES
0026
0027 - compatible
0028 Usage: required
0029 Value type: <string>
0030 Definition: must be "csky,mpintc"
0031 - #interrupt-cells
0032 Usage: required
0033 Value type: <u32>
0034 Definition: <2>
0035 - interrupt-controller:
0036 Usage: required
0037
0038 Examples: ("interrupts = <irq_num IRQ_TYPE_XXX>")
0039 ---------
0040 #include <dt-bindings/interrupt-controller/irq.h>
0041
0042 intc: interrupt-controller {
0043 compatible = "csky,mpintc";
0044 #interrupt-cells = <2>;
0045 interrupt-controller;
0046 };
0047
0048 device: device-example {
0049 ...
0050 interrupts = <34 IRQ_TYPE_EDGE_RISING>;
0051 interrupt-parent = <&intc>;
0052 };