From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1078A606A325 for ; Wed, 2 Dec 2026 09:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=OUXzybVk; dkim=pass (2048-bit key, unprotected) header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b=U/+ss3/Y DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=ydRpuKwVYmJ4dEqMXyqowf1q10yYfdccWtEHytK+bOI=; b=OUXzybVkxWLI18j6LpJKdjMEO6 73mNl6zsBcJYm4cHnsg4/I+pWwj1XJ6z6qkVI9C6taqDfiz1EXqHZbrc2RYp32sLMiqpt65jF571q Xaxv0tMArCsT7p5RC28I6HRsdTmmMXPwFMAH6utR/hdDvALQFZyUE5sr3vWLDpiB4kFsyeS5etZbf U14aQIO5H9PVSr8mWZ1oK/R3KH+VqKqsXbhqucKxcNwvOIayKkaSXRsVhsS4TUWE0uGLJcrw+ysul ipXhSrqKXwtC0rdKyAuph/9A2GDlEiOP8H0y0chgvq8CZGvKEDdHApyTvahefAdCDY7f/j6LhdH5j svMNnlCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgv9-0000000Au6h-0gFR; Wed, 02 Dec 2026 09:46:39 +0000 Received: from zeus03.de ([194.117.254.33] helo=mail.zeus03.de) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgv6-0000000Au6H-1BUa for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 09:46:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=ydRp uKwVYmJ4dEqMXyqowf1q10yYfdccWtEHytK+bOI=; b=U/+ss3/YzkKejaRdtKDh JY4ooSIJk/U9KsI27dv/+HU630APUgLhNbmEEGQKErpXUxEJHP9/APQEVvhEHCJH vGL/AH0sOlgSwL/oSbMw5TNggvcTnZcdK3Ylxgeq1Aqb+V+oXHItnwV+2EvHywt2 yjXOMDg0fHye6nq/BAOqT/iP63fVGhoNMTmx1iPPFvDFPWiB0B9uzF9VmsFMSfUe OBkdeiGUvqxI5ed8yzinl1FjeFuRv3yo90c1Nna6E8FmfebXLBekyZlW4sAvXvyl MVihpGgmyFwJSPsdDDW6q/QcwRPRD/l9iO7HXsvoTdv8EfDK3F+eC37vngO2opCf xQ== Received: (qmail 688049 invoked from network); 2 Dec 2026 10:46:31 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Dec 2026 10:46:31 +0100 X-UD-Smtp-Session: l3s3148p1@Ob+EhKNhGOMujnvT Date: Wed, 2 Dec 2026 10:46:31 +0100 From: Wolfram Sang To: Geert Uytterhoeven Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Ulf Hansson , Philipp Zabel , "Rafael J . Wysocki" , Marek Vasut , Bartosz Golaszewski , Konrad Dybcio , Kevin Hilman , Vinod Koul , Kuninori Morimoto , Laurent Pinchart , Paul Elder , =?utf-8?Q?Cl=C3=A9ment?= Le Goffic , Sudeep Holla , Cristian Marussi , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: Re: [PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI remapping support Message-ID: References: <59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_014636_617078_9A97A0A8 X-CRM114-Status: GOOD ( 17.38 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 02:12:36PM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > Extend the Clock Pulse Generator driver for R-Car X5H with SCMI support, > to remap DT clock IDs to abstractions (clocks) offered by the SCMI > firmware when running on a system with SCMI, and SCMI support is > enabled. Take into account some peculiarities of the current SCMI > firmware implementations, and fall-back to fixed-rate clocks as > replacements for SCMI clocks that are not available. > Support for bus clocks used by serial, I2C, and SPI devices is included. > > This lets us avoid putting SCMI IDs in DT, and allows us to use the same > hardware description in SoC DTS for systems with and without SCMI > firmware. > > Note that fixed-rate clock IDs are now offset to maintain a clear > separation with the SCMI clock ID space, and that the default fallback > map is now populated using a macro, to prevent accidental inclusion of > SCMI firmware clock IDs. > > For now, it is assumed SCMI clock IDs are stable, and match SCP FW > SDKv4.31.0 and later. > > Suggested-by: Marek Vasut > Signed-off-by: Geert Uytterhoeven > Tested-by: Wolfram Sang > Reviewed-by: Marek Vasut Reviewed-by: Wolfram Sang Only some more places to add a 'r8a78000_' prefix if we want that. One further question: > +#define MAP_FIXED(id, rate) { id, FIXED_CLK(rate) } > + MAP_FIXED(R8A78000_CPG_SGASYNCD4_PERW_BUS, 266M), > + MAP_FIXED(R8A78000_CPG_SGASYNCD8_PERW_BUS, 133M), > + MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_BUS, 66M), > +#undef MAP_FIXED Why the undef? Couldn't we find a better name and keep the macro?