qca,ath79-cpu-intc.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Binding for Qualcomm Atheros AR7xxx/AR9XXX CPU interrupt controller
  2. On most SoC the IRQ controller need to flush the DDR FIFO before running
  3. the interrupt handler of some devices. This is configured using the
  4. qca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties.
  5. Required Properties:
  6. - compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-cpu-intc"
  7. as fallback
  8. - interrupt-controller : Identifies the node as an interrupt controller
  9. - #interrupt-cells : Specifies the number of cells needed to encode interrupt
  10. source, should be 1 for intc
  11. Please refer to interrupts.txt in this directory for details of the common
  12. Interrupt Controllers bindings used by client devices.
  13. Optional Properties:
  14. - qca,ddr-wb-channel-interrupts: List of the interrupts needing a write
  15. buffer flush
  16. - qca,ddr-wb-channels: List of phandles to the write buffer channels for
  17. each interrupt. If qca,ddr-wb-channel-interrupts is not present the interrupt
  18. default to the entry's index.
  19. Example:
  20. interrupt-controller {
  21. compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
  22. interrupt-controller;
  23. #interrupt-cells = <1>;
  24. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  25. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  26. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  27. };
  28. ...
  29. ddr_ctrl: memory-controller@18000000 {
  30. ...
  31. #qca,ddr-wb-channel-cells = <1>;
  32. };