Message ID | 20230728090819.18038-6-maso.huang@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp318115vqg; Fri, 28 Jul 2023 02:55:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1GHznLg2CmnuFnmppU7aLn34BE2lqlwZYG+6ACTKQjQUMvoGqR4kZtuU4U3jqrMIwS2jP X-Received: by 2002:a05:6a20:9195:b0:135:38b5:7e58 with SMTP id v21-20020a056a20919500b0013538b57e58mr1074578pzd.37.1690538109403; Fri, 28 Jul 2023 02:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690538109; cv=none; d=google.com; s=arc-20160816; b=SJ3Vxn6pChRdAi42zCgC7OhK0qWQ523fzh8SxxrtzpSjKlr2l+zPyiLjFV8Y16lbXn PfmfFPm/TuVpFS3JQywMonkHmv6brgXvOURMBDXpB7N+FdA51kXGrlysvokCFQ7nCUaI OXkZJ1QzBSFnUtDGAgOearf4ZXSjlEExLXW1CNhgq3HX+Wj17xOIQTzUJWLSk5rmUC5n iTv7iK7W6HjluzL9Aq/udW+xOHY09rig85VKq7DuHik30eAmh/aTGrPo7pMzF2cCQT0v hdq7z3vMas4sSHwHhhr9jwtEXXctzpwMMxld/us5zV7DpSzIFL2PjIhntKFNhriR8DMM nl6w== 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=4P+kdE5Y44rxZSSGFIHLm6nTvWUiqXPyDDzEu2FyU3s=; fh=iSNOOyfUI0t9WidQNwMqPhgLGujMtfcFQPsMQPr9keg=; b=HjwAw3qZuZ6Sny73G2HcelWgu2B535gGEA9JBDNtIS05Q0PPN0nhFolqn3ZwTFLLve Q+0i/n2ZJmWjyUXhYagNGbQvQEC0EhKNsTXh+srVeZVMkBl6H5KAghwGn7cFyI/yzlsH YXWOwTkLjN8/tJeZaebWEuhgwI/HWBC5E4ZBPOKB4tv3e97ZBgIqtUB+VPcFDTV3nj+U PsjPvlPEXEmv6IKZLQZP1SgC5FyCCx8B1GZYKFFNUa6lL4cgPpaHRC5bLzK/Pyqm2X38 I3Q/tWjlvdmYeZa2eKwwR7AsHAmxC4frVmx18ltrvYTvWDBpKUgujdKlRp8lemaGRb70 D1RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=stfEs9yr; 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 c8-20020a170902d48800b001b8a56b9895si441660plg.616.2023.07.28.02.54.56; Fri, 28 Jul 2023 02:55:09 -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=stfEs9yr; 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 S235372AbjG1JMX (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Fri, 28 Jul 2023 05:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234483AbjG1JLc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 05:11:32 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BB44EE8; Fri, 28 Jul 2023 02:09:29 -0700 (PDT) X-UUID: 6108eb302d2611ee9cb5633481061a41-20230728 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=4P+kdE5Y44rxZSSGFIHLm6nTvWUiqXPyDDzEu2FyU3s=; b=stfEs9yrEh//jDOwa6luXEjfRkurprv7uRMWf7EgAC37h4BqlG6f3HOhDmu7jXZgnlOZ1dNt7Z2E1g3gaJUtHEhjey7q9WQW97NhSsZsqoPZPlc3UuHHjU26AzbZpnU9eOny6o3GZDaC481xyfIEIBIDFhNGzk+UDVg1gNhoZB0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.30,REQID:695f1b12-d6a9-49d2-bf51-e77e243033a8,IP:0,U RL:25,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:1fcc6f8,CLOUDID:fb39a2a0-0933-4333-8d4f-6c3c53ebd55b,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,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 6108eb302d2611ee9cb5633481061a41-20230728 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from <maso.huang@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1142433702; Fri, 28 Jul 2023 17:08:55 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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; Fri, 28 Jul 2023 17:08:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 28 Jul 2023 17:08:54 +0800 From: Maso Huang <maso.huang@mediatek.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Trevor Wu <trevor.wu@mediatek.com>, Arnd Bergmann <arnd@arndb.de>, Mars Chen <chenxiangrui@huaqin.corp-partner.google.com>, 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 v3 5/6] ASoC: dt-bindings: mediatek,mt7986-wm8960: add mt7986-wm8960 document Date: Fri, 28 Jul 2023 17:08:18 +0800 Message-ID: <20230728090819.18038-6-maso.huang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230728090819.18038-1-maso.huang@mediatek.com> References: <20230728090819.18038-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,URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1772657688110347173 X-GMAIL-MSGID: 1772657688110347173 |
Series |
ASoC: mediatek: Add support for MT7986 SoC
|
|
Commit Message
Maso Huang (黃加竹)
July 28, 2023, 9:08 a.m. UTC
Add document for mt7986 board with wm8960.
Signed-off-by: Maso Huang <maso.huang@mediatek.com>
---
.../sound/mediatek,mt7986-wm8960.yaml | 53 +++++++++++++++++++
1 file changed, 53 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml
Comments
Il 28/07/23 11:08, Maso Huang ha scritto: > Add document for mt7986 board with wm8960. > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > --- > .../sound/mediatek,mt7986-wm8960.yaml | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > new file mode 100644 > index 000000000000..76394f7e5502 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT7986 sound card with WM8960 codec > + > +maintainers: > + - Maso Huang <maso.huang@mediatek.com> > + > +properties: > + compatible: > + const: mediatek,mt7986-wm8960-machine mediatek,mt7986-wm8960-sound looks better. After which, Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
On Fri, 2023-07-28 at 11:55 +0200, AngeloGioacchino Del Regno wrote: > Il 28/07/23 11:08, Maso Huang ha scritto: > > Add document for mt7986 board with wm8960. > > > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > > --- > > .../sound/mediatek,mt7986-wm8960.yaml | 53 > > +++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > > > > diff --git > > a/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > wm8960.yaml > > b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > wm8960.yaml > > new file mode 100644 > > index 000000000000..76394f7e5502 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > wm8960.yaml > > @@ -0,0 +1,53 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: > > https://urldefense.com/v3/__http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPPRaROt0$ > > > > +$schema: > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPttZILAo$ > > > > + > > +title: MediaTek MT7986 sound card with WM8960 codec > > + > > +maintainers: > > + - Maso Huang <maso.huang@mediatek.com> > > + > > +properties: > > + compatible: > > + const: mediatek,mt7986-wm8960-machine > > mediatek,mt7986-wm8960-sound looks better. > > After which, > > Reviewed-by: AngeloGioacchino Del Regno < > angelogioacchino.delregno@collabora.com> > > Hi Angelo, Thanks for your review. I'll change the compatible to "mediatek,mt7986-wm8960-sound" in v4 patch. Best regards, Maso
On 28/07/2023 11:08, Maso Huang wrote: > Add document for mt7986 board with wm8960. > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > --- > .../sound/mediatek,mt7986-wm8960.yaml | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > new file mode 100644 > index 000000000000..76394f7e5502 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT7986 sound card with WM8960 codec > + > +maintainers: > + - Maso Huang <maso.huang@mediatek.com> > + > +properties: > + compatible: > + const: mediatek,mt7986-wm8960-machine > + > + mediatek,platform: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle of MT7986 platform. > + > + audio-routing: > + $ref: /schemas/types.yaml#/definitions/non-unique-string-array > + description: > + A list of the connections between audio components. Each entry is a > + sink/source pair of strings. Valid names could be the input or output > + widgets of audio components, power supplies, MicBias of codec and the > + software switch. > + > + mediatek,audio-codec: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle of wm8960 codec. > + How did you implement Rob's comment? Or did you just ignore it? Best regards, Krzysztof
On Fri, 2023-07-28 at 18:16 +0800, Maso Huang wrote: > On Fri, 2023-07-28 at 11:55 +0200, AngeloGioacchino Del Regno wrote: > > Il 28/07/23 11:08, Maso Huang ha scritto: > > > Add document for mt7986 board with wm8960. > > > > > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > > > --- > > > .../sound/mediatek,mt7986-wm8960.yaml | 53 > > > +++++++++++++++++++ > > > 1 file changed, 53 insertions(+) > > > create mode 100644 > > > Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > wm8960.yaml > > > > > > diff --git > > > a/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > wm8960.yaml > > > b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > wm8960.yaml > > > new file mode 100644 > > > index 000000000000..76394f7e5502 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > wm8960.yaml > > > @@ -0,0 +1,53 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: > > > https://urldefense.com/v3/__http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPPRaROt0$ > > > > > > > > > +$schema: > > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPttZILAo$ > > > > > > > > > + > > > +title: MediaTek MT7986 sound card with WM8960 codec > > > + > > > +maintainers: > > > + - Maso Huang <maso.huang@mediatek.com> > > > + > > > +properties: > > > + compatible: > > > + const: mediatek,mt7986-wm8960-machine > > > > mediatek,mt7986-wm8960-sound looks better. > > > > After which, > > > > Reviewed-by: AngeloGioacchino Del Regno < > > angelogioacchino.delregno@collabora.com> > > > > > > Hi Angelo, > > Thanks for your review. > I'll change the compatible to "mediatek,mt7986-wm8960-sound" in v4 > patch. > > Best regards, > Maso > Hi Angelo, One more question for this compatible. The suffix "machine" means alsa machine driver for mt7986-wm8960. It might be better to use "machine" here. Or you prefer "sound" than "machine"? Best regards, Maso
On Fri, 2023-07-28 at 14:49 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 28/07/2023 11:08, Maso Huang wrote: > > Add document for mt7986 board with wm8960. > > > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > > --- > > .../sound/mediatek,mt7986-wm8960.yaml | 53 > +++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > > > > diff --git > a/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml > > new file mode 100644 > > index 000000000000..76394f7e5502 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > wm8960.yaml > > @@ -0,0 +1,53 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: > http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek MT7986 sound card with WM8960 codec > > + > > +maintainers: > > + - Maso Huang <maso.huang@mediatek.com> > > + > > +properties: > > + compatible: > > + const: mediatek,mt7986-wm8960-machine > > + > > + mediatek,platform: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: The phandle of MT7986 platform. > > + > > + audio-routing: > > + $ref: /schemas/types.yaml#/definitions/non-unique-string-array > > + description: > > + A list of the connections between audio components. Each > entry is a > > + sink/source pair of strings. Valid names could be the input > or output > > + widgets of audio components, power supplies, MicBias of > codec and the > > + software switch. > > + > > + mediatek,audio-codec: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: The phandle of wm8960 codec. > > + > > How did you implement Rob's comment? Or did you just ignore it? > > Best regards, > Krzysztof > Hi Krzysztof, Sorry, I did not mean to ignore Rob's comment. I waited for some suggestion in mail below, but it seems Rob was a little busy. https://lore.kernel.org/lkml/8c6316e79e40406e4d46709f602dcb14a4c00562.camel@mediatek.com/ After gentle ping last week and receiving your advice, I thought that means to send the v3 patch and might discuss dtbingding in v3 series. So sorry for misunderstanding it, I'll check the details with Rob in v3 series then refine it in v4. Best regards, Maso
On 31/07/2023 09:31, Maso Huang (黃加竹) wrote: > On Fri, 2023-07-28 at 14:49 +0200, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 28/07/2023 11:08, Maso Huang wrote: >>> Add document for mt7986 board with wm8960. >>> >>> Signed-off-by: Maso Huang <maso.huang@mediatek.com> >>> --- >>> .../sound/mediatek,mt7986-wm8960.yaml | 53 >> +++++++++++++++++++ >>> 1 file changed, 53 insertions(+) >>> create mode 100644 >> Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml >>> >>> diff --git >> a/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml >> b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml >>> new file mode 100644 >>> index 000000000000..76394f7e5502 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986- >> wm8960.yaml >>> @@ -0,0 +1,53 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: >> http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: MediaTek MT7986 sound card with WM8960 codec >>> + >>> +maintainers: >>> + - Maso Huang <maso.huang@mediatek.com> >>> + >>> +properties: >>> + compatible: >>> + const: mediatek,mt7986-wm8960-machine >>> + >>> + mediatek,platform: >>> + $ref: /schemas/types.yaml#/definitions/phandle >>> + description: The phandle of MT7986 platform. >>> + >>> + audio-routing: >>> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array >>> + description: >>> + A list of the connections between audio components. Each >> entry is a >>> + sink/source pair of strings. Valid names could be the input >> or output >>> + widgets of audio components, power supplies, MicBias of >> codec and the >>> + software switch. >>> + >>> + mediatek,audio-codec: >>> + $ref: /schemas/types.yaml#/definitions/phandle >>> + description: The phandle of wm8960 codec. >>> + >> >> How did you implement Rob's comment? Or did you just ignore it? >> >> Best regards, >> Krzysztof >> > > Hi Krzysztof, > > Sorry, I did not mean to ignore Rob's comment. > I waited for some suggestion in mail below, but it seems Rob was a > little busy. > > https://lore.kernel.org/lkml/8c6316e79e40406e4d46709f602dcb14a4c00562.camel@mediatek.com/ > > After gentle ping last week and receiving your advice, I thought that > means to send the v3 patch and might discuss dtbingding in v3 series. > > So sorry for misunderstanding it, I'll check the details with Rob in v3 > series then refine it in v4. The problem is that you did not reference in this patch any ongoing discussion and further questions, so comment looks like addressed, while it was not. Rob said: "in a common schema and reference them " You said: "common part yaml and reference to it" so I think you both agreed on the same. The advice would be to create common binding which is then referenced by other and your bindings. However if you start doing it, you will notice that it is impossible, because you have conflicting types for "audio-codec", so you cannot have one definition. This leads to the point - property is probably wrong and you need dai-link with sound-dai property, just like most cards are doing. Best regards, Krzysztof
Il 31/07/23 08:42, Maso Huang (黃加竹) ha scritto: > On Fri, 2023-07-28 at 18:16 +0800, Maso Huang wrote: >> On Fri, 2023-07-28 at 11:55 +0200, AngeloGioacchino Del Regno wrote: >>> Il 28/07/23 11:08, Maso Huang ha scritto: >>>> Add document for mt7986 board with wm8960. >>>> >>>> Signed-off-by: Maso Huang <maso.huang@mediatek.com> >>>> --- >>>> .../sound/mediatek,mt7986-wm8960.yaml | 53 >>>> +++++++++++++++++++ >>>> 1 file changed, 53 insertions(+) >>>> create mode 100644 >>>> Documentation/devicetree/bindings/sound/mediatek,mt7986- >>>> wm8960.yaml >>>> >>>> diff --git >>>> a/Documentation/devicetree/bindings/sound/mediatek,mt7986- >>>> wm8960.yaml >>>> b/Documentation/devicetree/bindings/sound/mediatek,mt7986- >>>> wm8960.yaml >>>> new file mode 100644 >>>> index 000000000000..76394f7e5502 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986- >>>> wm8960.yaml >>>> @@ -0,0 +1,53 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: >>>> > https://urldefense.com/v3/__http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPPRaROt0$ >>>> >>>> >>>> +$schema: >>>> > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPttZILAo$ >>>> >>>> >>>> + >>>> +title: MediaTek MT7986 sound card with WM8960 codec >>>> + >>>> +maintainers: >>>> + - Maso Huang <maso.huang@mediatek.com> >>>> + >>>> +properties: >>>> + compatible: >>>> + const: mediatek,mt7986-wm8960-machine >>> >>> mediatek,mt7986-wm8960-sound looks better. >>> >>> After which, >>> >>> Reviewed-by: AngeloGioacchino Del Regno < >>> angelogioacchino.delregno@collabora.com> >>> >>> >> >> Hi Angelo, >> >> Thanks for your review. >> I'll change the compatible to "mediatek,mt7986-wm8960-sound" in v4 >> patch. >> >> Best regards, >> Maso >> > > Hi Angelo, > > One more question for this compatible. > > The suffix "machine" means alsa machine driver for mt7986-wm8960. It > might be better to use "machine" here. > > Or you prefer "sound" than "machine"? > > Best regards, > Maso I prefer "sound" because of consistency with other MediaTek machine driver compatible strings. Regards, Angelo
On Mon, 2023-07-31 at 12:44 +0200, AngeloGioacchino Del Regno wrote: > Il 31/07/23 08:42, Maso Huang (黃加竹) ha scritto: > > On Fri, 2023-07-28 at 18:16 +0800, Maso Huang wrote: > > > On Fri, 2023-07-28 at 11:55 +0200, AngeloGioacchino Del Regno > > > wrote: > > > > Il 28/07/23 11:08, Maso Huang ha scritto: > > > > > Add document for mt7986 board with wm8960. > > > > > > > > > > Signed-off-by: Maso Huang <maso.huang@mediatek.com> > > > > > --- > > > > > .../sound/mediatek,mt7986-wm8960.yaml | 53 > > > > > +++++++++++++++++++ > > > > > 1 file changed, 53 insertions(+) > > > > > create mode 100644 > > > > > Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > > > wm8960.yaml > > > > > > > > > > diff --git > > > > > a/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > > > wm8960.yaml > > > > > b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > > > wm8960.yaml > > > > > new file mode 100644 > > > > > index 000000000000..76394f7e5502 > > > > > --- /dev/null > > > > > +++ > > > > > b/Documentation/devicetree/bindings/sound/mediatek,mt7986- > > > > > wm8960.yaml > > > > > @@ -0,0 +1,53 @@ > > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > > +%YAML 1.2 > > > > > +--- > > > > > +$id: > > > > > > > > > https://urldefense.com/v3/__http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPPRaROt0$ > > > > > > > > > > > > > > > +$schema: > > > > > > > > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!lu4Z6pJeRiL7-8l4T3ptqUCM54FnHTBiyh5KWBNqSjl6mOOI7WmzHpWEd-ZSZ-2NJ4Cs9PPaAF_75ywo2SKW16MPttZILAo$ > > > > > > > > > > > > > > > + > > > > > +title: MediaTek MT7986 sound card with WM8960 codec > > > > > + > > > > > +maintainers: > > > > > + - Maso Huang <maso.huang@mediatek.com> > > > > > + > > > > > +properties: > > > > > + compatible: > > > > > + const: mediatek,mt7986-wm8960-machine > > > > > > > > mediatek,mt7986-wm8960-sound looks better. > > > > > > > > After which, > > > > > > > > Reviewed-by: AngeloGioacchino Del Regno < > > > > angelogioacchino.delregno@collabora.com> > > > > > > > > > > > > > > Hi Angelo, > > > > > > Thanks for your review. > > > I'll change the compatible to "mediatek,mt7986-wm8960-sound" in > > > v4 > > > patch. > > > > > > Best regards, > > > Maso > > > > > > > Hi Angelo, > > > > One more question for this compatible. > > > > The suffix "machine" means alsa machine driver for mt7986-wm8960. > > It > > might be better to use "machine" here. > > > > Or you prefer "sound" than "machine"? > > > > Best regards, > > Maso > > I prefer "sound" because of consistency with other MediaTek machine > driver > compatible strings. > > Regards, > Angelo Hi Angelo, No problem, I'll use "mediatek,mt7986-wm8960-sound" as compatible in v4 patch :) Best regards, Maso
On 31/07/2023 10:14, Krzysztof Kozlowski wrote: >>>> + mediatek,audio-codec: >>>> + $ref: /schemas/types.yaml#/definitions/phandle >>>> + description: The phandle of wm8960 codec. >>>> + >>> >>> How did you implement Rob's comment? Or did you just ignore it? >>> >>> Best regards, >>> Krzysztof >>> >> >> Hi Krzysztof, >> >> Sorry, I did not mean to ignore Rob's comment. >> I waited for some suggestion in mail below, but it seems Rob was a >> little busy. >> >> https://lore.kernel.org/lkml/8c6316e79e40406e4d46709f602dcb14a4c00562.camel@mediatek.com/ >> >> After gentle ping last week and receiving your advice, I thought that >> means to send the v3 patch and might discuss dtbingding in v3 series. >> >> So sorry for misunderstanding it, I'll check the details with Rob in v3 >> series then refine it in v4. > > The problem is that you did not reference in this patch any ongoing > discussion and further questions, so comment looks like addressed, while > it was not. > > Rob said: > "in a common schema and reference them " > You said: > "common part yaml and reference to it" > so I think you both agreed on the same. > > The advice would be to create common binding which is then referenced by > other and your bindings. However if you start doing it, you will notice > that it is impossible, because you have conflicting types for > "audio-codec", so you cannot have one definition. > > This leads to the point - property is probably wrong and you need > dai-link with sound-dai property, just like most cards are doing. BTW, might be useful for you, just sent: https://lore.kernel.org/linux-devicetree/20230731094303.185067-1-krzysztof.kozlowski@linaro.org/T/#t Anyway you need dai-links, I think. Best regards, Krzysztof
On Mon, 2023-07-31 at 16:56 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 31/07/2023 10:14, Krzysztof Kozlowski wrote: > >>>> + mediatek,audio-codec: > >>>> + $ref: /schemas/types.yaml#/definitions/phandle > >>>> + description: The phandle of wm8960 codec. > >>>> + > >>> > >>> How did you implement Rob's comment? Or did you just ignore it? > >>> > >>> Best regards, > >>> Krzysztof > >>> > >> > >> Hi Krzysztof, > >> > >> Sorry, I did not mean to ignore Rob's comment. > >> I waited for some suggestion in mail below, but it seems Rob was a > >> little busy. > >> > >> > https://lore.kernel.org/lkml/8c6316e79e40406e4d46709f602dcb14a4c00562.camel@mediatek.com/ > >> > >> After gentle ping last week and receiving your advice, I thought > that > >> means to send the v3 patch and might discuss dtbingding in v3 > series. > >> > >> So sorry for misunderstanding it, I'll check the details with Rob > in v3 > >> series then refine it in v4. > > > > The problem is that you did not reference in this patch any ongoing > > discussion and further questions, so comment looks like addressed, > while > > it was not. > > > > Rob said: > > "in a common schema and reference them " > > You said: > > "common part yaml and reference to it" > > so I think you both agreed on the same. > > > > The advice would be to create common binding which is then > referenced by > > other and your bindings. However if you start doing it, you will > notice > > that it is impossible, because you have conflicting types for > > "audio-codec", so you cannot have one definition. > > > > This leads to the point - property is probably wrong and you need > > dai-link with sound-dai property, just like most cards are doing. > > BTW, might be useful for you, just sent: > https://lore.kernel.org/linux-devicetree/20230731094303.185067-1-krzysztof.kozlowski@linaro.org/T/#t > > Anyway you need dai-links, I think. > > Best regards, > Krzysztof > Hi Krzysztof, Thanks for your useful info! I'll reference to sound-card-common.yaml for audio-routing. For mediatek,platform and mediatek,audio-codec, I would like to replace them with cpu and codec as properties directly like below. cpu { sound-dai <&ate>; }; codec { sound-dai <&wm8960>; }; Is that OK? Best regards, Maso
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml new file mode 100644 index 000000000000..76394f7e5502 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT7986 sound card with WM8960 codec + +maintainers: + - Maso Huang <maso.huang@mediatek.com> + +properties: + compatible: + const: mediatek,mt7986-wm8960-machine + + mediatek,platform: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of MT7986 platform. + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: + A list of the connections between audio components. Each entry is a + sink/source pair of strings. Valid names could be the input or output + widgets of audio components, power supplies, MicBias of codec and the + software switch. + + mediatek,audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of wm8960 codec. + +additionalProperties: false + +required: + - compatible + - mediatek,platform + - audio-routing + - mediatek,audio-codec + +examples: + - | + sound { + compatible = "mediatek,mt7986-wm8960-machine"; + mediatek,platform = <&afe>; + audio-routing = + "Headphone", "HP_L", + "Headphone", "HP_R", + "LINPUT1", "AMIC", + "RINPUT1", "AMIC"; + mediatek,audio-codec = <&wm8960>; + }; + +...