Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4976565ybi; Tue, 28 May 2019 05:43:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRLUkvHReNffaW0gwztxktYv2+N9gfT5ITOEqSI/iFAPdaYSBh290NX+ZTFW3N/58nEraT X-Received: by 2002:a17:90a:617:: with SMTP id j23mr5459491pjj.111.1559047435660; Tue, 28 May 2019 05:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559047435; cv=none; d=google.com; s=arc-20160816; b=Foo7rgP5IfAQgVoEapJUguzMAD+1HYqkw31FqHS9r0PRZARTD9PRrsaRn62rVlr2xF pKk4GdX820CqPUQkzF8hdgzQhYMApCK5X1zuAOYtstQemtRvbSx762VFe2xuthhgVF8b AJapI/vIsBYGuqKKNaUM20yPFphlfOZ0sAcqkuUwGnKtDGY4+7CBsxxxaVPY4mEvln7a jaJPFQTx39VP1wJ1HfzBXh641Vi4hSS6eeJPUnraFClest1QJCqGCwAILE0woSGrO0bO 2RTFXiVvkel+RmmQ59Rb4xjKZ9C7Crq+fxYxF8aOgBkO3rKypEWARgot5JERnhJ1knL7 eEzg== 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=ybsMUgY6ounJuaGDtEKhAz+yC4cA28XUN/3YPkPsJiU=; b=U6XuBppBo3EHMXvTWLw3q1LOnL/eAGdjck6D388r/gp7oT95T4NMyV2gbvxiCooBSh toHdEh3a81eqhzypt0wzEzdBCHSOh47yUpb8hVEGIOPExsn3p3eB6eSYTz1tRLxxTLFY Zv9PByf8COm2P4BeLur1A01qWL/sBQRObMRtUrrsDov/DimUQPrxGdcRDr7ib5vThZxb aktTsYDP3mGjY4zbP/WaD8atFmSU9z6aaWe0k0XgPQ+RSVx7eK/D5Da7mRBnuDU4KH69 TpLhklO5GutUL/C5pvQjl2eZuQt4yVDPkBFO76FCH1g3iuY1ka1ftMXbnaaDIGnwdaor MYww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NHfXJIyt; 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 31si23268300plb.30.2019.05.28.05.43.40; Tue, 28 May 2019 05:43:55 -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=NHfXJIyt; 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 S1727322AbfE1Mj6 (ORCPT + 99 others); Tue, 28 May 2019 08:39:58 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42476 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbfE1Mj5 (ORCPT ); Tue, 28 May 2019 08:39:57 -0400 Received: by mail-ed1-f66.google.com with SMTP id g24so3634324eds.9 for ; Tue, 28 May 2019 05:39:56 -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=ybsMUgY6ounJuaGDtEKhAz+yC4cA28XUN/3YPkPsJiU=; b=NHfXJIytPkkYgJ6rar0p4QA9KmqbIkxKsQ0CHv26Br6zjd6780zyDBv19RY/Winab9 lMf6H5okEJ2jEqcNbR0ApwdBAMFcKg1oOK2kd6e2xaOcE/VJ1qqYmkFA165hAMBNH55b wMOdPYxgSh4aQ97AFz73SKI/zi+9OAO7hM46m8Z/kcXS5UrDzaLjzT8RGktH5cOTHGIV lXqMWRs+dXQeItJ6SZPReiyJtb9p48f2isx3NR87g1eWDce88MfLS+XnSEyM7J2o7guf ytPjeyC9Zk63P/3zCc4kIDmyqf/ujmHbAGdLIPekeNHUnOXwiFvxBDUwktm1lUewEWKE gsdA== 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=ybsMUgY6ounJuaGDtEKhAz+yC4cA28XUN/3YPkPsJiU=; b=AMiz61C2rqHQSxG/ZnrPqe+FBszx8E2OTTorJq+jIc4IyL1rvo7d/IhE3KHr3kt6i8 W5TieCYecynP1wwMeVX6SDVVjgzC6xGKisXtDuW90kAzMWuU8OwGvWL9y4yh27c8LoM6 rksWSDmQ1HuLTM/YwtOba8RHuwhV9/+YIoDOZyZtFOZpdjd5JaqJOxzsdtgxDFSEQ5VM 84y2jez93Z3nLYpo4mukagBF+b7pQ0nn+fEi2qiA1mAhr5Mn9u3qhQvJmx3iXVDC/+eu m+mZLJvDo+2xFn8yr8xFSRRcpwPh0WRMyVz/un7z/U5f/bUiCl4fLu+hsiW2nNkXQTE+ 4Fhw== X-Gm-Message-State: APjAAAXKeMWoD+fHmYwTV2a+pd3PRegmYsoZTHjVaWvmsMrd6HCg88m3 t6pbjJhMSY86+tBsSmKuurIpyTNdP8ub0xp/mgA= X-Received: by 2002:a17:906:f194:: with SMTP id gs20mr15974716ejb.177.1559047196254; Tue, 28 May 2019 05:39:56 -0700 (PDT) MIME-Version: 1.0 References: <20190420154038.14576-1-daniel.baluta@nxp.com> <20190421053749.GA5552@Asurada> <20190421080439.GA8784@Asurada> <20190421082627.GB8304@Asurada> In-Reply-To: <20190421082627.GB8304@Asurada> From: Daniel Baluta Date: Tue, 28 May 2019 15:39:44 +0300 Message-ID: Subject: Re: [alsa-devel] [PATCH] ASoC: fsl: sai: Fix clock source for mclk0 To: Nicolin Chen Cc: Daniel Baluta , "alsa-devel@alsa-project.org" , "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "linuxppc-dev@lists.ozlabs.org" , "S.j. Wang" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "broonie@kernel.org" , dl-linux-imx , "festevam@gmail.com" , "linux-kernel@vger.kernel.org" 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 Sun, Apr 21, 2019 at 11:26 AM Nicolin Chen wrote: > > On Sun, Apr 21, 2019 at 01:04:39AM -0700, Nicolin Chen wrote: > > On Sun, Apr 21, 2019 at 10:26:40AM +0300, Daniel Baluta wrote: > > > > Firstly, according to your commit message, neither imx8qm nor > > > > imx6sx has an "mclk0" clock in the clock list. Either of them > > > > starts with "mclk1". So, before you change the driver, I don't > > > > think it's even a right thing to define an "mclk0" in the DT. > > > > > > From what I understand mclk0 means option 00b of MSEL bits which is: > > > * busclk for i.MX8 > > > * mclk1 for i.MX6/7. > > > > MSEL bit is used for an internal clock MUX to select four clock > > inputs. However, these four clock inputs aren't exactly 1:1 of > > SAI's inputs. As fas as I can tell, SAI only has one bus clock > > and three MCLK[1-3]; the internal clock MUX maps the bus clock > > or MCLK1 to its input0, and then linearly maps MCLK[1-3] to its > > inputs[1-3]. So it doesn't sound right to me that you define an > > "MCLK0" in the DT, as it's supposed to describe input clocks of > > SAI block, other than its internal clock MUX's. > > Daniel, I think I's saying this too confident, though I do feel > so :) But if you can prove me wrong and justify that there is an > "MCLK0" as an external input of the SAI block, I will agree with > this change. Looking inside the RTL for SAI on i.MX8 I found that there is a MUX with 4 inputs exactly as RM says: - bus - master clock 1 - master clock 2 - master clock 3 My point is that the DT is modelling the internal clock MUX used for SAI to select its clock source. thanks, Daniel.