csky,mpintc.txt 1.3 KB

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