2018-09-18 21:07:00 +08:00
===========================================
C-SKY Multi-processors Interrupt Controller
===========================================
C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860
SMP soc, and it also could be used in non-SMP system.
Interrupt number definition:
0-15 : software irq, and we use 15 as our IPI_IRQ.
16-31 : private irq, and we use 16 as the co-processor timer.
31-1024: common irq for soc ip.
2020-06-15 09:58:35 +02:00
Interrupt trigger mode: (Defined in dt-bindings/interrupt-controller/irq.h)
2019-06-06 15:37:32 +08:00
IRQ_TYPE_LEVEL_HIGH (default)
IRQ_TYPE_LEVEL_LOW
IRQ_TYPE_EDGE_RISING
IRQ_TYPE_EDGE_FALLING
2018-09-18 21:07:00 +08:00
=============================
intc node bindings definition
=============================
Description: Describes SMP interrupt controller
PROPERTIES
- compatible
Usage: required
Value type: <string>
Definition: must be "csky,mpintc"
- #interrupt-cells
Usage: required
Value type: <u32>
2019-06-06 15:37:32 +08:00
Definition: <2>
2018-09-18 21:07:00 +08:00
- interrupt-controller:
Usage: required
2019-06-06 15:37:32 +08:00
Examples: ("interrupts = <irq_num IRQ_TYPE_XXX>")
2018-09-18 21:07:00 +08:00
---------
2019-06-06 15:37:32 +08:00
#include <dt-bindings/interrupt-controller/irq.h>
2018-09-18 21:07:00 +08:00
intc: interrupt-controller {
compatible = "csky,mpintc";
2019-06-06 15:37:32 +08:00
#interrupt-cells = <2>;
2018-09-18 21:07:00 +08:00
interrupt-controller;
};
2019-06-06 15:37:32 +08:00
device: device-example {
...
interrupts = <34 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&intc>;
};