Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5135125ybl; Tue, 10 Dec 2019 00:47:35 -0800 (PST) X-Google-Smtp-Source: APXvYqy7wRv2AcwFzCOkObsRV8S6GfpHymYfDKPzF/+aqHF+voi4xfgCj8g5T1b3gUCyrQ2vpyck X-Received: by 2002:a9d:6a98:: with SMTP id l24mr25211241otq.160.1575967655511; Tue, 10 Dec 2019 00:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575967655; cv=none; d=google.com; s=arc-20160816; b=EebR+/i25Q3eTi6wyGQ/1iim94kKITXd8BCRawHB4VvcAhFdEH3cmswMFn3ltBQdd3 oEj3dghu7bauRDOyKBoQr8j3+iKLwUb6/2p95YsKZk/vmUzgQ5cvPgU6ANzc1TuOaWeb anI7poSXdUjQcpp+yzXtjmnRTO2kiEWlWIciDPauGwBmlozCko4rLTE9hI02lzEwr85Y O651a3i5FvaYJV09IzOPOj7099uqSN6VQBj65tUxIfNXnDeqI6j1kjW7GxAUfm6J2rov Y3ISWmPqj4fe3Z77DHqN/RxO5P7sQvB4Atso3lcBowdUqLJpGqafK6F38YhSoP02G3iI NbHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=FMHqQIH0YwuED/+u0DxlTgEGgB9bB70Zi0r/xwFd6yw=; b=yDCltqy0Vqj1Ad542afvtoTFSl4AyBclZWu/BIMWX+hb1oq0lrS3AWuhwk+sUH28yU M0aQlheDi4efn3vQh1du3kju8LL+JwWJ9Kyt0W1Z0ejZwBRVYbqGRVeHHfqCsWm24z1j UZG5NbB4+RkRnnFdRYl2IxqgcRq0GbaIVcpYixZitCQRm6uN2k7FHEScmOy86hNgJl/5 7IP5cSTwrolEB+7WWnwJRyL63kzGu3mFssvIUwMDxmspgW7RDYD15RDywzcBgK5yu59M nH6FLosWtuuL8YJL12+4MK9CUDOlldhYardKS5XhzSKjR8YNochtkp3JWRwZEldw/O8f twjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=KOZTt67c; 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 p9si1474662otk.207.2019.12.10.00.47.23; Tue, 10 Dec 2019 00:47:35 -0800 (PST) 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; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=KOZTt67c; 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 S1727114AbfLJIqT (ORCPT + 99 others); Tue, 10 Dec 2019 03:46:19 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:43333 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfLJIqT (ORCPT ); Tue, 10 Dec 2019 03:46:19 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 4301722F53; Tue, 10 Dec 2019 09:46:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1575967576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FMHqQIH0YwuED/+u0DxlTgEGgB9bB70Zi0r/xwFd6yw=; b=KOZTt67cW8XL0gAMdkR78Sb60+C9JG9VLRnjrjYh2/4TSvdIIVK3PMDOv7LG0wl9c0gwa4 /EOpJ606cVhtBRlo8RwVucgGDj7nQaMRTtCw/ycZBvNb0NXBEalQ16NjajwX7bx8+afLhK CvWEDs5wZG6b6q9AhxHcXjIOYQ8bcrg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Dec 2019 09:46:10 +0100 From: Michael Walle To: Alison Wang Cc: Shawn Guo , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Li , Rob Herring , Mark Rutland Subject: Re: [EXT] Re: [PATCH] arm64: dts: ls1028a: put SAIs into async mode In-Reply-To: References: <20191129210937.26808-1-michael@walle.cc> <20191209090840.GL3365@dragon> Message-ID: <83445bed8b838b56e7d041915f1849f8@walle.cc> X-Sender: michael@walle.cc User-Agent: Roundcube Webmail/1.3.8 X-Spamd-Bar: + X-Spam-Level: * X-Rspamd-Server: web X-Spam-Status: No, score=1.40 X-Spam-Score: 1.40 X-Rspamd-Queue-Id: 4301722F53 X-Spamd-Result: default: False [1.40 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; NEURAL_HAM(-0.00)[-0.710]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alison, Am 2019-12-10 06:35, schrieb Alison Wang: > Hi, Michael, > > In most of our cases, TX and RX are using the same BCLK and SYNC > clocks. So the default synchronous mode (sync Rx with Tx) is used, > which means both transmitter and receiver will send and receive data > by following clocks of transmitter. It is verified on our boards. I get that, but it doesn't make sense for the LS1028A SoC because, there is no way you have have the TX data and the RX clocks or vice versa. The hardware of the SoC doesn't allow that. I cannot speak of the QDS variant of the SoC, but the LS1028ARDB only has a transmitter. So there is no problem, because it will default to the TX clock. But as soon as you also have a receiver you have to use the clock of the receiver block. You could say, use fsl,sai-synchronous-rx, but that will only work if the SAI is used in RX mode. fsl,sai-asynchronous mode works for both on the other hand and can therefore be the default mode. -michael > > > Best Regards, > Alison Wang > >> -----Original Message----- >> From: Shawn Guo >> Sent: Monday, December 9, 2019 5:09 PM >> To: Michael Walle ; Alison Wang >> >> Cc: linux-arm-kernel@lists.infradead.org; devicetree@vger.kernel.org; >> linux-kernel@vger.kernel.org; Leo Li ; Rob Herring >> ; Mark Rutland >> Subject: [EXT] Re: [PATCH] arm64: dts: ls1028a: put SAIs into async >> mode >> >> Caution: EXT Email >> >> + Alison Wang >> >> On Fri, Nov 29, 2019 at 10:09:37PM +0100, Michael Walle wrote: >> > The LS1028A SoC has only unidirectional SAIs. Therefore, it doesn't >> > make sense to have the RX and TX part synchronous. Even worse, the RX >> > part wont work out of the box because by default it is configured as >> > synchronous to the TX part. And as said before, the pinmux of the SoC >> > can only be configured to route either the RX or the TX signals to the >> > SAI but never both at the same time. Thus configure the asynchronous >> > mode by default. >> > >> > Signed-off-by: Michael Walle >> >> Alison, Leo, >> >> Looks good to you? >> >> Shawn >> >> > --- >> > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 ++++++ >> > 1 file changed, 6 insertions(+) >> > >> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi >> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi >> > index 379913756e90..9be33426e5ce 100644 >> > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi >> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi >> > @@ -637,6 +637,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 4>, >> > <&edma0 1 3>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > @@ -651,6 +652,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 6>, >> > <&edma0 1 5>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > @@ -665,6 +667,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 8>, >> > <&edma0 1 7>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > @@ -679,6 +682,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 10>, >> > <&edma0 1 9>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > @@ -693,6 +697,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 12>, >> > <&edma0 1 11>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > @@ -707,6 +712,7 @@ >> > dma-names = "tx", "rx"; >> > dmas = <&edma0 1 14>, >> > <&edma0 1 13>; >> > + fsl,sai-asynchronous; >> > status = "disabled"; >> > }; >> > >> > -- >> > 2.20.1 >> >