Skip to content

Commit

Permalink
ARM: dts: bcm2711: Allow 40-bit DMA for SPI
Browse files Browse the repository at this point in the history
Add the spi_dma4 DT parameter to enable use of the 40-bit DMA channels
to drive SPI. Note that there are only 3-4 40-bit channels available,
and using this parameter claims 2 of them.

Usage: dtparam=spi_dma4

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed May 1, 2020
1 parent 28fd8b5 commit f72d18f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/bcm2711-rpi-4-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,7 @@
eth_led0 = <&phy1>,"led-modes:0";
eth_led1 = <&phy1>,"led-modes:4";

spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
<&spi0>, "dmas:8=", <&dma40>;
};
};
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ Params:
spi Set to "on" to enable the spi interfaces
(default "off")

spi_dma4 Use to enable 40-bit DMA on spi interfaces
(the assigned value doesn't matter)
(2711 only)

random Set to "on" to enable the hardware random
number generator (default "on")

Expand Down

0 comments on commit f72d18f

Please sign in to comment.