18c2ecf20Sopenharmony_ci=========================================== 28c2ecf20Sopenharmony_ciC-SKY Multi-processors Interrupt Controller 38c2ecf20Sopenharmony_ci=========================================== 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciC-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 68c2ecf20Sopenharmony_ciSMP soc, and it also could be used in non-SMP system. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciInterrupt number definition: 98c2ecf20Sopenharmony_ci 0-15 : software irq, and we use 15 as our IPI_IRQ. 108c2ecf20Sopenharmony_ci 16-31 : private irq, and we use 16 as the co-processor timer. 118c2ecf20Sopenharmony_ci 31-1024: common irq for soc ip. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciInterrupt trigger mode: (Defined in dt-bindings/interrupt-controller/irq.h) 148c2ecf20Sopenharmony_ci IRQ_TYPE_LEVEL_HIGH (default) 158c2ecf20Sopenharmony_ci IRQ_TYPE_LEVEL_LOW 168c2ecf20Sopenharmony_ci IRQ_TYPE_EDGE_RISING 178c2ecf20Sopenharmony_ci IRQ_TYPE_EDGE_FALLING 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci============================= 208c2ecf20Sopenharmony_ciintc node bindings definition 218c2ecf20Sopenharmony_ci============================= 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci Description: Describes SMP interrupt controller 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci PROPERTIES 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci - compatible 288c2ecf20Sopenharmony_ci Usage: required 298c2ecf20Sopenharmony_ci Value type: <string> 308c2ecf20Sopenharmony_ci Definition: must be "csky,mpintc" 318c2ecf20Sopenharmony_ci - #interrupt-cells 328c2ecf20Sopenharmony_ci Usage: required 338c2ecf20Sopenharmony_ci Value type: <u32> 348c2ecf20Sopenharmony_ci Definition: <2> 358c2ecf20Sopenharmony_ci - interrupt-controller: 368c2ecf20Sopenharmony_ci Usage: required 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ciExamples: ("interrupts = <irq_num IRQ_TYPE_XXX>") 398c2ecf20Sopenharmony_ci--------- 408c2ecf20Sopenharmony_ci#include <dt-bindings/interrupt-controller/irq.h> 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci intc: interrupt-controller { 438c2ecf20Sopenharmony_ci compatible = "csky,mpintc"; 448c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 458c2ecf20Sopenharmony_ci interrupt-controller; 468c2ecf20Sopenharmony_ci }; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci device: device-example { 498c2ecf20Sopenharmony_ci ... 508c2ecf20Sopenharmony_ci interrupts = <34 IRQ_TYPE_EDGE_RISING>; 518c2ecf20Sopenharmony_ci interrupt-parent = <&intc>; 528c2ecf20Sopenharmony_ci }; 53