Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6423890rwb; Mon, 12 Dec 2022 01:27:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4MvHLBZT8nBgjfwXA4cjWJEqsO5h9AZ9MLvrs+IWLDbsZGEA0o7DZj1XLk5iLNLVUP568c X-Received: by 2002:a17:906:381:b0:78d:f455:c39b with SMTP id b1-20020a170906038100b0078df455c39bmr13187067eja.65.1670837263148; Mon, 12 Dec 2022 01:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670837263; cv=none; d=google.com; s=arc-20160816; b=U9K/o5ZIezQo0vcjd1R8qA0trhm6zgrZ4ZEqi8Z2u1cCYGLbUWypH4eVGTA18nrkX1 z3LYUpujLHdEos8LMuPiqBTk109TInQrOD598whku/qsigHI2nSVBSNucA8FHsfVO64l WdZ5SubVIYKFo/ry2i05bTFLVnDbIEb5sjJXvpVpkrZ33ZYk0C7M5TMf/w1wIy6mrrTF PGLdnW9x2S0qKLqPjvld3ZmjHo6HXWWm6sTsebMHbkpo5RCl9NfiUvzoga/IGp83ooIO GmQVwUdxXloZJM6YmLq800CQKjCZTLOQS+UejZTXRSsryuyFrcRk8kQskUyxVjpQXL9C UW4A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=K+6fEYSz7m/CPUV4/+SEcQDFawyZfISqhe/v9Owp5pU=; b=C8RKsXpXG7LmwQtoAMgcVODLaE2CP/p5BLA5lwzjhOgiTQLA53yvjUt+Eg8vaE2PmL sNGngeewJbdM0evQ0JAIqoIsJ4MQkyNMdJuZkC9nZ4ROGdmkRQP3fuL6TssUJnz4q0Nr Vues2Euq96xNYkz7j0b4a0Aei//+V2hBlv/PDWQWMi0xGMdP8tNGDh62vA3p6XGuVMuq mI3fVuuZL65WpGMjuUwr4WYmnuq2e8ytrOE+Tl0Geuo6raPp/48DGvpmGExULzQwPDZh Gzews6PCm7z8ezHfjyxG4whMh8yhjWe9OPwjrKcPumR+zw2r8hiHjgqo62GD2mi0co6Q opGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H1Jk1RLO; 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 hq15-20020a1709073f0f00b007c15653692csi3317657ejc.287.2022.12.12.01.27.25; Mon, 12 Dec 2022 01:27:43 -0800 (PST) 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=H1Jk1RLO; 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 S231392AbiLLIkx (ORCPT + 75 others); Mon, 12 Dec 2022 03:40:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbiLLIkv (ORCPT ); Mon, 12 Dec 2022 03:40:51 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE5EC758 for ; Mon, 12 Dec 2022 00:40:49 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id s10so11756061ljg.1 for ; Mon, 12 Dec 2022 00:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=K+6fEYSz7m/CPUV4/+SEcQDFawyZfISqhe/v9Owp5pU=; b=H1Jk1RLOPg9VYMLvqyNaJw3wTLfyV51sNzM1xYb7d+lzkrEB6mVox9o567x5glUjH6 fJ/lRVNJHtjhU2peVl8ruNNeZv94g+K5g4gMw5qQAXps/5ykovYIfR7SLwO/jU5ISYyR w6mIEpSlc3AK8WJR0/AVHxDt4WXy6vxLIBvvDuPaCLlT0CT4IzU+yn0Zi+idc1uSsfjQ sm2eMXJ9KSyEKlUpbbi0s7jZK8pNORQjbU3jP5MnoxY4rgpwUy9GMDzymnne27k02M4k qwGCTdIPoInshL+nQplRmu5UIdJ5Ijz54cXFCwG0Z+D1XFpFFeYZ84APYHHFfKRWLGqV XP7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K+6fEYSz7m/CPUV4/+SEcQDFawyZfISqhe/v9Owp5pU=; b=cqVvDe84vzQ8LXRERGysC6fUazP+ibYtCD3eB4chJzJ45YmtAixGaY+bKO3mEt/j1x Gjvx+E20GWfO394fEkRNiupIUmQpzRT9TDXwIlYhbwXufHeVWRmn4487ms/N2ZuVFhL+ fGZ5uuDHjPrpJBW8T3umZZwa1PnQyK8BnS5UBbr83WVLhZkpwA7sQE6DtJFePc0HQVgU TRDaUIMs04lN00DtPQjZS/IxaDZODi8oumcc1ApWs07ftKWwQe92JoCtC5gHfMJd8NVp 64YvwuRfB04iAbjpz10fOOEFEEni9qJ43Ztl2p2XXyQMLAi17CF4jlenQorktvZGvyTH 17hQ== X-Gm-Message-State: ANoB5plsiDk6PFClbEdqDa52e2oitf1liXwj+jTkqiIJUbLqnY4iHUtY RRW4B0u8az4II0c1eHYWgR3lxQ== X-Received: by 2002:a05:651c:905:b0:277:155c:f4a3 with SMTP id e5-20020a05651c090500b00277155cf4a3mr3625178ljq.38.1670834448153; Mon, 12 Dec 2022 00:40:48 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id p9-20020a2eb989000000b0027a197d8247sm1153836ljp.16.2022.12.12.00.40.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Dec 2022 00:40:47 -0800 (PST) Message-ID: Date: Mon, 12 Dec 2022 09:40:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v3 10/12] dt-bindings: mediatek: mt8188: add audio afe document To: =?UTF-8?B?VHJldm9yIFd1ICjlkLPmlofoia8p?= , "robh+dt@kernel.org" , "broonie@kernel.org" , "p.zabel@pengutronix.de" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "perex@perex.cz" Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "angelogioacchino.delregno@collabora.com" , "alsa-devel@alsa-project.org" , Project_Global_Chrome_Upstream_Group , "devicetree@vger.kernel.org" References: <20221208033148.21866-1-trevor.wu@mediatek.com> <20221208033148.21866-11-trevor.wu@mediatek.com> <45b4b287dfd57b99e0ba5675bf99194f6d84d9da.camel@mediatek.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 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 12/12/2022 03:43, Trevor Wu (吳文良) wrote: >>> >>>>> + uniqueItems: true >>>>> + items: >>>>> + minimum: 0 >>>>> + maximum: 15 >>>>> + >>>>> + "^mediatek,etdm-in[1-2]-mclk-always-on-rate-hz$": >>>>> + description: Specify etdm in mclk output rate for always >>>>> on >>>>> case. >>>> >>>> How is it different than assigned-clock-rates? >>>> >>> >>> This includes clock enabling at init stage. >> >> assigned-clock-rates are also at init stage. I asked what is >> different. >> > > If the property is used, there are three parts included in dai driver > probe function. > > 1. set clock parent (which APLL) > 2. set clock rate (MCLK rate) > 3. enable clock (MCLK On) > > The first two parts can be done by existing dts clock properties, but > the last one can't. > When MCLK should be enabled at boot time and kept on, this property is used. That's why I say the property is designed for always-on case. Heh, so the "always on case" means this property enables clock? How is this even DT property? That's not how clocks should be kept enabled. You need proper clock provider and consumer. Best regards, Krzysztof