Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1428508ybh; Sun, 15 Mar 2020 02:45:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsBkUdnwYzsfhvKMITfnnpSGAdpGY6oAIRYsFOLgUQISkMEXAGEsvN6YZ2jBoIddhP7/x8d X-Received: by 2002:aca:450a:: with SMTP id s10mr13143934oia.25.1584265508912; Sun, 15 Mar 2020 02:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584265508; cv=none; d=google.com; s=arc-20160816; b=X0Yx5+IwmFHG9TwX0oCQW83a7SwY3PSA1BBM5lQISCGohx7kPTlHkIekM065T2QBL6 SomKvVGJwKlyKaf28Vz8AMCBpQhFyQIqd5exakVD6u7Rwi/8/Mo0uREKH3ITWtYd3v49 ORtcSxp5p77XeXVmYPOUwfqaeNwWZxINYxACMEpVvQG4T6gKBuy6V9NCssFZgOh21yoc Gp1+AikvR9+4u2bwvs41ilKDwxpTvSWGKSRGwwMaoioYBLmZb5sdr4JoSnOR0Om3PXmH IwdI3nXlYXd8fbSXS5p260UDXR6GKbimpK0JpIQXvKXN22baQG9U7a4RYHcQr5Fhx38f 2Rlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=D47AHdjAKqLezb7Thz8d62ra3AB/hbhjmHybNX6dQQk=; b=kqMK+Q294SIz3A+HLuXfR858stEnj8XBk0faYEA7G/TGlbF2uEFiqaK1iec4zH9sg6 aSuL1VpFjq0UZ4jSYQfAXQWrbrx2xW62dfaOZPfHKjbJN3qPZn+jy9ROcEfagztUuKDq RbLQW25ew71PE2+nAadtpEaasMQOmSf08Xz9OPqTAN+yMx7001Xd21WTrxC8ZHmq/6vK 0kd34SGwmJoGz/XmX8z+1A+tp74n9AR77bX1Pc/F5nTPU+7lrwLf5064d6TFdi9BJ02u bPeap56aF+U36ve+ITHmm9U7SMog8UowhgmizT7PMI+GnMY5h72AySgMPxEwc6o8vYC9 zoaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si7957066otn.101.2020.03.15.02.44.55; Sun, 15 Mar 2020 02:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728148AbgCOJoZ (ORCPT + 99 others); Sun, 15 Mar 2020 05:44:25 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:53142 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728123AbgCOJoZ (ORCPT ); Sun, 15 Mar 2020 05:44:25 -0400 Received: from fsav101.sakura.ne.jp (fsav101.sakura.ne.jp [27.133.134.228]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 02F9iDJp004785; Sun, 15 Mar 2020 18:44:13 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav101.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav101.sakura.ne.jp); Sun, 15 Mar 2020 18:44:13 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav101.sakura.ne.jp) Received: from [192.168.1.2] (121.252.232.153.ap.dti.ne.jp [153.232.252.121]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 02F9iDK0004781 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Mar 2020 18:44:13 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH] ARM: dts: rockchip: use DMA channels for UARTs of TinkerBoard To: =?UTF-8?Q?Heiko_St=c3=bcbner?= Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200314142327.25568-1-katsuhiro@katsuster.net> <2930126.sCcUyySgUU@diego> From: Katsuhiro Suzuki Message-ID: <0b36bf84-0e7b-7287-a094-9fd2f33167ee@katsuster.net> Date: Sun, 15 Mar 2020 18:44:13 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <2930126.sCcUyySgUU@diego> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Heiko, > This belongs in rk3288.dtsi, as this is definitly not board-specific, as > the dma-uart connection is done inside the soc. > > At least on arm64 (rk3328, px30, probably more) we already have the > uart dmas in the core dtsi without any problems. > > Is there any reason why you only did add it to the tinker board only? There is no special reason. Simply I don't have and not tested on other boards of RK3288. But I hope these DMA settings can work correctly on other boards. I'll resend patch for rk3288.dtsi. Best Regards, Katsuhiro Suzuki On 2020/03/15 0:09, Heiko Stübner wrote: > Hi, > > Am Samstag, 14. März 2020, 15:23:27 CET schrieb Katsuhiro Suzuki: >> This patch enables to use DMAC for all UARTs that are connected to >> dmac_peri core for TinkerBoard. >> >> Only uart2 is connected different DMAC (dmac_bus_s) so keep current >> settings on this patch. > > This belongs in rk3288.dtsi, as this is definitly not board-specific, as > the dma-uart connection is done inside the soc. > > At least on arm64 (rk3328, px30, probably more) we already have the > uart dmas in the core dtsi without any problems. > > Is there any reason why you only did add it to the tinker board only? > > > Heiko > > >> Signed-off-by: Katsuhiro Suzuki >> --- >> arch/arm/boot/dts/rk3288-tinker.dtsi | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/arch/arm/boot/dts/rk3288-tinker.dtsi b/arch/arm/boot/dts/rk3288-tinker.dtsi >> index 312582c1bd37..6efabeaf3c6d 100644 >> --- a/arch/arm/boot/dts/rk3288-tinker.dtsi >> +++ b/arch/arm/boot/dts/rk3288-tinker.dtsi >> @@ -491,10 +491,14 @@ &tsadc { >> }; >> >> &uart0 { >> + dmas = <&dmac_peri 1>, <&dmac_peri 2>; >> + dma-names = "tx", "rx"; >> status = "okay"; >> }; >> >> &uart1 { >> + dmas = <&dmac_peri 3>, <&dmac_peri 4>; >> + dma-names = "tx", "rx"; >> status = "okay"; >> }; >> >> @@ -503,10 +507,14 @@ &uart2 { >> }; >> >> &uart3 { >> + dmas = <&dmac_peri 7>, <&dmac_peri 8>; >> + dma-names = "tx", "rx"; >> status = "okay"; >> }; >> >> &uart4 { >> + dmas = <&dmac_peri 9>, <&dmac_peri 10>; >> + dma-names = "tx", "rx"; >> status = "okay"; >> }; >> >> > > > > >