ath79-ddr-controller.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Binding for Qualcomm Atheros AR7xxx/AR9xxx DDR controller
  2. The DDR controller of the ARxxx and AR9xxx families provides an interface
  3. to flush the FIFO between various devices and the DDR. This is mainly used
  4. by the IRQ controller to flush the FIFO before running the interrupt handler
  5. of such devices.
  6. Required properties:
  7. - compatible: has to be "qca,<soc-type>-ddr-controller",
  8. "qca,[ar7100|ar7240]-ddr-controller" as fallback.
  9. On SoC with PCI support "qca,ar7100-ddr-controller" should be used as
  10. fallback, otherwise "qca,ar7240-ddr-controller" should be used.
  11. - reg: Base address and size of the controllers memory area
  12. - #qca,ddr-wb-channel-cells: has to be 1, the index of the write buffer
  13. channel
  14. Example:
  15. ddr_ctrl: memory-controller@18000000 {
  16. compatible = "qca,ar9132-ddr-controller",
  17. "qca,ar7240-ddr-controller";
  18. reg = <0x18000000 0x100>;
  19. #qca,ddr-wb-channel-cells = <1>;
  20. };
  21. ...
  22. interrupt-controller {
  23. ...
  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. };