Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1637371rdb; Tue, 20 Feb 2024 02:17:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTjRlHLKegqC/3hH4aKaAjRPbyU2rr5TPkDPoxbYQtRwhDlwXk7pC3cxcKX2Rk87sL3aGC/qGU2CxuM9xRAwX7PSRSN41h1Zpfq72xuQ== X-Google-Smtp-Source: AGHT+IHpkc+m7Et/0U8lo8BwDVfTt19BzD8Qtn+QYDjrtZ/lt9XxndTfIwdmSIlZMUOiPVUfw+19 X-Received: by 2002:a05:6808:2dc9:b0:3c0:34ff:891f with SMTP id gn9-20020a0568082dc900b003c034ff891fmr19674752oib.57.1708424246671; Tue, 20 Feb 2024 02:17:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708424246; cv=pass; d=google.com; s=arc-20160816; b=KvM4ElyJ2ruFL4KPdXPO9ynGAq94q8ja2/a8MN9diRK4xrfjpxqEaRigrmkphtQW+7 rD8Uoh9ylVg3rnO4QQGKRzzrg6GoKoAR3D39keeTcu6A+Sk59y/LbnOjR1e/i8l30bNv KHwUNYVikRWOgg1zulak8hFF2GMWfTrWoeEQKUhx4ESJPXpMda4G5KYpoBULlf/3GSkO wfQm3dRgLARdVIHWu1jPwfWGHPOA0Pazmg0D4rvZ+UPHhK2Xsg8YvVb+d4kSqmZSNT79 PLJ4CQXYhJHavbIG4D95mjQBdHtEn1L2PT9BhZEC5etq4KyOe6BoKB7aXKdgUun6FOpA xusQ== 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=ISdve6kHImTTh0pCEXEVBi6FjNOnEVfHN/D0Hty/LNo=; fh=eg8LR3LskWAARCzQwWIv0o29Pt7oU0mGigJuU8UFwtc=; b=m2xQ+OV+ml1amsyzA8qL2J1G/mTLhx83xGGopm6UaBfWotIdHwG8HHNH9fLWDggQN8 8NxygUHFzNtq7rcosEpqgZZb5kRoIoMMnhCMjN4s7MLP7nB2lm10yecJeemfTWIWBmOQ 7lcqSyPW5LO5Q/KeyiiaLitYxSG6VuXQ9dw5vy4eY9km8pv1zcYA/qQcm48WAoS10JJv 4lT6uqAHFOlISlrJqZKqsm8LudRk0KFxiaJVM+9egrbh5RkJ4xV+Oxfp6MX4kkh8f5zm b+vIi/XCt+6joAt7Qj07hSfJk2bnhlJM25P3y9T3vbB+cWtrYvRTPjInPAz8Rk7qJs3W LZ7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rmn/FW8a"; 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-72802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r11-20020ad4576b000000b0068f4d891893si6818617qvx.253.2024.02.20.02.17.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 02:17:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rmn/FW8a"; 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-72802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72802-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3A2081C222A4 for ; Tue, 20 Feb 2024 10:17:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8BD561663; Tue, 20 Feb 2024 10:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rmn/FW8a" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 BC7F260ED2 for ; Tue, 20 Feb 2024 10:16:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708424209; cv=none; b=bdopkC4vvyuF45WXp3azUJ07vWX8VfU9cP3YInL5/t7VSFC5T4OjMfpZtNF+ch/xSrXDBga05bocZ4VXebaInDHL6ovwkOXPdaz2wN2fuK7f4yZ4Yba6uCG1A6PDxK5Gb52ncgQ5QOGWfUOqrH9yIT4uECx4yE2TMf91nh2xYbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708424209; c=relaxed/simple; bh=by5Wm/Wwl7lGUcPcc00U5JZPb531MlkWfFxyw7bgMKA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b3N9VJ7/kT4hus6gWZAmMp4UJGC0Byur+XWn9pJStHLvKI/OyYuLYp5WLI3Nbo9T4y/BiOUN+t7hhZ0+Q44KKl3fm2bmn6H81eno+gj/vdhStxTdpIWBOtt+klAMF+gu2JJ+RdAkcLmeiAk5zTpqbY/Nqv2a3HgyBAycE0YTfZM= 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=rmn/FW8a; arc=none smtp.client-ip=209.85.221.51 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-wr1-f51.google.com with SMTP id ffacd0b85a97d-33d375993f4so1345755f8f.1 for ; Tue, 20 Feb 2024 02:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708424206; x=1709029006; 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=ISdve6kHImTTh0pCEXEVBi6FjNOnEVfHN/D0Hty/LNo=; b=rmn/FW8a0sciqO949Evu+fD9KLXxosZosG9b7qKLQCneXy/FJbl1JLzRStEgHecTEd QHfoct3K0eW3oFE7Kj7oNr6c25lEW78bajwkQgT8AjSLf7GYMrD5CkIN3a8NPDWvZ0ac ySyVh3XFtXnaIb3t8doBN8cy87vKFKjiaIONwkSTi+ZvqoCCavlLMeP1pkrvq/Gf7Q6h fITnC33E4uw/tGjAocpXginE91pamMJDv0KnWiM2GhFV67/8cR0y5rk65GqlNiXU+QlA 2VCVbcp4QJuULH1R4IuysbWC0kgH3feFrAJx2bAJFfd5cW1FqPrHMzx9KQ751qMvKR/y FzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708424206; x=1709029006; 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=ISdve6kHImTTh0pCEXEVBi6FjNOnEVfHN/D0Hty/LNo=; b=nR3Q6SWQRT2/QeruEPPddAl+QmclNE008vLK8wyaIaj9zAA3yILaYHI8KCKoYtavdK ZBG0xmL+KyrhIw7nGHAiylltbPYrAMxrcJgGgz7KlIhoAUKhIaLR5D10pAGXJxoPlomv 8dwCvwfQR2iEmV1uI2L+Bmdgt57Yu7GZoSAw/5VYF0qgbNWmQlofeMvPr125GfwcbHP0 5EaYwNmeIN4TvxSzmaQoCoGyq+rVz+Th7s/qKh7r/2ujLy/PWu3X+5Ee+hFLHR5HU301 UrgB0qVZbWWZRvEjm5NdQi1vopBBANMyDYdQsT65zkQr+x8Tlqde6sRljA8KJt1TMo5M 3B0A== X-Forwarded-Encrypted: i=1; AJvYcCV16vxO35M0KE4LphbeeRbDNRP1ey18Ujf7h9Hua0/Utm/RJLKKO5Okc6TWMhJ2qZ+OMk7F9LPbx0lKbzz5iUv8DMMzqOzXZ/GG5zYx X-Gm-Message-State: AOJu0YyTPjqI3VKgpV8DTc0EGj86hCTmSlzabBGxLXoHediCtcRTNdeE FB075GTWi0CENEMhHymI27acg+fFVgf+ZOnPkqtQH0UVC1fBagmWfdBfMkD897I= X-Received: by 2002:a5d:4389:0:b0:33d:3b83:6ca3 with SMTP id i9-20020a5d4389000000b0033d3b836ca3mr4451713wrq.64.1708424206134; Tue, 20 Feb 2024 02:16:46 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id v4-20020a5d6784000000b0033d39626c27sm8491785wru.76.2024.02.20.02.16.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 02:16:45 -0800 (PST) Message-ID: <6fa7119e-bbde-46a4-b556-2845ee2fad5b@linaro.org> Date: Tue, 20 Feb 2024 11:16:44 +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> 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+WmLg++C2Wct6nM Pd8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H6b4jRBOgJ+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 11:12, 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. >> >>> +#define HISTB_USB2_UTMI1_CLK 58 >>> +#define HISTB_USB3_REF_CLK 59 >>> +#define HISTB_USB3_GM_CLK 60 >>> +#define HISTB_USB3_GS_CLK 61 >>> + >>> +/* Hi3798MV200 specific clocks */ >>> + >>> +// reuse clocks of histb >> Don't mix comment styles. >> >>> +#define HI3798MV200_GMAC_CLK HISTB_ETH0_MAC_CLK >>> +#define HI3798MV200_GMACIF_CLK HISTB_ETH0_MACIF_CLK >>> +#define HI3798MV200_FEMAC_CLK HISTB_ETH1_MAC_CLK >>> +#define HI3798MV200_FEMACIF_CLK HISTB_ETH1_MACIF_CLK >>> +#define HI3798MV200_FEPHY_CLK HISTB_ETH1_PHY_CLK >> I don't understand what do you want to achieve here. Clock IDs start >> from 0 or 1. > They are aliases. A friendlier name compared to ETH0/1. Fix your email client, so it will not remove line breaks before/after quotes. Your email client makes it unreadable. Aliases do not bind anything, so you can drop these. Best regards, Krzysztof