Message ID | 20230612105250.15441-8-maso.huang@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2520796vqr; Mon, 12 Jun 2023 04:39:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74a1IHw88tBrGNHcxB1tpTsLCLhKlp7hkLEo1INdtIHYLnOZDuvVha33P3KsxUlc9RYgDw X-Received: by 2002:a05:6a20:9146:b0:119:23e0:6916 with SMTP id x6-20020a056a20914600b0011923e06916mr10625228pzc.17.1686569941286; Mon, 12 Jun 2023 04:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686569941; cv=none; d=google.com; s=arc-20160816; b=czU9DYxeROL3MxYU6KTKvItjiSP9tos71a479/Fn2ag7iLU70kbe4fll5wITProZuz bK9opwXK56WTsRXbt2GrsFXf/b3Q/OGl0hPQiAQ/6RFhre/eZTbl5y6Z1xsJDCTBq+kU DrbKT/COueUR5GV0B0mIY3E4VDEVk4I4gEOAHpFQfkfm0fKM3sUojBLTntHQ7kiWRu5Y KsOUiXaRVM+dSA9OxS0ieKoDfU5VAonnZieVZ47WLYPl21M52qIyccGVd7LlLQ1xyDZa EMk4GDatZlPn3pxvb3H+OqK6DD83eYKpiXgVt+7eXvN9BAsNXO09GK04DQ+xRAIytWHC 1p5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WuLcXYdyZj0kxuMtUpOW4fppbN422IheP8ldjLAPRmc=; b=MeybIMMAGDQyjk/tYDhQFZo53eCf92sThg1VK0u3Ys3wZvo3gxCKZBrRK6qLMlFMWA XwiWsalmnj15SC45JFy+JBc8Z/OaqhuSzXrtfkH9KK2j3T264GG72i7rLzRcmjJJqrWb mZLzgpW+RqXMTPwLQ8MxHZry96XIzxs+bK4P9K5WbLcCmTtkACY/ThAOf9AXTCI6+Lo6 eCWYXtG8l8xock7NExkTm1+75hNlrjj+yGHQWjp5D0slaCBB9F2MLE5dyz7T5udo8idM +no9zv5v6eOGI4yYxC9rUPSR8Jk6VcJhjgtrfPovag26+E0WGeTseLNN4fHKHN1lpV8v KVVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mmtuW9R8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c63-20020a633542000000b0053f41380baesi6706477pga.322.2023.06.12.04.38.48; Mon, 12 Jun 2023 04:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mmtuW9R8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238298AbjFLLGu (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 07:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238221AbjFLLGI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 07:06:08 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C935AD25; Mon, 12 Jun 2023 03:53:56 -0700 (PDT) X-UUID: 6b4006b4090f11eeb20a276fd37b9834-20230612 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=WuLcXYdyZj0kxuMtUpOW4fppbN422IheP8ldjLAPRmc=; b=mmtuW9R8K5gj8wY0diQQbYfj+Krghoi5mo/VrSxhTrXJ3fJoE70Lub6qM76idURRV6gCZgF7qlO4lU0R3QTnpXUM0osKhWIPyQaIEvOGrF3AE0T+nw/8i8Z9Hw63+j9fE/wq2nJTOH9CIsOvcFvIMUnaev56tXoBzJ9JKYiOxn0=; X-CID-CACHE: Type:Local,Time:202306121845+08,HitQuantity:1 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:57d5be1d-1f9c-4c9d-ac4c-aedbc6c90523,IP:0,U RL:25,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:cb9a4e1,CLOUDID:194d5a3e-7aa7-41f3-a6bd-0433bee822f3,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 6b4006b4090f11eeb20a276fd37b9834-20230612 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from <maso.huang@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1374289385; Mon, 12 Jun 2023 18:53:52 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 12 Jun 2023 18:53:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 12 Jun 2023 18:53:51 +0800 From: Maso Hunag <maso.huang@mediatek.com> To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Trevor Wu <trevor.wu@mediatek.com>, Jiaxin Yu <jiaxin.yu@mediatek.com>, Ren Zhijie <renzhijie2@huawei.com>, Arnd Bergmann <arnd@arndb.de>, Allen-KH Cheng <allen-kh.cheng@mediatek.com>, <alsa-devel@alsa-project.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org> CC: Maso Huang <maso.huang@mediatek.com> Subject: [PATCH 7/7] ASoC: dt-bindings: mediatek,mt79xx-afe: add audio afe document Date: Mon, 12 Jun 2023 18:52:50 +0800 Message-ID: <20230612105250.15441-8-maso.huang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230612105250.15441-1-maso.huang@mediatek.com> References: <20230612105250.15441-1-maso.huang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768496762944641821?= X-GMAIL-MSGID: =?utf-8?q?1768496762944641821?= |
Series |
ASoC: mediatek: Add support for MT79xx SoC
|
|
Commit Message
Maso Huang (黃加竹)
June 12, 2023, 10:52 a.m. UTC
From: Maso Huang <maso.huang@mediatek.com> Add mt79xx audio afe document. Signed-off-by: Maso Huang <maso.huang@mediatek.com> --- .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml
Comments
On 12/06/2023 12:52, Maso Hunag wrote: > From: Maso Huang <maso.huang@mediatek.com> > > Add mt79xx audio afe document. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > --- > .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 ++++++++++++++++++ > 1 file changed, 102 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > new file mode 100644 > index 000000000000..11ef1cfdf49b > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > @@ -0,0 +1,102 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/mediatek,mt79xx-afe.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek AFE PCM controller for MT79xx 79XX sounds weird. Are you sure you are not using wildcards (which are not allowed)? > + > +maintainers: > + - Maso Huang <maso.huang@mediatek.com> > + > +properties: > + compatible: > + oneOf: > + - const: mediatek,mt79xx-afe > + - items: > + - enum: > + - mediatek,mt7981-afe > + - mediatek,mt7986-afe > + - mediatek,mt7988-afe > + - const: mediatek,mt79xx-afe I already saw AFE, why it cannot be part of existing bindings? This list is odd. 79xx, 7981? So it is wildcard? > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 5 > + items: > + - description: audio bus clock > + - description: audio 26M clock > + - description: audio intbus clock > + - description: audio hopping clock > + - description: audio pll clock > + - description: mux for pcm_mck > + - description: audio i2s/pcm mck > + > + clock-names: > + minItems: 5 > + items: > + - const: aud_bus_ck > + - const: aud_26m_ck > + - const: aud_l_ck > + - const: aud_aud_ck > + - const: aud_eg2_ck > + - const: aud_sel > + - const: aud_i2s_m Why this is variable? > + > + assigned-clocks: > + minItems: 3 > + maxItems: 4 Drop assigned-clocks > + > + assigned-clock-parents: > + minItems: 3 > + maxItems: 4 Drop Best regards, Krzysztof
On Tue, 2023-06-13 at 10:51 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > On 12/06/2023 12:52, Maso Hunag wrote: > > From: Maso Huang <maso.huang@mediatek.com> > > > > Add mt79xx audio afe document. > > Please use scripts/get_maintainers.pl to get a list of necessary > people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you > base > your patches on recent Linux kernel. > Hi Krzysztif, Thanks for your review. And sorry for missing some necessary maintainers. What's your suggestion, resend these patches again with them, or add them back in v2 patch? > > > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > > --- > > .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 > ++++++++++++++++++ > > 1 file changed, 102 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > > > > diff --git > a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > > new file mode 100644 > > index 000000000000..11ef1cfdf49b > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx- > afe.yaml > > @@ -0,0 +1,102 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/sound/mediatek,mt79xx-afe.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek AFE PCM controller for MT79xx > > 79XX sounds weird. Are you sure you are not using wildcards (which > are > not allowed)? > We would like to use mt79xx for mt7986/mt7981/mt7988 series. Or is it better to just use mt7986 for this series? > > + > > +maintainers: > > + - Maso Huang <maso.huang@mediatek.com> > > + > > +properties: > > + compatible: > > + oneOf: > > + - const: mediatek,mt79xx-afe > > + - items: > > + - enum: > > + - mediatek,mt7981-afe > > + - mediatek,mt7986-afe > > + - mediatek,mt7988-afe > > + - const: mediatek,mt79xx-afe > > I already saw AFE, why it cannot be part of existing bindings? > > This list is odd. 79xx, 7981? So it is wildcard? > Yes, it is wildcard for mt7986/mt7981/mt7988 series. Is it better to just use mt7986 for this series? > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + minItems: 5 > > + items: > > + - description: audio bus clock > > + - description: audio 26M clock > > + - description: audio intbus clock > > + - description: audio hopping clock > > + - description: audio pll clock > > + - description: mux for pcm_mck > > + - description: audio i2s/pcm mck > > + > > + clock-names: > > + minItems: 5 > > + items: > > + - const: aud_bus_ck > > + - const: aud_26m_ck > > + - const: aud_l_ck > > + - const: aud_aud_ck > > + - const: aud_eg2_ck > > + - const: aud_sel > > + - const: aud_i2s_m > > Why this is variable? > mt7986/mt7981/mt7988 need different numbers of clock. mt7986 needs first five clocks. mt7981 needs first six clocks. mt7988 needs all seven clocks. > > + > > + assigned-clocks: > > + minItems: 3 > > + maxItems: 4 > > Drop assigned-clocks > > OK, I'll drop it in next patch. > > + > > + assigned-clock-parents: > > + minItems: 3 > > + maxItems: 4 > > Drop > > OK, I'll drop it in next patch. > > Best regards, > Krzysztof > Best regards, Maso
On 14/06/2023 05:17, Maso Huang (黃加竹) wrote: > On Tue, 2023-06-13 at 10:51 +0200, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> >> On 12/06/2023 12:52, Maso Hunag wrote: >>> From: Maso Huang <maso.huang@mediatek.com> >>> >>> Add mt79xx audio afe document. >> >> Please use scripts/get_maintainers.pl to get a list of necessary >> people >> and lists to CC. It might happen, that command when run on an older >> kernel, gives you outdated entries. Therefore please be sure you >> base >> your patches on recent Linux kernel. >> > > Hi Krzysztif, > > Thanks for your review. And sorry for missing some necessary > maintainers. > What's your suggestion, resend these patches again with them, or add > them back in v2 patch? You need to fix the patch anyway, so use get_maintainers.pl in v2. I don't understand why you Cc here many unrelated people but not the actual maintainers which get_maintainers.pl asks you to Cc! > >>> >>> Signed-off-by: Maso Huang <maso.huang@mediatek.com> >>> --- >>> .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 >> ++++++++++++++++++ >>> 1 file changed, 102 insertions(+) >>> create mode 100644 >> Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml >>> >>> diff --git >> a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml >> b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml >>> new file mode 100644 >>> index 000000000000..11ef1cfdf49b >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx- >> afe.yaml >>> @@ -0,0 +1,102 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/sound/mediatek,mt79xx-afe.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: MediaTek AFE PCM controller for MT79xx >> >> 79XX sounds weird. Are you sure you are not using wildcards (which >> are >> not allowed)? >> > > We would like to use mt79xx for mt7986/mt7981/mt7988 series. > Or is it better to just use mt7986 for this series? You cannot use wildcard. Get some internal review of your patches prior to submission to mailing list. https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst > >>> + >>> +maintainers: >>> + - Maso Huang <maso.huang@mediatek.com> >>> + >>> +properties: >>> + compatible: >>> + oneOf: >>> + - const: mediatek,mt79xx-afe >>> + - items: >>> + - enum: >>> + - mediatek,mt7981-afe >>> + - mediatek,mt7986-afe >>> + - mediatek,mt7988-afe >>> + - const: mediatek,mt79xx-afe >> >> I already saw AFE, why it cannot be part of existing bindings? Can you answer this? >> >> This list is odd. 79xx, 7981? So it is wildcard? >> > > Yes, it is wildcard for mt7986/mt7981/mt7988 series. > Is it better to just use mt7986 for this series? No wildcards. Best regards, Krzysztof
On Wed, 2023-06-14 at 08:34 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 14/06/2023 05:17, Maso Huang (黃加竹) wrote: > > On Tue, 2023-06-13 at 10:51 +0200, Krzysztof Kozlowski wrote: > >> > >> External email : Please do not click links or open attachments > until > >> you have verified the sender or the content. > >> > >> On 12/06/2023 12:52, Maso Hunag wrote: > >>> From: Maso Huang <maso.huang@mediatek.com> > >>> > >>> Add mt79xx audio afe document. > >> > >> Please use scripts/get_maintainers.pl to get a list of necessary > >> people > >> and lists to CC. It might happen, that command when run on an > older > >> kernel, gives you outdated entries. Therefore please be sure you > >> base > >> your patches on recent Linux kernel. > >> > > > > Hi Krzysztif, > > > > Thanks for your review. And sorry for missing some necessary > > maintainers. > > What's your suggestion, resend these patches again with them, or > add > > them back in v2 patch? > > > You need to fix the patch anyway, so use get_maintainers.pl in v2. I > don't understand why you Cc here many unrelated people but not the > actual maintainers which get_maintainers.pl asks you to Cc! > OK, I'll add necessary maintainers back in v2 patch. > > > >>> > >>> Signed-off-by: Maso Huang <maso.huang@mediatek.com> > >>> --- > >>> .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 > >> ++++++++++++++++++ > >>> 1 file changed, 102 insertions(+) > >>> create mode 100644 > >> Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > >>> > >>> diff --git > >> a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > >> b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml > >>> new file mode 100644 > >>> index 000000000000..11ef1cfdf49b > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx- > >> afe.yaml > >>> @@ -0,0 +1,102 @@ > >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >>> +%YAML 1.2 > >>> +--- > >>> +$id: > http://devicetree.org/schemas/sound/mediatek,mt79xx-afe.yaml# > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>> + > >>> +title: MediaTek AFE PCM controller for MT79xx > >> > >> 79XX sounds weird. Are you sure you are not using wildcards (which > >> are > >> not allowed)? > >> > > > > We would like to use mt79xx for mt7986/mt7981/mt7988 series. > > Or is it better to just use mt7986 for this series? > > You cannot use wildcard. Get some internal review of your patches > prior > to submission to mailing list. > > https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst > OK, I'll use mt7986 instead of mt79xx in v2 patch. > > > >>> + > >>> +maintainers: > >>> + - Maso Huang <maso.huang@mediatek.com> > >>> + > >>> +properties: > >>> + compatible: > >>> + oneOf: > >>> + - const: mediatek,mt79xx-afe > >>> + - items: > >>> + - enum: > >>> + - mediatek,mt7981-afe > >>> + - mediatek,mt7986-afe > >>> + - mediatek,mt7988-afe > >>> + - const: mediatek,mt79xx-afe > >> > >> I already saw AFE, why it cannot be part of existing bindings? > > Can you answer this? > Did you mean mtk-afe-pcm.txt? If yes, I'll modify mtk-afe-pcm.txt to yaml format, and add mt7986 to its compatible list. > >> > >> This list is odd. 79xx, 7981? So it is wildcard? > >> > > > > Yes, it is wildcard for mt7986/mt7981/mt7988 series. > > Is it better to just use mt7986 for this series? > > No wildcards. > OK, I'll use mt7986 instead of mt79xx in v2 patch. > > Best regards, > Krzysztof > Best regards, Maso
On 14/06/2023 09:37, Maso Huang (黃加竹) wrote: >>>> I already saw AFE, why it cannot be part of existing bindings? >> >> Can you answer this? >> > > Did you mean mtk-afe-pcm.txt? > If yes, I'll modify mtk-afe-pcm.txt to yaml format, and add mt7986 to > its compatible list. > No, I meant mediatek,mt8188-afe.yaml. Aren't you working on some old tree? If so, please don't... Best regards, Krzysztof
On Wed, 2023-06-14 at 10:21 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 14/06/2023 09:37, Maso Huang (黃加竹) wrote: > >>>> I already saw AFE, why it cannot be part of existing bindings? > >> > >> Can you answer this? > >> > > > > Did you mean mtk-afe-pcm.txt? > > If yes, I'll modify mtk-afe-pcm.txt to yaml format, and add mt7986 > to > > its compatible list. > > > > No, I meant mediatek,mt8188-afe.yaml. > > Aren't you working on some old tree? If so, please don't... > > Best regards, > Krzysztof > Hi Krzysztof, AFE is common name for our audio hardware, and the design might be different for soc, like clock. And the design is the same for mt7981/mt7986/mt7988. Is it better to create a new dtbinding file mediatk,mt7986-afe.yaml? Best regards, Maso
On 14/06/2023 11:19, Maso Huang (黃加竹) wrote: > On Wed, 2023-06-14 at 10:21 +0200, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 14/06/2023 09:37, Maso Huang (黃加竹) wrote: >>>>>> I already saw AFE, why it cannot be part of existing bindings? >>>> >>>> Can you answer this? >>>> >>> >>> Did you mean mtk-afe-pcm.txt? >>> If yes, I'll modify mtk-afe-pcm.txt to yaml format, and add mt7986 >> to >>> its compatible list. >>> >> >> No, I meant mediatek,mt8188-afe.yaml. >> >> Aren't you working on some old tree? If so, please don't... >> >> Best regards, >> Krzysztof >> > > Hi Krzysztof, > AFE is common name for our audio hardware, and the design might be > different for soc, like clock. > > And the design is the same for mt7981/mt7986/mt7988. > Is it better to create a new dtbinding file mediatk,mt7986-afe.yaml? Is it different? That was my question whether it can be part of existing bindings. Best regards, Krzysztof
On Wed, 2023-06-14 at 12:26 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 14/06/2023 11:19, Maso Huang (黃加竹) wrote: > > On Wed, 2023-06-14 at 10:21 +0200, Krzysztof Kozlowski wrote: > >> > >> External email : Please do not click links or open attachments > until > >> you have verified the sender or the content. > >> On 14/06/2023 09:37, Maso Huang (黃加竹) wrote: > >>>>>> I already saw AFE, why it cannot be part of existing bindings? > >>>> > >>>> Can you answer this? > >>>> > >>> > >>> Did you mean mtk-afe-pcm.txt? > >>> If yes, I'll modify mtk-afe-pcm.txt to yaml format, and add > mt7986 > >> to > >>> its compatible list. > >>> > >> > >> No, I meant mediatek,mt8188-afe.yaml. > >> > >> Aren't you working on some old tree? If so, please don't... > >> > >> Best regards, > >> Krzysztof > >> > > > > Hi Krzysztof, > > AFE is common name for our audio hardware, and the design might be > > different for soc, like clock. > > > > And the design is the same for mt7981/mt7986/mt7988. > > Is it better to create a new dtbinding file mediatk,mt7986- > afe.yaml? > > Is it different? That was my question whether it can be part of > existing > bindings. > > Best regards, > Krzysztof Yes, the design is different, I'm afraid that it would be hard to be part of mt8188 bindings. Best regards, Maso
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml new file mode 100644 index 000000000000..11ef1cfdf49b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt79xx-afe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek AFE PCM controller for MT79xx + +maintainers: + - Maso Huang <maso.huang@mediatek.com> + +properties: + compatible: + oneOf: + - const: mediatek,mt79xx-afe + - items: + - enum: + - mediatek,mt7981-afe + - mediatek,mt7986-afe + - mediatek,mt7988-afe + - const: mediatek,mt79xx-afe + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 5 + items: + - description: audio bus clock + - description: audio 26M clock + - description: audio intbus clock + - description: audio hopping clock + - description: audio pll clock + - description: mux for pcm_mck + - description: audio i2s/pcm mck + + clock-names: + minItems: 5 + items: + - const: aud_bus_ck + - const: aud_26m_ck + - const: aud_l_ck + - const: aud_aud_ck + - const: aud_eg2_ck + - const: aud_sel + - const: aud_i2s_m + + assigned-clocks: + minItems: 3 + maxItems: 4 + + assigned-clock-parents: + minItems: 3 + maxItems: 4 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - assigned-clocks + - assigned-clock-parents + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/clock/mediatek,mt7981-clk.h> + + afe@11210000 { + compatible = "mediatek,mt7981-afe","mediatek,mt79xx-afe"; + reg = <0x11210000 0x9000>; + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>, + <&infracfg_ao CLK_INFRA_AUD_26M_CK>, + <&infracfg_ao CLK_INFRA_AUD_L_CK>, + <&infracfg_ao CLK_INFRA_AUD_AUD_CK>, + <&infracfg_ao CLK_INFRA_AUD_EG2_CK>, + <&topckgen CLK_TOP_AUD_SEL>; + clock-names = "aud_bus_ck", + "aud_26m_ck", + "aud_l_ck", + "aud_aud_ck", + "aud_eg2_ck", + "aud_sel"; + assigned-clocks = <&topckgen CLK_TOP_AUD_SEL>, + <&topckgen CLK_TOP_A1SYS_SEL>, + <&topckgen CLK_TOP_AUD_L_SEL>, + <&topckgen CLK_TOP_A_TUNER_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_CB_APLL2_196M>, + <&topckgen CLK_TOP_APLL2_D4>, + <&topckgen CLK_TOP_CB_APLL2_196M>, + <&topckgen CLK_TOP_APLL2_D4>; + }; + +...