162306a36Sopenharmony_ciBinding for Qualcomm Atheros AR7xxx/AR9XXX CPU interrupt controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciOn most SoC the IRQ controller need to flush the DDR FIFO before running
462306a36Sopenharmony_cithe interrupt handler of some devices. This is configured using the
562306a36Sopenharmony_ciqca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciRequired Properties:
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci- compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-cpu-intc"
1062306a36Sopenharmony_ci  as fallback
1162306a36Sopenharmony_ci- interrupt-controller : Identifies the node as an interrupt controller
1262306a36Sopenharmony_ci- #interrupt-cells : Specifies the number of cells needed to encode interrupt
1362306a36Sopenharmony_ci		     source, should be 1 for intc
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciPlease refer to interrupts.txt in this directory for details of the common
1662306a36Sopenharmony_ciInterrupt Controllers bindings used by client devices.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciOptional Properties:
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci- qca,ddr-wb-channel-interrupts: List of the interrupts needing a write
2162306a36Sopenharmony_ci  buffer flush
2262306a36Sopenharmony_ci- qca,ddr-wb-channels: List of phandles to the write buffer channels for
2362306a36Sopenharmony_ci  each interrupt. If qca,ddr-wb-channel-interrupts is not present the interrupt
2462306a36Sopenharmony_ci  default to the entry's index.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciExample:
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci	interrupt-controller {
2962306a36Sopenharmony_ci		compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci		interrupt-controller;
3262306a36Sopenharmony_ci		#interrupt-cells = <1>;
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci		qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
3562306a36Sopenharmony_ci		qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
3662306a36Sopenharmony_ci					<&ddr_ctrl 0>, <&ddr_ctrl 1>;
3762306a36Sopenharmony_ci	};
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci	...
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci	ddr_ctrl: memory-controller@18000000 {
4262306a36Sopenharmony_ci		...
4362306a36Sopenharmony_ci		#qca,ddr-wb-channel-cells = <1>;
4462306a36Sopenharmony_ci	};
45