18c2ecf20Sopenharmony_ciBinding for Qualcomm Atheros AR7xxx/AR9xxx DDR controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe DDR controller of the AR7xxx and AR9xxx families provides an interface 48c2ecf20Sopenharmony_cito flush the FIFO between various devices and the DDR. This is mainly used 58c2ecf20Sopenharmony_ciby the IRQ controller to flush the FIFO before running the interrupt handler 68c2ecf20Sopenharmony_ciof such devices. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciRequired properties: 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci- compatible: has to be "qca,<soc-type>-ddr-controller", 118c2ecf20Sopenharmony_ci "qca,[ar7100|ar7240]-ddr-controller" as fallback. 128c2ecf20Sopenharmony_ci On SoC with PCI support "qca,ar7100-ddr-controller" should be used as 138c2ecf20Sopenharmony_ci fallback, otherwise "qca,ar7240-ddr-controller" should be used. 148c2ecf20Sopenharmony_ci- reg: Base address and size of the controller's memory area 158c2ecf20Sopenharmony_ci- #qca,ddr-wb-channel-cells: Specifies the number of cells needed to encode 168c2ecf20Sopenharmony_ci the write buffer channel index, should be 1. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciExample: 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci ddr_ctrl: memory-controller@18000000 { 218c2ecf20Sopenharmony_ci compatible = "qca,ar9132-ddr-controller", 228c2ecf20Sopenharmony_ci "qca,ar7240-ddr-controller"; 238c2ecf20Sopenharmony_ci reg = <0x18000000 0x100>; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci #qca,ddr-wb-channel-cells = <1>; 268c2ecf20Sopenharmony_ci }; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci ... 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci interrupt-controller { 318c2ecf20Sopenharmony_ci ... 328c2ecf20Sopenharmony_ci qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 338c2ecf20Sopenharmony_ci qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>, 348c2ecf20Sopenharmony_ci <&ddr_ctrl 0>, <&ddr_ctrl 1>; 358c2ecf20Sopenharmony_ci }; 36