Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbcCAKME (ORCPT ); Tue, 1 Mar 2016 05:12:04 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:21119 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbcCAKMA (ORCPT ); Tue, 1 Mar 2016 05:12:00 -0500 Subject: Re: [PATCH] ARM: dts: at91: sama5d2: add dma properties to UART nodes To: Alexandre Belloni , References: <1453825818-25217-1-git-send-email-nicolas.ferre@atmel.com> CC: , Ludovic Desroches , Cyrille Pitchen From: Nicolas Ferre Organization: atmel Message-ID: <56D56AFA.6050605@atmel.com> Date: Tue, 1 Mar 2016 11:12:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1453825818-25217-1-git-send-email-nicolas.ferre@atmel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3186 Lines: 95 Le 26/01/2016 17:30, Nicolas Ferre a ?crit : > The dmas/dma-names properties are added to the UART nodes. Note that additional > properties are needed to enable them at the board level: check bindings for > details. > > Signed-off-by: Nicolas Ferre Added to at91-4.6-dt. Bye, > --- > arch/arm/boot/dts/sama5d2.dtsi | 35 +++++++++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > > diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi > index 3f750f6170f2..82d0c19e9720 100644 > --- a/arch/arm/boot/dts/sama5d2.dtsi > +++ b/arch/arm/boot/dts/sama5d2.dtsi > @@ -880,6 +880,13 @@ > compatible = "atmel,at91sam9260-usart"; > reg = <0xf801c000 0x100>; > interrupts = <24 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(35))>, > + <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(36))>; > + dma-names = "tx", "rx"; > clocks = <&uart0_clk>; > clock-names = "usart"; > status = "disabled"; > @@ -889,6 +896,13 @@ > compatible = "atmel,at91sam9260-usart"; > reg = <0xf8020000 0x100>; > interrupts = <25 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(37))>, > + <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(38))>; > + dma-names = "tx", "rx"; > clocks = <&uart1_clk>; > clock-names = "usart"; > status = "disabled"; > @@ -898,6 +912,13 @@ > compatible = "atmel,at91sam9260-usart"; > reg = <0xf8024000 0x100>; > interrupts = <26 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(39))>, > + <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(40))>; > + dma-names = "tx", "rx"; > clocks = <&uart2_clk>; > clock-names = "usart"; > status = "disabled"; > @@ -1016,6 +1037,13 @@ > compatible = "atmel,at91sam9260-usart"; > reg = <0xfc008000 0x100>; > interrupts = <27 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(41))>, > + <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(42))>; > + dma-names = "tx", "rx"; > clocks = <&uart3_clk>; > clock-names = "usart"; > status = "disabled"; > @@ -1024,6 +1052,13 @@ > uart4: serial@fc00c000 { > compatible = "atmel,at91sam9260-usart"; > reg = <0xfc00c000 0x100>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(43))>, > + <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | > + AT91_XDMAC_DT_PERID(44))>; > + dma-names = "tx", "rx"; > interrupts = <28 IRQ_TYPE_LEVEL_HIGH 7>; > clocks = <&uart4_clk>; > clock-names = "usart"; > -- Nicolas Ferre