Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1841123rdb; Tue, 20 Feb 2024 08:28:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3RkljYAdilKFLEVd0SaNIsofGEOIW3+okhzZ8iX17AjAi6JYrINtLn1V+wvd0FE+EMkZo2KGV8JqwBv0iyfKPH0KxrvnH0xXXJ9WsaA== X-Google-Smtp-Source: AGHT+IEhd1tDzGdGfTIULssy6yFsJ8CnGUd2+r+nv1fi/pyyzoPSTDudA3WUwwmlQtOrLIPDMaQS X-Received: by 2002:a17:90b:46d2:b0:299:4a15:4a36 with SMTP id jx18-20020a17090b46d200b002994a154a36mr8317228pjb.35.1708446510632; Tue, 20 Feb 2024 08:28:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708446510; cv=pass; d=google.com; s=arc-20160816; b=aQa8w5bz67dNfYU0POaKN6M1pJ/OTq+gXBXKP2ODhuGwIf1yHAHJ/MBEIha13N3w8K 3jnPho6FSieoQqBeRh0li4WEIt1m02JCWbtcPpK1ooz3ymXkrolRCCxNh2vyBad66NWX yholeFk42bfh1eyFaMKWulg/KNtpFI8xOphqVxbbpyqn0sT8FImzs/PchLVvKzALPw6k 3BnZBdnlmEymgwNrm19Ey3/cDXWYhPBCEmPiFt5/UKrC9x+qsNN2W7Fqio2rP0tQY5uF JGrPJIY+q7hnfYOKdGcESrHEW8Zwyl8OptueZoR6tKCqhS831mt4K2arXCQc+8y/di7H 33Ug== 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=OZ8v8X2fbB2BWapJA2Df3qbqU4Mifn6M/QSqXXZqY7c=; fh=eI3Eg2tTDNxw0INaRR5jTI0TdVpgcM1oSOkcxLVVQh4=; b=U7ucU84dNcgqISy5u8/+YDSqYR2eSLHfQQ6EjYhBtgdBV/86NPSva02hgkZfN+yLuR kbF8lJ7d9GKZFsrWpmhPnQoBiFq1LQVRCt4WizJcZsJsyqeyQRFsAhEOj3xhvdU6oG6V 3s85iGNrV9G2uDgf9kvbPriWK8Q7/OeMSG2y49i6FAH3hP+1ViW8NdJnRBp+bbfn0JV4 hcVgxLLTzQAbHHZ8XhfN4QG3hcELk4S+3ZemrhmO/DPLRj41vYfb92RXAcXO6hfxZDMx 1QtfzMWzXVgTev5d6aK2NyM4fztBdts2CqfZr/2HOrYi56Cjs88rIstqyd/q7yzca7lb ipwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UHldAhU6; 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-73353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cz3-20020a17090ad44300b00299dfc862dasi1321564pjb.24.2024.02.20.08.28.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 08:28:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UHldAhU6; 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-73353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73353-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A01B286799 for ; Tue, 20 Feb 2024 16:28:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5242C79DBC; Tue, 20 Feb 2024 16:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UHldAhU6" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 620CC79941 for ; Tue, 20 Feb 2024 16:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708446361; cv=none; b=B/FbmwQKrSkSWSATuqCtP/U5wWls+3TZCPnSO6Wenbk5s+uA40BDNddOlx4QOhYabLJ77n+EDs96S/l2s13fJEtvnRwLyRFFhcsJVJro+jsDYR9jayVO517WJwlohSSPGmA3su6UEc6JZHqtze2vmVjrLXKz0+kMjE7znXQCJUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708446361; c=relaxed/simple; bh=MtNTYYK+6+28ekFQX5xbREmMjtYbjCbTHU3QVy5WdIc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qmnzHEcipZj+KOhGKYgG3nlx0oIIoETdNj85+wC6lMsj1TqlhHjSlKvl2hh9jxqb3vg4s1nV3laEAtk6VG3IGc8gTf0NaK08OmHwl7qtiNtBiNwZQehkhsX7F2Ykw2w9fkCFgJ8M3cTX6vA7WUnXzi1A4QUQ3T6r6QEQAQU1PTs= 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=UHldAhU6; arc=none smtp.client-ip=209.85.208.52 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-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-561587ce966so11379068a12.1 for ; Tue, 20 Feb 2024 08:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708446357; x=1709051157; 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=OZ8v8X2fbB2BWapJA2Df3qbqU4Mifn6M/QSqXXZqY7c=; b=UHldAhU6ftxK6UX4+A6zg4LTvsoATzfSmv3gob3hG+ZeTcuFzpo8I+wt8TP9qtP/bt bHqp+hurSNdz5tBp8nNC2rYnkGJ51/ef8uRNEdjZEMy7Pl+A5Vdb93Yz7uHpYOieawp9 PSGHOhnA0f5qkNt+eyaPuBWvw6GQ5Dl5foRVguQ2NYRlx52n6Vs0SyIST/Fbi0r0KOLN FVQ7KbNumw4kdN3maIu0gkf3QLgC+Gwzrui77O8B8LfV4Lslv/r22Uo7b2iIo4l1enyX x9XAeKi6TME19CKMpxYgS9gLzq6AzaDh82nNn8vlxACLixXmN9T+62Ku1S4+AYC5aQir 6d8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708446357; x=1709051157; 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=OZ8v8X2fbB2BWapJA2Df3qbqU4Mifn6M/QSqXXZqY7c=; b=pTkcLKkedyMdHCs4mMTWWZ96JS1eLEIDODqA3uwdRTKHwsjhPIDVIU+xkAy0K4ajsi SSYsBM/ERcICDwfwug9IZWqfr9+GjRNvlHttRrO/wUJOS8QIJ7euvXjQ9PpdNXW6T1Li Q9KgFm64WjG9tTvS2VVLJDzTRzkzj8nad3XEwZmHbooC56kT5Xpr+ZZ4d/jDllCI77WK xzc7hWyJ/3sQE+S4FutaFv+HwPAtbE3mGpj8lFNTbO2dk8JJ3owtqLuh+0iElbEZJUoI D8nhcplDqulTLaW/fxOrM/hkDeEGKSif4isYZkt9szrxdf+r5Bboc2IsRStUpiDNiiza H+GA== X-Forwarded-Encrypted: i=1; AJvYcCX7HD2iZUPu0IaIfc2h+IRU94LpCvSq/5W8lc6AdH26xF8avj5d+rUrMPesJ5oYVobqCYXUsgKH+DV0xXh2FlDLaYGJtlZk6Za+pxXw X-Gm-Message-State: AOJu0YxfQG6d/KZQjX6AIaORfrv0AxeIObX9+6gTZGZXk08xvI8dVeWe cuEZkm+4R8AoDPSzJkcDIMLedEgcLv0QJSGndcy245yQrpdP0wCDwZRmlytbVGI= X-Received: by 2002:aa7:c908:0:b0:564:b94d:70df with SMTP id b8-20020aa7c908000000b00564b94d70dfmr3036075edt.17.1708446356733; Tue, 20 Feb 2024 08:25:56 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id n11-20020a056402434b00b00560c07f986asm3759697edc.58.2024.02.20.08.25.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 08:25:56 -0800 (PST) Message-ID: <3b6ab055-360b-4f73-8d11-8f52b272b7a8@linaro.org> Date: Tue, 20 Feb 2024 17:25:54 +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> 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/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+W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qEFdqGnJQqmEApiRqH6b4jRBOgJ+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 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. Best regards, Krzysztof