Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2513781rwr; Fri, 21 Apr 2023 09:51:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YgdzhTqyukJvnYyAZePCGUkDd5Rm9AI1IMTZssC5T51aAfF28rofx2Bi1cdCY6GYS4O62n X-Received: by 2002:a05:6a20:12c8:b0:f2:c9c:6e8b with SMTP id v8-20020a056a2012c800b000f20c9c6e8bmr6542925pzg.3.1682095896897; Fri, 21 Apr 2023 09:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682095896; cv=none; d=google.com; s=arc-20160816; b=kqkl/EgWYq4JnmtESg/ys7amC4BlGT1gfARHqKNr4qqiubKr5Os85n6Y2HXY2u8kYF iZEZeHfc96v9DyDyXSdEDHm3HDgAq1e8ITrsRzEM2hwWSOpJxTzgG81C7TlTRXMYxCg9 i/M75KZTMYkRz4+N0YTKkv5UqIfASixCKEH6al511WpOBUUgLzFxBhhZTTOeJGgAmXo+ QctYLHceqcuMgkQtL5KYV8hZAc0VpvyphMSbv3BNvDdUvwh2PXA7ZgwuF4m/QFd/eHd9 ZIcmA0Zmuu6ZF0mhqnHWpFzOCzexOqQKF18b1G/xcacUlrMMjiwqu1OqwrHUSbyS/e1f Ep9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sIuJOr9KDqgRyNZKu6Tt8XNVFok6Ecpq3eqDXh3VdVw=; b=TIf+f4eDFr8Xup2+4Y4q3KJD59TErHhecB4IM9VPvl5MAgcfq9rmosgkbB17lT3tCJ jzf5rtULm18Wp6AWGF322LtfgFgKXmIMVyDJRvDN9W2n4NvH8J4ykXtLj2SE3ckTgIOL N/jksiR7btapkD7Nmmy8+rLPnx+WgvvFHFlpukSM0PV9tZVxytdpNYliaH7/WU77Ej+3 0ENXVCZRzczJxXPb/0N++L8gVvTmn8n4a12Qq4LcDD1gBzLbTR3vOm9JaRaT6/AgaWEc 1p5c2HqRbd0iimCzJ2QOu9LSL7UU0LyDaDlTLz5Kr1lpg65RYD+Bn47IoRTxW3YLYidy 7oVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lBQgSPyC; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u184-20020a6385c1000000b005139edd3958si4788163pgd.6.2023.04.21.09.51.23; Fri, 21 Apr 2023 09:51:36 -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=@linaro.org header.s=google header.b=lBQgSPyC; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233204AbjDUQnx (ORCPT + 99 others); Fri, 21 Apr 2023 12:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbjDUQnv (ORCPT ); Fri, 21 Apr 2023 12:43:51 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66029C17C for ; Fri, 21 Apr 2023 09:43:50 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5055141a8fdso2692634a12.3 for ; Fri, 21 Apr 2023 09:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682095429; x=1684687429; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sIuJOr9KDqgRyNZKu6Tt8XNVFok6Ecpq3eqDXh3VdVw=; b=lBQgSPyCip8rYuFpD+Us5fMponEiWICDi4kBwWqP5Gu6VnZDpRxF90JVMutN889EKh BklKXuWF0K0mMfc8jCX0zhVJHYmQ+OgHRfrDSwZnXv7BwbkN9TkrGVS+6VLWtIftCalK 24g4MpMs+/2fwlJ5QYO+dTLQFWz9aW1Ma200XNRjpdyriDrKqyP6AguuNqgJrIXFFmAr Zo/Hx+b4IfPpjTKYCqYBPhgDzx6NDyCLPKbm0LnfGvwwyBbTRnhH+1TYmJa7Ffd4xug2 INwJ+T5PyDE3ETo4Wy3lM7AJjxq5t3KThmm+D580q14eObdPzLZku1G2h6G6rH6Q1KAO bzBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682095429; x=1684687429; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sIuJOr9KDqgRyNZKu6Tt8XNVFok6Ecpq3eqDXh3VdVw=; b=H8whINpKFLCvnC7e+KLWKUBQbZP+TaC+2EjDUGuQjDL62jgD0BQb7CkGRI+A3Aq3eM N2/kXRbF1v7SXHTM7MnQmt65/4c54m5IYXt735Ku+GpSDrPBUZGbcuur1ljOVJOkufNP i6hdjNVRgmb16y9oT9dF+3l8jdCixETXeO5BDfi1tdUZe3wvCfYGSW4OJEgOrZN0Y9pA L6GGMskNAhHzSkpwACUdo5fEctJQXKxE0wLc72rFvRYtwDh0dkaIqj87Dho9jY8CKbYc KyAPjbb+JYreRjQgEQeYjKJVRxa/OCormx2MKcILQyJi9bVMZZDlxXIT5Q4oKMn6toU3 wmCg== X-Gm-Message-State: AAQBX9fkEDMU5Pa+Sskx0o0r6PhXbabUwEB7LhNVulxOQKXLirczGavy BBFnWSF8h/HscYYB7SFRgDEeRQ== X-Received: by 2002:a17:907:e92:b0:94a:4d06:3de3 with SMTP id ho18-20020a1709070e9200b0094a4d063de3mr3205814ejc.72.1682095428846; Fri, 21 Apr 2023 09:43:48 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:687d:8c5:41cb:9883? ([2a02:810d:15c0:828:687d:8c5:41cb:9883]) by smtp.gmail.com with ESMTPSA id t18-20020a17090616d200b0094f969e877bsm2242742ejd.43.2023.04.21.09.43.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Apr 2023 09:43:48 -0700 (PDT) Message-ID: <5e622e88-5287-1ffc-aa9b-c7c85a661fd9@linaro.org> Date: Fri, 21 Apr 2023 18:43:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 7/7] ASoC: dt-bindings: mediatek,mt8188-afe: add audio properties Content-Language: en-US To: Trevor Wu , 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: 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 References: <20230421100905.28045-1-trevor.wu@mediatek.com> <20230421100905.28045-8-trevor.wu@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20230421100905.28045-8-trevor.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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: X-Mailing-List: linux-kernel@vger.kernel.org On 21/04/2023 12:09, 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 > --- > .../bindings/sound/mediatek,mt8188-afe.yaml | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml > index 82ccb32f08f2..812e0702ca36 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 > > @@ -52,6 +56,7 @@ properties: > - description: mux for i2si1_mck > - description: mux for i2si2_mck > - description: audio 26m clock > + - description: audio pll1 divide 4 > > clock-names: > items: > @@ -73,6 +78,7 @@ properties: > - const: i2si1_m_sel > - const: i2si2_m_sel > - const: adsp_audio_26m > + - const: apll1_d4 > > mediatek,etdm-in1-cowork-source: > $ref: /schemas/types.yaml#/definitions/uint32 > @@ -147,6 +153,8 @@ required: > - power-domains > - clocks > - clock-names > + - assigned-clocks > + - assigned-clock-parents You were explaining it last time, but it did not solve my concerns. Requiring these properties means that your hardware boots with incorrect clock parents, including result of any firmware, and there is no way it can correctly work without reparenting. What's more, this means that your clock hierarchy does not include these clocks for some reason, e.g. you need to reparent parents of some parent of your clock input, otherwise device cannot work. Cannot work never ever. Is this the case? Have in mind that bindings are used also by other OS and projects, like bootloaders, firmware etc. Best regards, Krzysztof