Message ID | 20230413104713.7174-8-trevor.wu@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp949439vqo; Thu, 13 Apr 2023 04:08:38 -0700 (PDT) X-Google-Smtp-Source: AKy350Zs7D61eHMx2EZin2XZz2gHYLAOjG++J6Kx8ay+uzg+qadvJAK34VpY+htnvbppMSpsxgHk X-Received: by 2002:a05:6a00:1395:b0:627:ede2:89ee with SMTP id t21-20020a056a00139500b00627ede289eemr3419948pfg.25.1681384118539; Thu, 13 Apr 2023 04:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681384118; cv=none; d=google.com; s=arc-20160816; b=0zR38LY7kq5X1n2WDqHI962uYp51o2kExpzcqsJq0YNyYFuPpCCT4k1SJ0rk8tg7kl 6N7JVZoYtDJOff2abqEIHFwnBowGcuHCEULYWXEvorwoVJMwFVspGVQTnuH3kZZB7MHD n8Gm6IA9Wouo6wHLptHgjojeVrgKU1HkQEb4GeNhW6I7BnuOBwu86zatO8hrakmgafUc xrPX+DKtGw+mDLETwPH2F2GX39uX6cgjwnfNtQvnfoWOOYk/4IbjTL2Uoh43yf9NmvwR MCK7LGY7ocr3gGybGplpccCf6hzGjzjJ0oUlAGezBcWLpekd6tA5gE6VRBjab1mOsMCL DA2A== 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=gg5XIv0JoxYh7+Q/MXFr/X6SWUKuH88SYwHbABhmj9Y=; b=T3ZL1vfEGR3/W5Dlu/IsCsziT6H4oMRU0h0ETdONKltcj4OIOiTBN8SDzojZXLaJ0J S/18lfPJGstUzQwd4TeLSxv1XkfY+rFCEcZrrNiD0BCvbNyYYlCTGVoAyhew1m785wKn H6BvT9XiKXRpPqwxL1auTdh7VTYYbZte57M6F6IQTrF3FtlPNInN8T4kOcwX40XNBc+o 8XO5hoAduWzTpu/gZ/okWQEDSXwvCFopRcu5b8eXtqvT3f6J6IG0M89X15z2sjYH9Wzm nZuRta4ITHQSXho0xRY613RjCEqiLeN3JTTILDqFvgpMFMykibBjBEJ/UAGiiE6BMGpy ZQLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SvUp+XcA; 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 l28-20020a63571c000000b0050fa7d26537si1761167pgb.601.2023.04.13.04.08.26; Thu, 13 Apr 2023 04:08:38 -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=SvUp+XcA; 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 S231176AbjDMKrl (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Thu, 13 Apr 2023 06:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjDMKrc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Apr 2023 06:47:32 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2629BE4A; Thu, 13 Apr 2023 03:47:26 -0700 (PDT) X-UUID: 8fdbf8eed9e811edb6b9f13eb10bd0fe-20230413 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=gg5XIv0JoxYh7+Q/MXFr/X6SWUKuH88SYwHbABhmj9Y=; b=SvUp+XcAtYKDtvp6YSsytflb2YVFvLuJYu3mCWxDDunScK075N8hvAtEeVE/CZon2nrtRHm2PkTx7/tLLBpM4TpnmpkcVu71L5ALCZFifnhjGpXkHM10PTwuaMSEyVRmItGYJhAUdQhckzfAJHSGfJGi9uKOB8/ZT8HKqjixHj4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:bbb6df5c-2546-4fc0-ba1b-7653372616bf,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.22,REQID:bbb6df5c-2546-4fc0-ba1b-7653372616bf,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:120426c,CLOUDID:305ed9ea-db6f-41fe-8b83-13fe7ed1ef52,B ulkID:230413184721HQGIUYN1,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 8fdbf8eed9e811edb6b9f13eb10bd0fe-20230413 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from <trevor.wu@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 755087442; Thu, 13 Apr 2023 18:47:18 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Thu, 13 Apr 2023 18:47:18 +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.25 via Frontend Transport; Thu, 13 Apr 2023 18:47:18 +0800 From: Trevor Wu <trevor.wu@mediatek.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com>, <tiwai@suse.com>, <perex@perex.cz>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <matthias.bgg@gmail.com>, <angelogioacchino.delregno@collabora.com> CC: <trevor.wu@mediatek.com>, <alsa-devel@alsa-project.org>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org> Subject: [PATCH 7/7] ASoC: dt-bindings: mediatek,mt8188-afe: add audio properties Date: Thu, 13 Apr 2023 18:47:13 +0800 Message-ID: <20230413104713.7174-8-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230413104713.7174-1-trevor.wu@mediatek.com> References: <20230413104713.7174-1-trevor.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763059033445947526?= X-GMAIL-MSGID: =?utf-8?q?1763059033445947526?= |
Series |
ASoC: mediatek: mt8188: revise AFE driver
|
|
Commit Message
Trevor Wu (吳文良)
April 13, 2023, 10:47 a.m. UTC
Assign top_a1sys_hp clock to 26M, and add apll1_d4 to clocks for switching
the parent of top_a1sys_hp dynamically
On the other hand, "mediatek,infracfg" is included for bus protection.
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
---
.../bindings/sound/mediatek,mt8188-afe.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Comments
On 13/04/2023 12:47, Trevor Wu wrote: > Assign top_a1sys_hp clock to 26M, and add apll1_d4 to clocks for switching > the parent of top_a1sys_hp dynamically > On the other hand, "mediatek,infracfg" is included for bus protection. > > Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> > --- > .../bindings/sound/mediatek,mt8188-afe.yaml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > index 82ccb32f08f2..03301d5082f3 100644 > --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > @@ -29,6 +29,10 @@ properties: > $ref: /schemas/types.yaml#/definitions/phandle > description: The phandle of the mediatek topckgen controller > > + mediatek,infracfg: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle of the mediatek infracfg controller > + > power-domains: > maxItems: 1 > > @@ -37,6 +41,7 @@ properties: > - description: 26M clock > - description: audio pll1 clock > - description: audio pll2 clock > + - description: audio pll1 divide 4 > - description: clock divider for i2si1_mck > - description: clock divider for i2si2_mck > - description: clock divider for i2so1_mck > @@ -58,6 +63,7 @@ properties: > - const: clk26m > - const: apll1 > - const: apll2 > + - const: apll1_d4 Why do you add clocks in the middle? The order is strict, so you just broke all DTS. > - const: apll12_div0 > - const: apll12_div1 > - const: apll12_div2 > @@ -74,6 +80,12 @@ properties: > - const: i2si2_m_sel > - const: adsp_audio_26m > > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-parents: > + maxItems: 1 Usually these two are not needed. > + > mediatek,etdm-in1-cowork-source: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > @@ -147,6 +159,8 @@ required: > - power-domains > - clocks > - clock-names > + - assigned-clocks > + - assigned-clock-parents Why making them required? Best regards, Krzysztof
On Sat, 2023-04-15 at 11:00 +0200, Krzysztof Kozlowski wrote: > > On 13/04/2023 12:47, Trevor Wu wrote: > > Assign top_a1sys_hp clock to 26M, and add apll1_d4 to clocks for > > switching > > the parent of top_a1sys_hp dynamically > > On the other hand, "mediatek,infracfg" is included for bus > > protection. > > > > Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> > > --- > > .../bindings/sound/mediatek,mt8188-afe.yaml | 18 > > ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git > > a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > > b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > > index 82ccb32f08f2..03301d5082f3 100644 > > --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > afe.yaml > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > afe.yaml > > @@ -29,6 +29,10 @@ properties: > > $ref: /schemas/types.yaml#/definitions/phandle > > description: The phandle of the mediatek topckgen controller > > > > + mediatek,infracfg: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: The phandle of the mediatek infracfg controller > > + > > power-domains: > > maxItems: 1 > > > > @@ -37,6 +41,7 @@ properties: > > - description: 26M clock > > - description: audio pll1 clock > > - description: audio pll2 clock > > + - description: audio pll1 divide 4 > > - description: clock divider for i2si1_mck > > - description: clock divider for i2si2_mck > > - description: clock divider for i2so1_mck > > @@ -58,6 +63,7 @@ properties: > > - const: clk26m > > - const: apll1 > > - const: apll2 > > + - const: apll1_d4 > > Why do you add clocks in the middle? The order is strict, so you just > broke all DTS. > In DTS file, I only need to make sure that the order in clocks should be the same as clock-names, so I misunderstood that I can add the clock in the middle based on the clock type. Sorry, I didn't know the order is strict. I will move the new clock to the last one in v2. > > - const: apll12_div0 > > - const: apll12_div1 > > - const: apll12_div2 > > @@ -74,6 +80,12 @@ properties: > > - const: i2si2_m_sel > > - const: adsp_audio_26m > > > > + assigned-clocks: > > + maxItems: 1 > > + > > + assigned-clock-parents: > > + maxItems: 1 > > Usually these two are not needed. > OK. I will remove these two properties in v2. > > + > > mediatek,etdm-in1-cowork-source: > > $ref: /schemas/types.yaml#/definitions/uint32 > > description: > > @@ -147,6 +159,8 @@ required: > > - power-domains > > - clocks > > - clock-names > > + - assigned-clocks > > + - assigned-clock-parents > > Why making them required? As I mentioned in the commit message, switching the parent of top_a1sys_hp was included in the series. I make use of these two properties to initialize the clock to 26MHz, so APLL1 can be enabled only when it's really required. Thanks, Trevor >
Il 17/04/23 04:44, Trevor Wu (吳文良) ha scritto: > On Sat, 2023-04-15 at 11:00 +0200, Krzysztof Kozlowski wrote: >> >> On 13/04/2023 12:47, Trevor Wu wrote: >>> Assign top_a1sys_hp clock to 26M, and add apll1_d4 to clocks for >>> switching >>> the parent of top_a1sys_hp dynamically >>> On the other hand, "mediatek,infracfg" is included for bus >>> protection. >>> >>> Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> >>> --- >>> .../bindings/sound/mediatek,mt8188-afe.yaml | 18 >>> ++++++++++++++++++ >>> 1 file changed, 18 insertions(+) >>> >>> diff --git >>> a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml >>> b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml >>> index 82ccb32f08f2..03301d5082f3 100644 >>> --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188- >>> afe.yaml >>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188- >>> afe.yaml >>> @@ -29,6 +29,10 @@ properties: >>> $ref: /schemas/types.yaml#/definitions/phandle >>> description: The phandle of the mediatek topckgen controller >>> >>> + mediatek,infracfg: >>> + $ref: /schemas/types.yaml#/definitions/phandle >>> + description: The phandle of the mediatek infracfg controller >>> + >>> power-domains: >>> maxItems: 1 >>> >>> @@ -37,6 +41,7 @@ properties: >>> - description: 26M clock >>> - description: audio pll1 clock >>> - description: audio pll2 clock >>> + - description: audio pll1 divide 4 >>> - description: clock divider for i2si1_mck >>> - description: clock divider for i2si2_mck >>> - description: clock divider for i2so1_mck >>> @@ -58,6 +63,7 @@ properties: >>> - const: clk26m >>> - const: apll1 >>> - const: apll2 >>> + - const: apll1_d4 >> >> Why do you add clocks in the middle? The order is strict, so you just >> broke all DTS. >> > > In DTS file, I only need to make sure that the order in clocks should > be the same as clock-names, so I misunderstood that I can add the clock > in the middle based on the clock type. > > Sorry, I didn't know the order is strict. I will move the new clock to > the last one in v2. > Actually, doing that is borderline-ok... there's no devicetree for MT8188 upstream, so that's not breaking anything at all. In any case, I agree that you should generally avoid doing that but I think that in this specific case it's fine; I'm not a devicetree maintainer though. P.S.: Trevor, next time please make reviewers aware of the fact that no 8188 devicetree is present upstream! Regards, Angelo
On Mon, 2023-04-17 at 09:55 +0200, AngeloGioacchino Del Regno wrote: > Il 17/04/23 04:44, Trevor Wu (吳文良) ha scritto: > > On Sat, 2023-04-15 at 11:00 +0200, Krzysztof Kozlowski wrote: > > > > > > On 13/04/2023 12:47, Trevor Wu wrote: > > > > Assign top_a1sys_hp clock to 26M, and add apll1_d4 to clocks > > > > for > > > > switching > > > > the parent of top_a1sys_hp dynamically > > > > On the other hand, "mediatek,infracfg" is included for bus > > > > protection. > > > > > > > > Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> > > > > --- > > > > .../bindings/sound/mediatek,mt8188-afe.yaml | 18 > > > > ++++++++++++++++++ > > > > 1 file changed, 18 insertions(+) > > > > > > > > diff --git > > > > a/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > > > afe.yaml > > > > b/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > > > afe.yaml > > > > index 82ccb32f08f2..03301d5082f3 100644 > > > > --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > > > afe.yaml > > > > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188- > > > > afe.yaml > > > > @@ -29,6 +29,10 @@ properties: > > > > $ref: /schemas/types.yaml#/definitions/phandle > > > > description: The phandle of the mediatek topckgen > > > > controller > > > > > > > > + mediatek,infracfg: > > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > > + description: The phandle of the mediatek infracfg > > > > controller > > > > + > > > > power-domains: > > > > maxItems: 1 > > > > > > > > @@ -37,6 +41,7 @@ properties: > > > > - description: 26M clock > > > > - description: audio pll1 clock > > > > - description: audio pll2 clock > > > > + - description: audio pll1 divide 4 > > > > - description: clock divider for i2si1_mck > > > > - description: clock divider for i2si2_mck > > > > - description: clock divider for i2so1_mck > > > > @@ -58,6 +63,7 @@ properties: > > > > - const: clk26m > > > > - const: apll1 > > > > - const: apll2 > > > > + - const: apll1_d4 > > > > > > Why do you add clocks in the middle? The order is strict, so you > > > just > > > broke all DTS. > > > > > > > In DTS file, I only need to make sure that the order in clocks > > should > > be the same as clock-names, so I misunderstood that I can add the > > clock > > in the middle based on the clock type. > > > > Sorry, I didn't know the order is strict. I will move the new clock > > to > > the last one in v2. > > > > Actually, doing that is borderline-ok... there's no devicetree for > MT8188 > upstream, so that's not breaking anything at all. > In any case, I agree that you should generally avoid doing that but I > think > that in this specific case it's fine; I'm not a devicetree maintainer > though. > > P.S.: Trevor, next time please make reviewers aware of the fact that > no 8188 > devicetree is present upstream! > Got it. Thanks. Hi krzysztof, Because there is no upstream mt8188 DTS, should I move the new clock to the end of clock list? If I move "apll1_d4" to the end of the list at binding file, when I upstream the devicetree node existing clocks and clock-names properties , should I follow the sequence defined in dt-bindings or can I have a new sequence based on the clock type or alphabet? Thanks, Trevor
On 18/04/2023 12:23, Trevor Wu (吳文良) wrote: >> Actually, doing that is borderline-ok... there's no devicetree for >> MT8188 >> upstream, so that's not breaking anything at all. >> In any case, I agree that you should generally avoid doing that but I >> think >> that in this specific case it's fine; I'm not a devicetree maintainer >> though. >> >> P.S.: Trevor, next time please make reviewers aware of the fact that >> no 8188 >> devicetree is present upstream! >> > Got it. Thanks. > > > Hi krzysztof, > > Because there is no upstream mt8188 DTS, should I move the new clock to > the end of clock list? What is the reason to add them in the middle? So far there was no argument, so always add at the end. If you have an argument, let's discuss it. > > If I move "apll1_d4" to the end of the list at binding file, when I > upstream the devicetree node existing clocks and clock-names properties > , should I follow the sequence defined in dt-bindings If you do not follow the sequence of bindings, you upstream incorrect DTS which does not follow ABI and fails the tests. Therefore yes, use the same order as your bindings define. > or can I have a > new sequence based on the clock type or alphabet? Sorry, I don't know what is the order of clock type and alphabet. If you mean anything else than bindings, then no, because how is it supposed to work then? Best regards, Krzysztof
On Tue, 2023-04-18 at 14:25 +0200, Krzysztof Kozlowski wrote: > On 18/04/2023 12:23, Trevor Wu (吳文良) wrote: > > > Actually, doing that is borderline-ok... there's no devicetree > > > for > > > MT8188 > > > upstream, so that's not breaking anything at all. > > > In any case, I agree that you should generally avoid doing that > > > but I > > > think > > > that in this specific case it's fine; I'm not a devicetree > > > maintainer > > > though. > > > > > > P.S.: Trevor, next time please make reviewers aware of the fact > > > that > > > no 8188 > > > devicetree is present upstream! > > > > > > > Got it. Thanks. > > > > > > Hi krzysztof, > > > > Because there is no upstream mt8188 DTS, should I move the new > > clock to > > the end of clock list? > > What is the reason to add them in the middle? So far there was no > argument, so always add at the end. If you have an argument, let's > discuss it. > No special reason. Just hope to sort the clock by the clock type. But it's possible to extend the clock list after we upstream MT8188 DTS, so it won't follow the order finally. I think it is fine to put the clock at the end. I will move it to the end in V2. > > > > If I move "apll1_d4" to the end of the list at binding file, when I > > upstream the devicetree node existing clocks and clock-names > > properties > > , should I follow the sequence defined in dt-bindings > > If you do not follow the sequence of bindings, you upstream incorrect > DTS which does not follow ABI and fails the tests. Therefore yes, use > the same order as your bindings define. > > > or can I have a > > new sequence based on the clock type or alphabet? > > Sorry, I don't know what is the order of clock type and alphabet. If > you > mean anything else than bindings, then no, because how is it supposed > to > work then? > > Got it. Thanks for the detailed explanation. I will follow the order as bindings when I update the DTS node. Thanks, Trevor
diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml index 82ccb32f08f2..03301d5082f3 100644 --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml @@ -29,6 +29,10 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: The phandle of the mediatek topckgen controller + mediatek,infracfg: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the mediatek infracfg controller + power-domains: maxItems: 1 @@ -37,6 +41,7 @@ properties: - description: 26M clock - description: audio pll1 clock - description: audio pll2 clock + - description: audio pll1 divide 4 - description: clock divider for i2si1_mck - description: clock divider for i2si2_mck - description: clock divider for i2so1_mck @@ -58,6 +63,7 @@ properties: - const: clk26m - const: apll1 - const: apll2 + - const: apll1_d4 - const: apll12_div0 - const: apll12_div1 - const: apll12_div2 @@ -74,6 +80,12 @@ properties: - const: i2si2_m_sel - const: adsp_audio_26m + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + mediatek,etdm-in1-cowork-source: $ref: /schemas/types.yaml#/definitions/uint32 description: @@ -147,6 +159,8 @@ required: - power-domains - clocks - clock-names + - assigned-clocks + - assigned-clock-parents additionalProperties: false @@ -170,6 +184,7 @@ examples: clocks = <&clk26m>, <&apmixedsys 9>, //CLK_APMIXED_APLL1 <&apmixedsys 10>, //CLK_APMIXED_APLL2 + <&topckgen 136>, //CLK_TOP_APLL1_D4 <&topckgen 186>, //CLK_TOP_APLL12_CK_DIV0 <&topckgen 187>, //CLK_TOP_APLL12_CK_DIV1 <&topckgen 188>, //CLK_TOP_APLL12_CK_DIV2 @@ -188,6 +203,7 @@ examples: clock-names = "clk26m", "apll1", "apll2", + "apll1_d4", "apll12_div0", "apll12_div1", "apll12_div2", @@ -203,6 +219,8 @@ examples: "i2si1_m_sel", "i2si2_m_sel", "adsp_audio_26m"; + assigned-clocks = <&topckgen 83>; //CLK_TOP_A1SYS_HP + assigned-clock-parents = <&clk26m>; }; ...