From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.117.254.33 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796204795; b=g++CvW16Mx8SC2/Fzdm3hvvoPQ1ZtZzUwKLFuQj33cyheipuV3rqE6rZDNXwenh0eb6T 0pGr6phXPf2SLjlDk3wf8G4XpyQobAxwskW1FXCIAoexeN3VwFZq+3MN+3au8NSqJtEg/ kG5LyEKdfxRYRA5f9NhC70ETjd+I4Ww3Cd/tYaFC+E9Cn5ShpcNkvblidGY+EMte5rget ZRk7cMJB934sm2Uz1ZLOcB5InfTHYtNao1/uLbwWi1GTcxouaGgy3XcXGv0y1Ar5RlU7I 4+eYdn0CzW50MY1OJLyxm4iNMew31e8eLZHE49MR1q/KEvqct1bA6xxk16JQQRX5HKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796204795; h=DMARC-Filter:DKIM-Signature:Received:Received:X-UD-Smtp-Session:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=ydRpuKwVYmJ4dEqMXyqowf1q10yYfdccWtEHytK+bOI=; b=iUcz/PTNDAZ16MxLes36zGsbYM+ByuQ5xH/GD/wM/3quMX5rC2RCdoC962shjtFKwBu3 wWuxMYvQPXnPeZW55zjU1kI5bijQWasGpiqJQzf51+iE9s2gLgq8qQpXutCtsOBu6K7D3 Q7dUbvs3AGL4hSN0G6x6YS407aNNylT5J3/BGeidv0uagbs2LDEwjnM1k5khc1ijYgAVD whkf3Fyn26r9kQIJwmybxq1Jo+2Rf8bM7VRXfDr2Teilwx+k4cJ7QZyjD0qCPmdisCure jDcoaSwTWhDETjkLrn1MpIL4lOa/kag1kf29GHJfwBzrO9ndGah4EVMrMYzmCDGOC/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b="U/+ss3/Y"; arc=none smtp.remote-ip=194.117.254.33 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 05C70606A32C for ; Wed, 2 Dec 2026 09:46:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 05C70606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; 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; 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-Mailing-List: arm-scmi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be> 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?