mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
dts: bcm2712-rpi: Give PIO the "heavy" DMA channels
PIO benefits from increased DMA bandwidth when used with DMA channels 0 or 1, because they support longer bursts. Add DMA channel selection attributes to prevent other users from claiming them. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include <dt-bindings/power/raspberrypi-power.h>
|
||||
|
||||
#define DMA_FLAG_HEAVY (1 << 8)
|
||||
|
||||
&soc {
|
||||
firmware: firmware {
|
||||
compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
|
||||
@@ -91,7 +93,19 @@
|
||||
};
|
||||
};
|
||||
|
||||
&rp1_dma {
|
||||
snps,chan-flags = <DMA_FLAG_HEAVY DMA_FLAG_HEAVY 0 0 0 0 0 0>;
|
||||
};
|
||||
|
||||
pio: &rp1_pio {
|
||||
dmas = <&rp1_dma (RP1_DMA_PIO_CH0_TX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH0_RX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH1_TX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH1_RX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH2_TX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH2_RX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH3_TX | DMA_FLAG_HEAVY)>,
|
||||
<&rp1_dma (RP1_DMA_PIO_CH3_RX | DMA_FLAG_HEAVY)>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user