From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 556E316408; Thu, 9 Nov 2023 10:06:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="PobSEOGI" Received: from mail-m49205.qiye.163.com (mail-m49205.qiye.163.com [45.254.49.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1728C111; Thu, 9 Nov 2023 02:06:33 -0800 (PST) DKIM-Signature: a=rsa-sha256; b=PobSEOGIS9lPsDVpgl5L4VgjJF2twsVrPB+k5DLkehUUM/5a/qCNjTn7sWoj7AcO3H1MUOmDdp+TpajML6W3MakeMhxjsEaVYsm8C98KgvddQUy9Yy3q4roYsl45UUUBZMQlAU/u83VMXyNkaOrey4K7Kkw1rKRCCpXIMDmO6zs=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=+o1lwrhYekZaebnXtEiZSTT6cTUQnls9uE9T48+orDQ=; h=date:mime-version:subject:message-id:from; Received: from [172.16.12.49] (unknown [58.22.7.114]) by mail-m11877.qiye.163.com (Hmail) with ESMTPA id 39D6A4002B7; Thu, 9 Nov 2023 18:05:52 +0800 (CST) Message-ID: Date: Thu, 9 Nov 2023 18:05:51 +0800 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 3/4] dt-bindings: clock: rk3588: export PCLK_VO1GRF clk id To: Krzysztof Kozlowski , Conor Dooley Cc: Conor Dooley , mturquette@baylibre.com, sboyd@kernel.org, kever.yang@rock-chips.com, heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, huangtao@rock-chips.com, andy.yan@rock-chips.com, Sebastian Reichel References: <20231108061822.4871-1-zhangqing@rock-chips.com> <20231108061822.4871-4-zhangqing@rock-chips.com> <20231108-donation-uncertain-c4d0f560c420@spud> <2e520a06-0ff1-76ef-2a72-ab6663738b45@rock-chips.com> <20231109-send-pushchair-45b37551102a@wendy> From: zhangqing In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQx1MT1YfSE5IShpPGRoaHk9VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQl kG X-HM-Tid: 0a8bb38b9aa12eb3kusn39d6a4002b7 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MAg6MDo*Gjw4Fw4JKU8pFClP Mx4aC0JVSlVKTUJCTklPSE5ISEJOVTMWGhIXVQETGhUcChIVHDsJFBgQVhgTEgsIVRgUFkVZV1kS C1lBWU5DVUlJVUxVSkpPWVdZCAFZQU1ITEI3Bg++ 在 2023/11/9 17:21, Krzysztof Kozlowski 写道: > On 09/11/2023 09:06, zhangqing wrote: >> 在 2023/11/9 15:29, Conor Dooley 写道: >>> On Thu, Nov 09, 2023 at 02:27:38PM +0800, zhangqing wrote: >>>> Hi: >>>> >>>> 在 2023/11/8 20:01, Conor Dooley 写道: >>>>> On Wed, Nov 08, 2023 at 02:18:21PM +0800, Elaine Zhang wrote: >>>>>> export PCLK_VO1GRF for DT. >>>>>> >>>>>> Signed-off-by: Elaine Zhang >>>>>> --- >>>>>> include/dt-bindings/clock/rockchip,rk3588-cru.h | 3 ++- >>>>>> 1 file changed, 2 insertions(+), 1 deletion(-) >>>>>> >>>>>> diff --git a/include/dt-bindings/clock/rockchip,rk3588-cru.h b/include/dt-bindings/clock/rockchip,rk3588-cru.h >>>>>> index 5790b1391201..50ba72980190 100644 >>>>>> --- a/include/dt-bindings/clock/rockchip,rk3588-cru.h >>>>>> +++ b/include/dt-bindings/clock/rockchip,rk3588-cru.h >>>>>> @@ -733,8 +733,9 @@ >>>>>> #define ACLK_AV1_PRE 718 >>>>>> #define PCLK_AV1_PRE 719 >>>>>> #define HCLK_SDIO_PRE 720 >>>>>> +#define PCLK_VO1GRF 721 >>>>>> -#define CLK_NR_CLKS (HCLK_SDIO_PRE + 1) >>>>>> +#define CLK_NR_CLKS (PCLK_VO1GRF + 1) >>>>> This definition is part of the ABI, if it is safe to change it, then it >>>>> is safe to delete it. >>>> The new ID is to solve the niu clock dependency problem(Used in PATCH V5 >>>> 4/4).This new ID will also be used in DTS in the future. >>>> >>>> CLK_NR_CLKS represents the number of clocks used by the >>>> drivers/clk/rockchip/clk-rkxxx.c. It is safe to modify it, but cannot delete >>>> it. >>> Then delete it from the header and move it to clk-rkxxx.c >> I don't think it's more appropriate to move to clk-rkxxx.c. >> Because if there are new requirements later, and add new clk id, it is >> not in the same file, maybe forget to modify CLK_NR_CLKS. > Then you are not allowed to change it. It's part of ABI. If you just don't want me to modify CLK_NR_CLKS, can I use an unused ID, like [PATCH V4 3/4]: -#define MBIST_MCLK_PDM1                        24 +#define PCLK_VO1GRF                    24 > > Best regards, > Krzysztof > -- 张晴 瑞芯微电子股份有限公司 Rockchip Electronics Co.,Ltd 地址:福建省福州市铜盘路软件大道89号软件园A区21号楼 Add:No.21 Building, A District, No.89 Software Boulevard Fuzhou, Fujian 350003, P.R.China Tel:+86-0591-83991906-8601 邮编:350003 E-mail:elaine.zhang@rock-chips.com **************************************************************************** 保密提示:本邮件及其附件含有机密信息,仅发送给本邮件所指特定收件人。若非该特定收件人,请勿复制、使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件或其他方式即刻告知发件人。福州瑞芯微电子有限公司拥有本邮件信息的著作权及解释权,禁止任何未经授权许可的侵权行为。 IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material in its entirety in any format. Thank you. ****************************************************************************