1 =========================================== 1 =========================================== 2 C-SKY Multi-processors Interrupt Controller 2 C-SKY Multi-processors Interrupt Controller 3 =========================================== 3 =========================================== 4 4 5 C-SKY Multi-processors Interrupt Controller is 5 C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 6 SMP soc, and it also could be used in non-SMP 6 SMP soc, and it also could be used in non-SMP system. 7 7 8 Interrupt number definition: 8 Interrupt number definition: >> 9 9 0-15 : software irq, and we use 15 as our I 10 0-15 : software irq, and we use 15 as our IPI_IRQ. 10 16-31 : private irq, and we use 16 as the c 11 16-31 : private irq, and we use 16 as the co-processor timer. 11 31-1024: common irq for soc ip. 12 31-1024: common irq for soc ip. 12 13 13 Interrupt trigger mode: (Defined in dt-binding << 14 IRQ_TYPE_LEVEL_HIGH (default) << 15 IRQ_TYPE_LEVEL_LOW << 16 IRQ_TYPE_EDGE_RISING << 17 IRQ_TYPE_EDGE_FALLING << 18 << 19 ============================= 14 ============================= 20 intc node bindings definition 15 intc node bindings definition 21 ============================= 16 ============================= 22 17 23 Description: Describes SMP interrupt c 18 Description: Describes SMP interrupt controller 24 19 25 PROPERTIES 20 PROPERTIES 26 21 27 - compatible 22 - compatible 28 Usage: required 23 Usage: required 29 Value type: <string> 24 Value type: <string> 30 Definition: must be "csky,mpin 25 Definition: must be "csky,mpintc" 31 - #interrupt-cells 26 - #interrupt-cells 32 Usage: required 27 Usage: required 33 Value type: <u32> 28 Value type: <u32> 34 Definition: <2> !! 29 Definition: must be <1> 35 - interrupt-controller: 30 - interrupt-controller: 36 Usage: required 31 Usage: required 37 32 38 Examples: ("interrupts = <irq_num IRQ_TYPE_XXX !! 33 Examples: 39 --------- 34 --------- 40 #include <dt-bindings/interrupt-controller/irq << 41 35 42 intc: interrupt-controller { 36 intc: interrupt-controller { 43 compatible = "csky,mpintc"; 37 compatible = "csky,mpintc"; 44 #interrupt-cells = <2>; !! 38 #interrupt-cells = <1>; 45 interrupt-controller; 39 interrupt-controller; 46 }; << 47 << 48 device: device-example { << 49 ... << 50 interrupts = <34 IRQ_TYPE_EDGE << 51 interrupt-parent = <&intc>; << 52 }; 40 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.