Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5155622ybl; Tue, 10 Dec 2019 01:14:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwMtH7bbTUC0xRlkjQ64j42p6JWc3ovrM02noilCaN90mMr4/9OPH+d6EBy0OwLfsmlMqs4 X-Received: by 2002:aca:4d0f:: with SMTP id a15mr3110175oib.21.1575969262007; Tue, 10 Dec 2019 01:14:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575969262; cv=pass; d=google.com; s=arc-20160816; b=KUzdu5l6HqMlH8HrKmUrKU/yk4cdA5ef6uTxSnj9bVsBxXUv3m+QnvaSQJdwESiicU pz3ALEKvdzNdRCVjtoIEAe/5T+S2R6P5E0B26EYGHCk/LsX+KTLP8+5JSQal1mfBdbtQ uNc8cKU7AmXGoYlgtci41qtdyqeI0YfuUy8nJiVBDVNyr7xT1LdztllTf7FOBDstsos9 gcQ38hoUK8wnLXN5cTIrFuQQ/3gn87JCVefAKf57MS3OiX3L0YWrdOpUsdBfTbIkUCMw XD0T+tb/nd3Q4PvcP3VTMJKqofyZqhMOhsLE2h+uU0N1Gxk7z2dPYNXV23icgcynd7Di y23g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=7gB01iLhhHSWa1fDX3dD170nxdlDdIgKTd8vkpg2j2M=; b=RX3NmuyJXHXfHOOWo+y6sana9OOsJNzLDObvCzsma3QVeTPkVAm1rT84QtVfDMYYXk IWkO/PM32CVhQlx5LYczaOfRknc8h/1VfxRtEJnl2bFzTVvnuySbtpJCrpysDAcdm7sG VDrgO8RDgfNpwHfD7Wvc/Z3ESoZ6RG15SZcIoFxFwzIUsCiURr1fvXCNoDf9LJrU1urg mRE1aKxRn0PTXQDIWwWUJyNlcuhkC9NLiF7uTP8h7ZFmas/91EVQ33HBl19eiOvk9EeU ZRQWfOsMrJMWaMcDdUGGTId7BuAEl3iT6U0KfuvcfAPjTpQhHLM9fYpng4KtHUKu05A9 HCSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Ymnxi+6t; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si1733272oti.4.2019.12.10.01.14.09; Tue, 10 Dec 2019 01:14:21 -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=@nxp.com header.s=selector2 header.b=Ymnxi+6t; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbfLJJN2 (ORCPT + 99 others); Tue, 10 Dec 2019 04:13:28 -0500 Received: from mail-eopbgr30048.outbound.protection.outlook.com ([40.107.3.48]:37634 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726911AbfLJJN2 (ORCPT ); Tue, 10 Dec 2019 04:13:28 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X+BhXKt0zjvmmJuiG+cs6A1sB/qoRNeSIc5x4iK272H+PpyMW3NGQEPABlz940Bfm/flrC52mcgLDL1s2v0DJJ5rc9fzDFLiyACqK8dOch9FHePa0oeZ4Rzj9UmiEOPJrJkgvWpTrUXX5wSlp4Q326uhuwGlHjIojKspo0wAnAw8LaXaaa5lkTpD6LWGIRdVPHJLQmFB5BxuMRTm+DiU6aQx8LBwtkkFcVn9lsf+cX4wtichrVoxPKO8JvDS86zx7FBisyq2qdJLbiqmuDy0T2kPA9MbdWhOPbTul4+gTJcwM1TS0oeXmExPBTBqg/FR72TR+Ev4QDQkbWPXa7ojJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7gB01iLhhHSWa1fDX3dD170nxdlDdIgKTd8vkpg2j2M=; b=CoVyIapBydXT62pjnEI27EE+LEYj4fe8+BW4jqUT7bzzgoIUyfgfKwhghDrJqPtYVLUA4VPpPoMq8NnQDSkAlj4DFkow1Z6KuyFxC9lB3gllR6+4U8kXgs06ujSX4e+6QsN1xU15Zjwim7k0fKx6zGjColVHsDDhCmwqUydMYc/euh7DZl+AnJFjcol92eJrXg8DOVjmZanZvqQehd+0ql5QhtAFgYobgifhRrP0mrK4Cos3x7sx8yLkx1NbOWuPixTRxuh2Wu7X0c0SptI+5m12FLgPz8MJOWVmfh1b0kCKdrhIREeLJQPi4tjmswAvkUw9LoQwgtyTzRKmBfsuxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7gB01iLhhHSWa1fDX3dD170nxdlDdIgKTd8vkpg2j2M=; b=Ymnxi+6t0Zz8h/mJET7sxU7NQe/NdNG9Nj1a0rBAHb4hqgoJ91JApGNsbF6DttSEwIgabZt3PjdSC0u088piqxD0OCcN2exrKaPfFLMMS+LXfVqIVwtfYvg+KRoFdgFqwAVp5wXrNdCTzwA7+AqxoCusX9VyxhiEKCVy3C0AveM= Received: from VI1PR04MB4062.eurprd04.prod.outlook.com (52.133.12.32) by VI1PR04MB4349.eurprd04.prod.outlook.com (52.133.12.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.17; Tue, 10 Dec 2019 09:13:23 +0000 Received: from VI1PR04MB4062.eurprd04.prod.outlook.com ([fe80::20fe:3e38:4eec:ea03]) by VI1PR04MB4062.eurprd04.prod.outlook.com ([fe80::20fe:3e38:4eec:ea03%7]) with mapi id 15.20.2516.018; Tue, 10 Dec 2019 09:13:23 +0000 From: Alison Wang To: Michael Walle 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 Thread-Topic: [EXT] Re: [PATCH] arm64: dts: ls1028a: put SAIs into async mode Thread-Index: AQHVrnBLtaYchIru+E6aNXw66ImuFqeyq8zwgABj3QCAAASy0A== Date: Tue, 10 Dec 2019 09:13:23 +0000 Message-ID: References: <20191129210937.26808-1-michael@walle.cc> <20191209090840.GL3365@dragon> <83445bed8b838b56e7d041915f1849f8@walle.cc> In-Reply-To: <83445bed8b838b56e7d041915f1849f8@walle.cc> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=alison.wang@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 31770836-91c0-4337-fef6-08d77d51354a x-ms-traffictypediagnostic: VI1PR04MB4349:|VI1PR04MB4349: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 02475B2A01 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(136003)(376002)(366004)(396003)(39860400002)(13464003)(199004)(189003)(4001150100001)(53546011)(186003)(7696005)(5660300002)(54906003)(6506007)(26005)(44832011)(71190400001)(71200400001)(52536014)(33656002)(4326008)(64756008)(66946007)(66476007)(66556008)(76116006)(305945005)(2906002)(66446008)(8936002)(9686003)(55016002)(229853002)(316002)(86362001)(8676002)(478600001)(6916009)(81156014)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4349;H:VI1PR04MB4062.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1WZm5Opry7qedfgQi7MglZcqjxFWkDOFLN1X0Gmbq0BVkOsmRU8/H3wC9j6Q6b82611XxQsddob4cTyrB1aTLk8WuLjaXhEBflbdWolKlRGnLTu4BxxorKFkUrHNLA6U1NCORVCYME6rbeQydzdec3KyZJ5YspZMvXezd9/8iDN7YzZSTn2i71LQNU/RNekdrwxzxzC0fgmsRpPQS4ABCa/4ptW/4UMnvAGJQA3tfQLIbcrgXTzKSIp7+F2Ix4aXutuimcRKYIMnmWW1oIrtoG5WwBjyUEzPCvCYhvdg1Jmb1dUQO7CV8y+SKsYkqCV5XLlLLDVj7aHeUO0hTx9CG7wE7cHLa35TKVlQKt7Iy+16vCMy+WYEj8lpodTVXIvjUBXTZWiINIpt4QXiEv8CdtbMPtsf9Wq99qBWdhpUqhpq2i3O9FTIFoCYRXso+qevXa2I1loPJhiQ20J+qvaujNO6SpLfMbygzsC41WLUQJGJRRaQ0xjp1dDwFTOu49iF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31770836-91c0-4337-fef6-08d77d51354a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2019 09:13:23.4455 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qElqFmhZjB3vxL3li3qfREJvYm5JIvPfzDMcuHZDJ7UeRW7aoXC4s/nx8anxMc9707jnS/JoX3Z2iEscTgYwrg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4349 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Michael, > Caution: EXT Email >=20 > Hi Alison, >=20 > 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. >=20 >=20 > 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 hardwa= re > of the SoC doesn't allow that. I cannot speak of the QDS variant of the S= oC, 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-r= x, but > that will only work if the SAI is used in RX mode. fsl,sai-asynchronous m= ode > works for both on the other hand and can therefore be the default mode. >=20 > -michael [Alison] Your explanation is reasonable. LS1028A SoC is a specific one. Usi= ng fsl,sai-asynchronous mode is the preferred choice. Acked-by: Alison Wang Best Regards, Alison Wang >=20 >=20 > > > > > > 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 =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 4>, > >> > <&edma0 1 3>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > @@ -651,6 +652,7 @@ > >> > dma-names =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 6>, > >> > <&edma0 1 5>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > @@ -665,6 +667,7 @@ > >> > dma-names =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 8>, > >> > <&edma0 1 7>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > @@ -679,6 +682,7 @@ > >> > dma-names =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 10>, > >> > <&edma0 1 9>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > @@ -693,6 +697,7 @@ > >> > dma-names =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 12>, > >> > <&edma0 1 11>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > @@ -707,6 +712,7 @@ > >> > dma-names =3D "tx", "rx"; > >> > dmas =3D <&edma0 1 14>, > >> > <&edma0 1 13>; > >> > + fsl,sai-asynchronous; > >> > status =3D "disabled"; > >> > }; > >> > > >> > -- > >> > 2.20.1 > >> >