Skip to content

Commit e0edb52

Browse files
msperlpopcornmix
authored andcommitted
dt-overlay to enable dma for spi driver
Signed-off-by: Martin Sperl <[email protected]>
1 parent b2f0132 commit e0edb52

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dtb-$(RPI_DT_OVERLAYS) += rpi-sense-overlay.dtb
4545
dtb-$(RPI_DT_OVERLAYS) += sdhost-overlay.dtb
4646
dtb-$(RPI_DT_OVERLAYS) += spi-bcm2708-overlay.dtb
4747
dtb-$(RPI_DT_OVERLAYS) += spi-bcm2835-overlay.dtb
48+
dtb-$(RPI_DT_OVERLAYS) += spi-dma-overlay.dtb
4849
dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
4950
dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
5051
dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Device tree overlay for spi-bcm2835 to allow dma
3+
*/
4+
5+
/dts-v1/;
6+
/plugin/;
7+
8+
/ {
9+
compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
10+
11+
fragment@0 {
12+
target = <&spi0>;
13+
__overlay__ {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
dmas = <&dma 6>, <&dma 7>;
17+
dma-names = "tx", "rx";
18+
};
19+
};
20+
};

0 commit comments

Comments
 (0)