Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sunxi: Improve A33 NAND transfers by using DMA

In the current state, A33 NAND controllers use PIO during
transfers. Throughput can be increased thanks to the use of DMA
(mostly during reads, because of the ECC pipelining feature).

Besides the usual addition of DMA DT properties, because the A33
NAND DMA handling is different than for older SoCs, we must also
update the compatible which has recently been introduced for this
purpose.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

authored by

Miquel Raynal and committed by
Maxime Ripard
dccd30ea 41eb0df1

+3 -1
+3 -1
arch/arm/boot/dts/sun8i-a23-a33.dtsi
··· 162 162 }; 163 163 164 164 nfc: nand-controller@1c03000 { 165 - compatible = "allwinner,sun4i-a10-nand"; 165 + compatible = "allwinner,sun8i-a23-nand-controller"; 166 166 reg = <0x01c03000 0x1000>; 167 167 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; 168 168 clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>; 169 169 clock-names = "ahb", "mod"; 170 170 resets = <&ccu RST_BUS_NAND>; 171 171 reset-names = "ahb"; 172 + dmas = <&dma 5>; 173 + dma-names = "rxtx"; 172 174 pinctrl-names = "default"; 173 175 pinctrl-0 = <&nand_pins &nand_cs0_pin &nand_rb0_pin>; 174 176 status = "disabled";