Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3697054ybc; Thu, 14 Nov 2019 13:14:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxg57l39yizcfH0I9lQd5S3+ldASpWPCNfi/slZSNmwMzZ9vIKIvZao24tXUbgBzksg32V3 X-Received: by 2002:adf:fd4a:: with SMTP id h10mr10200697wrs.90.1573766079655; Thu, 14 Nov 2019 13:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573766079; cv=none; d=google.com; s=arc-20160816; b=Og6dYMQR9Lxdm4ofjtr7/QMYIX6vsrdN7x3ZIBXDbmxc2axqMxoXctJAEHHf4wuwXf 9cPoosZY4iqqWn5E2g7FERPNVwYG2mcZVrN0ra75Sp9TwwXB0lDP7gkfwCoF11ExdEkQ YXJ2tMXCC63C65xYjC4WrlmgULmg5r4sgTylxTo9p9DswbhNEYbgANoKqzmgXHUtwaRx Eq6oryt0JLJnyZY17lxaZhgVh14cFOX8Qgon3+XRl+JbVfUhty4AvooKwzJ+xf68s+tX ugmfqMu5EYda7FhTYOXEgnNCkd71HZ3Y55zcjgqMBuPujlboyv/WPtcGPToBDKu0bJtE P9uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zvJ3vYdB8JByuq1iptWHcxe6mCz9VbGiKAhz94z7Jjs=; b=rS7ShIIADWED+VJpGXSr4AwUMenQQlBTD/J7MofXlAUWh0v6bXW/xITbdZtj/fmWqE tIshwg9rKovN0sQKNo6punz7qTlVGrNaP+J++RGqcv9oTk8L10YfEfHqNL6ZHElTIjI4 gmvJm24w7LW0r49I/WH3OQQvFEfW/HgzDhJyzxee3lylEC9Fyi3cso6gtTz3u8Yz5FgI XHU5t3y6/ckI5mYBPCjoz0kttiiAyrF5NnSihtufmNfX6c629dWxrGZaSN0/ZdPL08Sh 5nsh4Ryl+Df70Z+RA185mLAhBCs177PcpaKIYz5vJ8MFxsSm8m7rTIZwX3WA5Po2vGYQ +2cQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si4638701ejl.235.2019.11.14.13.14.14; Thu, 14 Nov 2019 13:14:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfKNVMk (ORCPT + 99 others); Thu, 14 Nov 2019 16:12:40 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40869 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbfKNVMk (ORCPT ); Thu, 14 Nov 2019 16:12:40 -0500 Received: by mail-ot1-f68.google.com with SMTP id m15so6156150otq.7; Thu, 14 Nov 2019 13:12:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zvJ3vYdB8JByuq1iptWHcxe6mCz9VbGiKAhz94z7Jjs=; b=WR91Ze7q3/8W15JazJLi7mKamQIUbAs28NGJQ0hfjo5YA6IiQQHayXrMe1/DovtQvv Hg5YPhxPnkwh1tPTXr6BryEWjdVyZH2JKIs0bm6PAnnxMfMlv439U/I/hx/BeRvjXBXo I7CFzvV5pWEzypZ2XFtr4w7BJyUrQn4sjvcereHCBg5wc8Zyb6KKNxvZc7+IV90s2HOe PpFVWt3MhUANLcwlDm63dW4wh0aU/PQeTWWLh737CUazfznlWaXGr7crWLRTuFLAvZ4b eSn3CfCYAe8kJzjnkdMwsoTYpL7Zef6WRj980kHs/UGA/ranFrJwN7dlkO69sTonZ+qa Iwlw== X-Gm-Message-State: APjAAAW/Q7ZoVHnZ1uGnbG0YMYxfhgTQpD8oRc00YH9XEV8YcMuAyiwO h6oMd7KvPc1Gt8RftWmMDg== X-Received: by 2002:a9d:7e8a:: with SMTP id m10mr9243800otp.180.1573765959077; Thu, 14 Nov 2019 13:12:39 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q3sm2171825oti.49.2019.11.14.13.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 13:12:38 -0800 (PST) Date: Thu, 14 Nov 2019 15:12:37 -0600 From: Rob Herring To: Shengjiu Wang Cc: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: Re: [PATCH V3 1/2] ASoC: dt-bindings: fsl_asrc: add compatible string for imx8qm Message-ID: <20191114211237.GA25375@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 05:18:22PM +0800, Shengjiu Wang wrote: > Add compatible string "fsl,imx8qm-asrc" for imx8qm platform. > > There are two asrc modules in imx8qm, the clock mapping is > different for each other, so add new property "fsl,asrc-clk-map" > to distinguish them. What's the clock mapping? > Signed-off-by: Shengjiu Wang > --- > changes in v2 > -none > > changes in v3 > -use only one compatible string "fsl,imx8qm-asrc", > -add new property "fsl,asrc-clk-map". > > Documentation/devicetree/bindings/sound/fsl,asrc.txt | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > index 1d4d9f938689..02edab7cf3e0 100644 > --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt > +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > @@ -8,7 +8,8 @@ three substreams within totally 10 channels. > > Required properties: > > - - compatible : Contains "fsl,imx35-asrc" or "fsl,imx53-asrc". > + - compatible : Contains "fsl,imx35-asrc", "fsl,imx53-asrc", > + "fsl,imx8qm-asrc". > > - reg : Offset and length of the register set for the device. > > @@ -35,6 +36,13 @@ Required properties: > > - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends. > > + - fsl,asrc-clk-map : Defines clock map used in driver. which is required > + by imx8qm/imx8qxp platform > + <0> - select the map for asrc0 in imx8qm > + <1> - select the map for asrc1 in imx8qm > + <2> - select the map for asrc0 in imx8qxp > + <3> - select the map for asrc1 in imx8qxp Is this 4 modes of the h/w or just selecting 1 of 4 settings defined in the driver? How does one decide? This seems strange. imx8qxp should perhaps be a separate compatible. Then you only need 1 of 2 modes... Rob