Skip to content

Commit

Permalink
dt-overlay to enable dma for spi driver
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
  • Loading branch information
msperl authored and popcornmix committed Aug 17, 2015
1 parent b2f0132 commit e0edb52
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dtb-$(RPI_DT_OVERLAYS) += rpi-sense-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += sdhost-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += spi-bcm2708-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += spi-bcm2835-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += spi-dma-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
Expand Down
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/overlays/spi-dma-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Device tree overlay for spi-bcm2835 to allow dma
*/

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";

fragment@0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
dmas = <&dma 6>, <&dma 7>;
dma-names = "tx", "rx";
};
};
};

0 comments on commit e0edb52

Please sign in to comment.