13fe5d5bdSGuo Ren=========================================== 23fe5d5bdSGuo RenC-SKY Multi-processors Interrupt Controller 33fe5d5bdSGuo Ren=========================================== 43fe5d5bdSGuo Ren 53fe5d5bdSGuo RenC-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 63fe5d5bdSGuo RenSMP soc, and it also could be used in non-SMP system. 73fe5d5bdSGuo Ren 83fe5d5bdSGuo RenInterrupt number definition: 93fe5d5bdSGuo Ren 0-15 : software irq, and we use 15 as our IPI_IRQ. 103fe5d5bdSGuo Ren 16-31 : private irq, and we use 16 as the co-processor timer. 113fe5d5bdSGuo Ren 31-1024: common irq for soc ip. 123fe5d5bdSGuo Ren 13*8c310557SFlavio SuligoiInterrupt trigger mode: (Defined in dt-bindings/interrupt-controller/irq.h) 14dc96f450SGuo Ren IRQ_TYPE_LEVEL_HIGH (default) 15dc96f450SGuo Ren IRQ_TYPE_LEVEL_LOW 16dc96f450SGuo Ren IRQ_TYPE_EDGE_RISING 17dc96f450SGuo Ren IRQ_TYPE_EDGE_FALLING 18dc96f450SGuo Ren 193fe5d5bdSGuo Ren============================= 203fe5d5bdSGuo Renintc node bindings definition 213fe5d5bdSGuo Ren============================= 223fe5d5bdSGuo Ren 233fe5d5bdSGuo Ren Description: Describes SMP interrupt controller 243fe5d5bdSGuo Ren 253fe5d5bdSGuo Ren PROPERTIES 263fe5d5bdSGuo Ren 273fe5d5bdSGuo Ren - compatible 283fe5d5bdSGuo Ren Usage: required 293fe5d5bdSGuo Ren Value type: <string> 303fe5d5bdSGuo Ren Definition: must be "csky,mpintc" 313fe5d5bdSGuo Ren - #interrupt-cells 323fe5d5bdSGuo Ren Usage: required 333fe5d5bdSGuo Ren Value type: <u32> 34dc96f450SGuo Ren Definition: <2> 353fe5d5bdSGuo Ren - interrupt-controller: 363fe5d5bdSGuo Ren Usage: required 373fe5d5bdSGuo Ren 38dc96f450SGuo RenExamples: ("interrupts = <irq_num IRQ_TYPE_XXX>") 393fe5d5bdSGuo Ren--------- 40dc96f450SGuo Ren#include <dt-bindings/interrupt-controller/irq.h> 413fe5d5bdSGuo Ren 423fe5d5bdSGuo Ren intc: interrupt-controller { 433fe5d5bdSGuo Ren compatible = "csky,mpintc"; 44dc96f450SGuo Ren #interrupt-cells = <2>; 453fe5d5bdSGuo Ren interrupt-controller; 463fe5d5bdSGuo Ren }; 47dc96f450SGuo Ren 48dc96f450SGuo Ren device: device-example { 49dc96f450SGuo Ren ... 50dc96f450SGuo Ren interrupts = <34 IRQ_TYPE_EDGE_RISING>; 51dc96f450SGuo Ren interrupt-parent = <&intc>; 52dc96f450SGuo Ren }; 53