1*c66ec88fSEmmanuel VadotBinding for Qualcomm Atheros AR7xxx/AR9xxx DDR controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThe DDR controller of the AR7xxx and AR9xxx families provides an interface 4*c66ec88fSEmmanuel Vadotto flush the FIFO between various devices and the DDR. This is mainly used 5*c66ec88fSEmmanuel Vadotby the IRQ controller to flush the FIFO before running the interrupt handler 6*c66ec88fSEmmanuel Vadotof such devices. 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel VadotRequired properties: 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot- compatible: has to be "qca,<soc-type>-ddr-controller", 11*c66ec88fSEmmanuel Vadot "qca,[ar7100|ar7240]-ddr-controller" as fallback. 12*c66ec88fSEmmanuel Vadot On SoC with PCI support "qca,ar7100-ddr-controller" should be used as 13*c66ec88fSEmmanuel Vadot fallback, otherwise "qca,ar7240-ddr-controller" should be used. 14*c66ec88fSEmmanuel Vadot- reg: Base address and size of the controller's memory area 15*c66ec88fSEmmanuel Vadot- #qca,ddr-wb-channel-cells: Specifies the number of cells needed to encode 16*c66ec88fSEmmanuel Vadot the write buffer channel index, should be 1. 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel VadotExample: 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel Vadot ddr_ctrl: memory-controller@18000000 { 21*c66ec88fSEmmanuel Vadot compatible = "qca,ar9132-ddr-controller", 22*c66ec88fSEmmanuel Vadot "qca,ar7240-ddr-controller"; 23*c66ec88fSEmmanuel Vadot reg = <0x18000000 0x100>; 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel Vadot #qca,ddr-wb-channel-cells = <1>; 26*c66ec88fSEmmanuel Vadot }; 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadot ... 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel Vadot interrupt-controller { 31*c66ec88fSEmmanuel Vadot ... 32*c66ec88fSEmmanuel Vadot qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 33*c66ec88fSEmmanuel Vadot qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>, 34*c66ec88fSEmmanuel Vadot <&ddr_ctrl 0>, <&ddr_ctrl 1>; 35*c66ec88fSEmmanuel Vadot }; 36