Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758254AbdCUTNw (ORCPT ); Tue, 21 Mar 2017 15:13:52 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36239 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757296AbdCUTNc (ORCPT ); Tue, 21 Mar 2017 15:13:32 -0400 MIME-Version: 1.0 In-Reply-To: <20170321070818.3247-1-guodong.xu@linaro.org> References: <20170321070818.3247-1-guodong.xu@linaro.org> From: Antonio Borneo Date: Tue, 21 Mar 2017 20:13:29 +0100 Message-ID: Subject: Re: [PATCH] arm64: dts: hi6220: enable DMA in spi0 To: Guodong Xu Cc: xuwei5@hisilicon.com, Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-kernel@vger.kernel.org" , Wang Xiaoyin , Zhong Kaihua , linux-spi@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1911 Lines: 53 On Tue, Mar 21, 2017 at 8:08 AM, Guodong Xu wrote: > From: Wang Xiaoyin > > Enable DMA in spi0. Hi Guodong, Xiaoyin, added linux-spi in copy. Actually the patch does not enable the DMA. The commit message is not correct. > Cc: Antonio Borneo > Signed-off-by: Zhong Kaihua > Signed-off-by: Guodong Xu > Signed-off-by: Wang Xiaoyin > --- > arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > index 470461d..e40625f 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > @@ -682,7 +682,8 @@ > reg = <0x0 0xf7106000 0x0 0x1000>; > interrupts = <0 50 4>; > bus-id = <0>; > - enable-dma = <0>; > + dmas = <&dma0 0 &dma0 1>; > + dma-names = "rx", "tx"; The controller spi0 is a standard ARM PL022. This patch removes the nonexistent property "enable-dma" and specifies which DMA controller and which DMA channels are connected to spi0. The values are coherent with the documentation available for hi6220. Apart from the commit message, I'm fine with this patch. On PL022 the DMA is not enabled in the DT node of the controller but in the DT node of each spi device, through the property "pl022,com-mode". A separate patch should eventually enable the DMA for those spi devices that require it. Best Regards, Antonio > clocks = <&sys_ctrl HI6220_SPI_CLK>; > clock-names = "apb_pclk"; > pinctrl-names = "default"; > -- > 2.10.2 >