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