From 45b4602efd7eb99d4a00a69eaf453cbc45c12a12 Mon Sep 17 00:00:00 2001
From: Mike Nicholson <Mike.Nicholson@multitech.com>
Date: Thu, 7 Feb 2019 17:43:02 -0600
Subject: Add DMA to uart0, delete m25p80

---
 .../mtrv1/linux-4.9-mtrv1-device-tree.patch          | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

(limited to 'recipes-kernel/linux/linux-at91-4.9.87')

diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtrv1/linux-4.9-mtrv1-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtrv1/linux-4.9-mtrv1-device-tree.patch
index 67046b7..aac6245 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtrv1/linux-4.9-mtrv1-device-tree.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtrv1/linux-4.9-mtrv1-device-tree.patch
@@ -112,20 +112,20 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtrv1.dts linux-4.9.87/arch/arm/b
 +			dbgu: serial@fffff200 {
 +				status = "okay";
 +			};
++   
++     spi@f0000000 {
++       /delete-node/ m25p80@0;
++     };
 +
 +			/delete-node/ serial@f801c000;
-+			/*
-+			 * atmel,use-dma causes the port to hang.
-+			 * atmel,use-dma is used for UARTS in
-+			 * the following files:
-+			 *    at91-sama5d4_xplained_pda7b.dts
-+			 *    at91-sama5d2_xplained_common.dtsi
-+			 *    at91sam9260.dtsi
-+			 */
++
 +			uart0: serial@f8040000 {
 +				status = "okay";
-+				/delete-property/ atmel,use-dma-rx;
-+				/delete-property/ atmel,use-dma-tx;
++				atmel,use-dma-rx;
++				atmel,use-dma-tx;
++       dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(11)>,
++              <&dma0 1 (AT91_DMA_CFG_PER_ID(12) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
++       dma-names = "tx", "rx";
 +			};
 +
 +			usb2: gadget@f803c000 {
-- 
cgit v1.2.3