18c2ecf20Sopenharmony_ciBinding for Qualcomm Atheros AR7xxx/AR9XXX CPU interrupt controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciOn most SoC the IRQ controller need to flush the DDR FIFO before running
48c2ecf20Sopenharmony_cithe interrupt handler of some devices. This is configured using the
58c2ecf20Sopenharmony_ciqca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciRequired Properties:
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-cpu-intc"
108c2ecf20Sopenharmony_ci  as fallback
118c2ecf20Sopenharmony_ci- interrupt-controller : Identifies the node as an interrupt controller
128c2ecf20Sopenharmony_ci- #interrupt-cells : Specifies the number of cells needed to encode interrupt
138c2ecf20Sopenharmony_ci		     source, should be 1 for intc
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciPlease refer to interrupts.txt in this directory for details of the common
168c2ecf20Sopenharmony_ciInterrupt Controllers bindings used by client devices.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciOptional Properties:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci- qca,ddr-wb-channel-interrupts: List of the interrupts needing a write
218c2ecf20Sopenharmony_ci  buffer flush
228c2ecf20Sopenharmony_ci- qca,ddr-wb-channels: List of phandles to the write buffer channels for
238c2ecf20Sopenharmony_ci  each interrupt. If qca,ddr-wb-channel-interrupts is not present the interrupt
248c2ecf20Sopenharmony_ci  default to the entry's index.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExample:
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	interrupt-controller {
298c2ecf20Sopenharmony_ci		compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci		interrupt-controller;
328c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci		qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
358c2ecf20Sopenharmony_ci		qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
368c2ecf20Sopenharmony_ci					<&ddr_ctrl 0>, <&ddr_ctrl 1>;
378c2ecf20Sopenharmony_ci	};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci	...
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci	ddr_ctrl: memory-controller@18000000 {
428c2ecf20Sopenharmony_ci		...
438c2ecf20Sopenharmony_ci		#qca,ddr-wb-channel-cells = <1>;
448c2ecf20Sopenharmony_ci	};
45