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=Jk5urS1mQVTUofoQMO3ynj016uuOoFXNYRZaZUewNxMHg8/kpXEzL43qAbbwWuuWMnsV RJy6uAhc4sGhfZlN8RHj0QEE8d9IlbFZ1Ymi8x3yAi9E0CIyD18x5OCmTdsIyh72/tcie K+oZkIISKNSTZTVYimYfqZaJHM8pFRwlnz2PlrWoaWskSAHeW+3wbd4pys3ryJHz82rFg R8SrNwsrUjIhECci+wCfN2n0OlYIipvrHwlNIfn4UfrZg+ixzJj1CVkIo+jCx2YDgESRW TTcyh0vsBIBc4THjSwf7Yklb4XGqPVPNFvC1KvQp1KEXnenBFOn4aehxFKB7fTKFzlw== 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=fsok4hZ3eNFxjvrZlbWr96L/1b0DltE0awN/mexNGGjpLaZKSAYQPTNn3tDreu+oFKbP gWS49bTPFfFDcAFXiiomi3HNeJBQATCt39Qtnewi6j6xr9RJ/0sxrCJagHFr3OReC5In1 klTKM5Lyuwu5mtRSFH8hNmPASHCjw+ka8L2avqfcmQ1lDSWvI8DWzjrgDgKWCX/pMxteM O0Y3RGcRTlbhu/HAnWjb/9DS4QlV6SDfQSMqDpScyY48kyrLRIz3cW3qSrRg0MlPeIu2d pgDRn2LrG4+49gUpEWZf1alEzkxEUoNAUdJZnRC6LmZCot1jvH7f9t/fKuym4ELOb8Q== 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 AFEE0606A329 for ; Wed, 2 Dec 2026 09:46:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AFEE0606A329 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: linux-pm@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?