Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2203692rdb; Tue, 20 Feb 2024 23:30:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUM0h4rl51ovoFSMjwciVGC4+ByeY31ZoK3ts/jcHIwRKudcvhRyE79n+FavZF3vwDbKEh+H73enrQkeagUZa3sNcHa6n7cCkiXUN0Eog== X-Google-Smtp-Source: AGHT+IHHQlPJ5KQolzVjTol05AhVzLj2j6jyiJDstQUpgMi9Db0VutbmqWLGo7A3U1Z2YOCpALR8 X-Received: by 2002:a05:6402:1656:b0:564:7007:e14a with SMTP id s22-20020a056402165600b005647007e14amr5299478edx.6.1708500612570; Tue, 20 Feb 2024 23:30:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708500612; cv=pass; d=google.com; s=arc-20160816; b=SIxg5YTxtj8oabMtCavw9nBPqVA6RB6llIMTO7ydUhQl2fPpfsP9IZLr0EUtItZx1k 9l2DqMWGI38xRuswdORZIzlGWZmq+UcrQCJACk0Oj+wCDJGAdSp/n5tMtVrYT232VmUE YLk/YZU/zSQf23puuBl875AEs1vOWz/saoZ8oxEmQL9Mi64L3fyINcDS2fGWIkYXFd9f +va91yWr+25ZvzidCReWHFZYcsbsKnCkBc9nFOIm8HhgPXa14YbbMwXIcZ8uipu897UW ukhspsqN6coDf7Y3jnL2xi437SwgwWFI9V/mq7aHQXbaQ+/BNjgNcIU2UGTF9Wn5SRMk kTkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rmVElpnqL+d6DT1A1PN7w2052IYFt/BLMTqk1R3bSYE=; fh=zhGwMIiXw2NQ+T4Hm7tzEcvbcy3TDPgAQjW6bzKKoqU=; b=qfNp9UYg0VgfdcI8J5Qb+1/Rl7Zs9Fx3kusTK+xVBFn2ybVlPR3PvwZFYgRYZB+LOr QwooPU7lajqyiIuuV+WoBhS6fKdOYXS22Ek202u83GJYlkYiYt+UEX25Etf34XXBL8nR ZgVuXnoyzaYI/a61RJmOYzbFDR1Y6jnoyVtuX1VeEavYzwe1hBTRUEU37vvZL+267bX2 pUmE/fXODLbvfYjfrKBiibRcVqiIxDjdcdPAfvCD7SPVM9Z8xqxu4x7bMxTOtjxNitZT 9zg27lKRnQUpnazJPdVBzUVGS1mnWiwvHFDLBszox81SJclT5OlbID7ihvzxzj0QJ3VJ 9I5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ijj4DS7v; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v1-20020a056402184100b0056173831870si4180559edy.321.2024.02.20.23.30.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 23:30:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ijj4DS7v; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2BD961F215F7 for ; Wed, 21 Feb 2024 07:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 366EC3AC1A; Wed, 21 Feb 2024 07:27:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ijj4DS7v" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6CD3A8DD for ; Wed, 21 Feb 2024 07:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708500463; cv=none; b=ENpym1SqyGdck54CtPZIj2Fm5OTS9G90mxajT7CqDQWUeTtfqzcoPvwjD8OD7m3306gpwiREiUdEGz6lCNhKF9zFLu/om4aWtCwvulZ2Um5H1gQRidiVdIpV5lnW07HmzD9G0pUkBA3Jz57arqzvY17zKCgDyH2E8fyzNjfpV6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708500463; c=relaxed/simple; bh=i/Z255Tf2x8i7s/H6pawdDSPBpzQEqOfG7zhdoGwFMQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tPMYrFB2yCu+O7uhn7LoiiteolFH1C0LrvACyuqP9FhUhXmrcDOnIZfG79BDXEdkkez/Mi6myHaXTvdCW+NKygkUV+k7owuykCop5LhyLljvcdhbdj7FfZX7D0UxzOUOnFj8oeYmvBLbV1Fy1Z//47meLj8hxElKggHMbKUIzBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ijj4DS7v; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a3d01a9a9a2so21154266b.1 for ; Tue, 20 Feb 2024 23:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708500458; x=1709105258; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rmVElpnqL+d6DT1A1PN7w2052IYFt/BLMTqk1R3bSYE=; b=Ijj4DS7vgxV8KcSxDvgCOVqWliccqNzFAIOVo51W/k/4wsPjfTkxy+M5TILNxsPxCk SiXM1W2rbtQmlw/ulp9xZntcfFhtXK2MwOFblEmJm5yfRt7imVE4REHLQ8KE2ab4vM0T sLXKOW/7H97mR1TsXmtMUghvmIH4b/Hu6XG8GJp/VzTzNadRgQLnWN1DAcwguzjMCfV9 P8HFeP+4DFX/QJzxkDHfRewuaTDndax+FDCJfEROFJcLhp5o7mLUicEb+kVRjz3/BiWP P692AdlmZwKwA5MjMDA+tWnq80tqdJmuluKNISIU0jgSa312zl6rlcoFJ9x1qXTAB8vT IRYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708500458; x=1709105258; h=content-transfer-encoding:in-reply-to:autocrypt: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=rmVElpnqL+d6DT1A1PN7w2052IYFt/BLMTqk1R3bSYE=; b=dS2fdDUYsT8sazuP6xmZDRE1AzverjfUb/htWzcovWkGmoITLCsYJbHirGMN+fjV/j VgR3lZSVpGEKhonMZDx3AHjX98PxStNFsbNkABra1e4p5rtXgQ4Mw0iIDP+UVvvOyn8/ z0VPz7adlh7robGCdNecMCCHEl4ZYllq5CK+80QO1iW0g8IKLipT2GWORuGxlCvOcXWX tttG4J+8o6J7VbJIjf1EanhhDqedTSxs/3/f9kDJV0UuDGvhZahvbf33XKBszkYq/Hel qM1zZO++5rj7Cm/0zY2ZffHNxRhqytb9Zdy/j9QOMt++o9+M+Wz+Dok8SNdgo/5ZVMq4 pOgg== X-Forwarded-Encrypted: i=1; AJvYcCWZrPnnTXCOhMkvhW2CKWDZ2ZTeeAnYVAD797ItiWxTzndra6DMHd4vAoEBTEPg4odQnZyQQBagLY5+v6pR3z5MEyZ5UJIFZ/xXz0p3 X-Gm-Message-State: AOJu0Ywv6Bhj1ami6rwNuLXNoVodE4KPH0pw4QeTaaoc/CEaCxMvTLYd OYv9eM5o7M3mbFtwWQFCyFE6reJWi6WYsBpE8Omhmhu1LEtxqChnD+u7OiNQsmyWPlOLSRduDGu d X-Received: by 2002:a17:906:c28e:b0:a3f:33e:9ecb with SMTP id r14-20020a170906c28e00b00a3f033e9ecbmr2629145ejz.32.1708500458415; Tue, 20 Feb 2024 23:27:38 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id vg8-20020a170907d30800b00a3d70dc4337sm4657844ejc.102.2024.02.20.23.27.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 23:27:37 -0800 (PST) Message-ID: <9dc9306b-ff1b-48aa-ae03-3fabcccf480d@linaro.org> Date: Wed, 21 Feb 2024 08:27:36 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v2 1/5] dt-bindings: clock: histb-clock: Add missing common clock and Hi3798MV200 specific clock definition Content-Language: en-US To: Yang Xiwen , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Yang , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240217-clk-mv200-v2-0-b782e4eb66f7@outlook.com> <20240217-clk-mv200-v2-1-b782e4eb66f7@outlook.com> <875b706f-801a-4a4c-8806-411a67c5a5e7@linaro.org> <90e0dc10-8514-4827-998f-15b4d45d874e@linaro.org> <3b6ab055-360b-4f73-8d11-8f52b272b7a8@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8s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s2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/02/2024 18:29, Yang Xiwen wrote: > On 2/21/2024 1:06 AM, Krzysztof Kozlowski wrote: >> On 20/02/2024 17:31, Yang Xiwen wrote: >>> On 2/21/2024 12:25 AM, Krzysztof Kozlowski wrote: >>>> On 20/02/2024 17:19, Yang Xiwen wrote: >>>>> On 2/21/2024 12:13 AM, Krzysztof Kozlowski wrote: >>>>>> On 20/02/2024 15:06, Yang Xiwen wrote: >>>>>>> On 2/20/2024 6:10 PM, Krzysztof Kozlowski wrote: >>>>>>>> On 17/02/2024 13:52, Yang Xiwen via B4 Relay wrote: >>>>>>>>> From: Yang Xiwen >>>>>>>>> >>>>>>>>> According to the datasheet, some clocks are missing, add their >>>>>>>>> definitions first. >>>>>>>>> >>>>>>>>> Some aliases for hi3798mv200 are also introduced. >>>>>>>>> >>>>>>>>> Signed-off-by: Yang Xiwen >>>>>>>>> --- >>>>>>>>> include/dt-bindings/clock/histb-clock.h | 21 +++++++++++++++++++++ >>>>>>>>> 1 file changed, 21 insertions(+) >>>>>>>>> >>>>>>>>> diff --git a/include/dt-bindings/clock/histb-clock.h b/include/dt-bindings/clock/histb-clock.h >>>>>>>>> index e64e5770ada6..68a53053586a 100644 >>>>>>>>> --- a/include/dt-bindings/clock/histb-clock.h >>>>>>>>> +++ b/include/dt-bindings/clock/histb-clock.h >>>>>>>>> @@ -58,6 +58,27 @@ >>>>>>>>> #define HISTB_USB3_UTMI_CLK1 48 >>>>>>>>> #define HISTB_USB3_PIPE_CLK1 49 >>>>>>>>> #define HISTB_USB3_SUSPEND_CLK1 50 >>>>>>>>> +#define HISTB_SDIO1_BIU_CLK 51 >>>>>>>>> +#define HISTB_SDIO1_CIU_CLK 52 >>>>>>>>> +#define HISTB_SDIO1_DRV_CLK 53 >>>>>>>>> +#define HISTB_SDIO1_SAMPLE_CLK 54 >>>>>>>>> +#define HISTB_ETH0_PHY_CLK 55 >>>>>>>>> +#define HISTB_ETH1_PHY_CLK 56 >>>>>>>>> +#define HISTB_WDG0_CLK 57 >>>>>>>>> +#define HISTB_USB2_UTMI0_CLK HISTB_USB2_UTMI_CLK >>>>>>>> Why? It's anyway placed oddly, the entries are ordered by number/value. >>>>>>> So this is somewhat broken at the beginning. It named after >>>>>>> histb-clock.h but actually they are all clocks for Hi3798CV200 SoC. For >>>>>>> Hi3798MV200(also a HiSTB SoC), there is one additional UTMI clock. >>>>>>> >>>>>>> >>>>>>> What solution do you prefer? rename UTMI_CLK to UTMI0_CLK, add UTMI1_CLK >>>>>>> after it and increment all the indexes after it? Then the diff would be >>>>>>> very ugly. >>>>>> I still don't understand what is the problem you are trying to solve >>>>>> here. Your commit msg says add missing ID, but that ID - >>>>>> HISTB_USB2_UTMI_CLK - is already there. >>>>>> >>>>>> I also do not get why there is a need to rename anything. >>>>> Because there are two USB2_UTMI_CLKs in total, at least for Hi3798MV200. >>>>> UTMI1 is missing here. For other HiSTB SoCs, there could be even more. >>>> My comment was under UTMI0. We do not talk about UTMI1... >>>> >>>>> If we add USB2_UTMI1_CLK, it looks silly to keep USB2_UTMI_CLK without >>>>> renaming it to UTMI0. Just like all the other clocks. E.g. >>>>> I2Cn_CLK(n=0,1,2,3,4) etc.., so the same for USB2_UTMI_CLK. >>>> Then place it next to old name and explain why it is deprecated with >>>> comment. >>> >>> Do we need to keep the old name? I can fix all the users (only >>> hi3798cv200.dtsi) in next version and drop this name directly. Is that >> All users in all projects? That might be tricky. And even for Linux >> kernel, how can you do it in a bisectable way? Just keep old name. >> >> >>> okay? Should i insert UTMI1_CLK to the middle and re-index all the >>> macros after it? Or simply add it to the tail? >> Bindings and header constants are ABI, so you cannot change them. > > > This file should be renamed to hi3798cv200-clock.h, it shouldn't be > called histb-clock.h from the beginning. Now I have to workaround this > in a dirty way. What if another HiSTB SoC has 3 or more UTMI_CLKs? Do we > need to add more definitions to the end of the file? The file is gonna That's not a big problem, but indeed shows poor design of the driver and bindings. > to be more and more unreadable with scattered clock definitions. > > > Do you think it's acceptable to create a new header file instead? I This depends on the purpose of it. In general every SoC follows that concept - binding headers are per given clock controller, not even per SoC. > think we don't need a generic histb-clock.h. Each SoC should maintain > their own clock indexes header file. Maybe we can rename it to > hi3798cv200-clock.h and include it from a new histb-clock.h (also mark > this generic header file deprecated and only for hi3798cv200). Then I'll > create hi3798mv200-clock.h header file instead. So we don't have to > workaround this. Best regards, Krzysztof