Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp903460ybi; Wed, 3 Jul 2019 06:26:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh3YqREmBbZ0BRBl1jW/3YCm1wB3uoVhhUIKaJA/ZbXboOFG5ODcRI3tD5R0Z27lt8Mxgl X-Received: by 2002:a65:64cf:: with SMTP id t15mr29313457pgv.88.1562160388264; Wed, 03 Jul 2019 06:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562160388; cv=none; d=google.com; s=arc-20160816; b=rHfljaBCXRI4/LJNN027//NHIknOBP2GUFEkIdZBMaUctAep9PpiLWsR/gJpODvskO vVwz4h49C7Sl3mDYO5xKo0es7HQXjX0Hklcg6BaDhnAuW/rGx/IuQWCq/MSuRxHwCwKL jnuOKtejCGNVbHKhLy+LcykPy6mVVl8CUyVK0PJi9xduc2yU0uXU4pT5049xW5iggz/D cG+xyaMqDBPnV79JP8b2HrM5ZRRb+N8YwFefzHJcYp6yItfotkL21IJkYj2HGU0G0n9T E28QALAxBuoD6BmcvIqHwjX/cvzZqdzBJ2dRvHw8Evlj7T7c5raGpiXzgZCY/QBSPb6g Gs0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4NwugRsrz30iTHZQgWt6F/3Ov8fl00xOltiwxUVEio8=; b=huNqgrx7RqGDecTASrNtZ2rwI1j6TLYEvICTDRE4/ikL3uulY0Mi9QKF3X4yAlmGk6 4yBg5rtKr4LY/F1gzy+NDimW9whKsfgFWcmjrwJpmAj8KSbnAu4Z+K7yL8kvoxfOk6n0 h3tyTgY/Xe23y3WK+uGHYEMp17NloJSnAlzyFwb8zI/xQJHApyCRd0FcOhVTTlHW6lTv eRTnABtf7sp6YYdywGv89u7c186EF3PNmRkRmo7nH3ZAdQhTX5N+TXl3+bNSIFZFBzs5 MczBgIJD45k8oBqWCXPDpU87NyGOGBvUBHPH+cwTNtL+fZ94xB/HhUi8NM27kPAjz1ug mNAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gpg6IaJ2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si2220391pll.36.2019.07.03.06.26.13; Wed, 03 Jul 2019 06:26:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gpg6IaJ2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727083AbfGCNZY (ORCPT + 99 others); Wed, 3 Jul 2019 09:25:24 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38390 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbfGCNZY (ORCPT ); Wed, 3 Jul 2019 09:25:24 -0400 Received: by mail-wr1-f66.google.com with SMTP id p11so2817271wro.5; Wed, 03 Jul 2019 06:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4NwugRsrz30iTHZQgWt6F/3Ov8fl00xOltiwxUVEio8=; b=gpg6IaJ2V2R/S8X/fVZz+TVrGpioO30d1kedBhmuLkrgt48raO6wgYYtLQMI0SvZH8 xOMeAXfBsRZCOnvNrZeBFCo500XqvHpTmjJNXjW3IGTvTjEYx/rClLrlnWh1rX4gaCQX Nxd8k8gSxt3B0QMV6mUHj0QG/bKQPiEKcQmDi8YY92Jtw0bdwFuMYYCmW2IpDK5sUMVl 8qv2Uc+Mg7HoiZCajbjFv+O1WGCDYSQCf2SFM8wS1GL9a35GOnSJF/5srPQcPOlXcGWR lov25fTvovhq667L//7AO05bdZ+UicM3tDbMJw4XnDQa5VoAvcHS7/41wY7NrwoN/8bF t2BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4NwugRsrz30iTHZQgWt6F/3Ov8fl00xOltiwxUVEio8=; b=PMh546tS69a8jMQuh8PYbblhriApIeqA4L8xFO64jej2hgsffiRQcaK0PCi4GwUdxx eSHGNvH5VjoRg86fmgqIDk9OjdmCarahe7SxNM72oLr/FftBze9yFKJtzyBKhxf5yN+n ECsf1AW9tTmvgd+pi0NnE8oEphP709sXPFpQKzFe/CigVt7VT2B+o1c0/e83wXIGoFCu 2yh7wNucSRKdKu60fnVuKFy61MYBWWcj2hECx+TjSmYUVxr1Sjx+ZLLBJbxUidJ5e9cA y7e7CKrobe1kG15T8LDYMdUQjM5zqFA0/T10iV34UDpUXbS2P4mwV6YgQeGOsMtozEcj o+BQ== X-Gm-Message-State: APjAAAUK9DPJ67p7yq/B/NkJmgRk4NHiMQDLHv4Dlzr3xq8mAJXXxkCa 2gRotKfA2eAD/Q0Aehf0quCnc0Q5s0Xe4sgb1T4= X-Received: by 2002:adf:b69a:: with SMTP id j26mr21826997wre.93.1562160321848; Wed, 03 Jul 2019 06:25:21 -0700 (PDT) MIME-Version: 1.0 References: <20190702132353.18632-1-andradanciu1997@gmail.com> <9ea5109f8645c3f27a9e350c5f9b2d4c@www.akkea.ca> <9e196ce51eac9ce9c327198c4a2911a8@www.akkea.ca> In-Reply-To: <9e196ce51eac9ce9c327198c4a2911a8@www.akkea.ca> From: Daniel Baluta Date: Wed, 3 Jul 2019 16:25:10 +0300 Message-ID: Subject: Re: [PATCH v3] arm64: dts: imx8mq: Add sai3 and sai6 nodes To: Angus Ainslie Cc: Andra Danciu , Shawn Guo , Rob Herring , Mark Rutland , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Lucas Stach , Abel Vesa , Anson Huang , andrew.smirnov@gmail.com, Carlo Caione , =?UTF-8?Q?Guido_G=C3=BCnther?= , Devicetree List , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 3, 2019 at 4:12 PM Angus Ainslie wrote: > > Hi Daniel, > > On 2019-07-03 07:10, Daniel Baluta wrote: > > On Wed, Jul 3, 2019 at 4:01 PM Angus Ainslie wrote: > >> > >> Hi Andra, > >> > >> I tried this out on linux-next and I'm not able to record or play > >> sound. > >> > >> I also added the sai2 entry to test out our devkit and get a PCM > >> timeout > >> with that. > > > > Hi Angus, > > > > There are still lots of SAI patches that need to be upstream. Me and > > Andra > > will be working on that over this summer. > > > >> > >> On 2019-07-02 07:23, Andra Danciu wrote: > >> > SAI3 and SAI6 nodes are used to connect to an external codec. > >> > They have 1 Tx and 1 Rx dataline. > >> > > >> > Cc: Daniel Baluta > >> > Signed-off-by: Andra Danciu > >> > --- > >> > Changes since v2: > >> > - removed multiple new lines > >> > > >> > Changes since v1: > >> > - Added sai3 node because we need it to enable audio on pico-pi-8m > >> > - Added commit description > >> > > >> > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 29 > >> > +++++++++++++++++++++++++++++ > >> > 1 file changed, 29 insertions(+) > >> > > >> > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > >> > b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > >> > index d09b808eff87..736cf81b695e 100644 > >> > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > >> > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > >> > @@ -278,6 +278,20 @@ > >> > #size-cells = <1>; > >> > ranges = <0x30000000 0x30000000 0x400000>; > >> > > >> > + sai6: sai@30030000 { > >> > + compatible = "fsl,imx8mq-sai", > >> > >> I don't find this compatible string in sound/soc/fsl/fsl_sai.c. Aren't > >> the registers at a different offset from "fsl,imx6sx-sai". > > > > Yes, you are right on this. We are trying to slowly push all our > > internal-tree > > patches to mainline. Obviously, with started with low hanging fruits, > > DTS > > nodes and small SAI fixes. > > > > Soon, we will start to send patches for SAI IP ipgrade for imx8. > > > >> > >> How is this supposed to work ? > >> > > > > For the moment it won't work unless we will upstream all our SAI > > internal patches. > > But we will get there hopefully this summer. > > > > Shouldn't a working driver be upstream before enabling it in the > devicetree ? I see your point here and maybe your suggestion is the ideal way to do things. Anyhow, I don't see a problem with adding the node in dts because CONFIG_FSL_SAI is not set in the default config. We try to speedup the upstreaming process giving the fact that SAI patches will go through audio maintainer's tree and the DTS patches will most likely go through Shawn's tree. thanks, Daniel.