From nobody Tue Apr 7 00:44:51 2026 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 730F23CA4BA for ; Tue, 17 Mar 2026 13:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773752820; cv=none; b=C7fSs7xJNbJo77UEqJ9Ew4i6EGe2rSngR+lDbC72hQmNEzBNStoAYLLyD/EinkU+T1rrpybGufC8JwUVdWI/6uwx5PBrmN/a6fXG1UQtIWoDeF6Wfxu4JeaSrgxnVln2ZWKHv1f99A2E3cOUopcpUTB/VBEDskC5aSGbN8+tpVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773752820; c=relaxed/simple; bh=Z6SEu1iR0OOJVNDnzwLH7jOvHp/9H66QVURaeQ55kqA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=snsptrXESIZOBWM9xBvrajXT+qBzZI56y0oRj8miK792B5A/FlIs4pDaqknhW9mnis2mxrDYy2w7qI5YO5EHdKDtxFwVGPsg52S/zzCKhAfkowM+eYZMEe/3C+kkecF0v8O0pAFDFuD2i1hF2VFsT+of8DrLMVAVr31iShZGXq0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=OBEMeRuI; arc=none smtp.client-ip=194.117.254.33 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) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="OBEMeRuI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=66cafDy73BMhGTMwKqMyviHzFurY54vde5tII7vbsUQ=; b=OBEMeR uIBD3GYHLir+BELJtokKcd6c18qIX7Om/WwRHUjwlfT/N4YGZm9pSiCmVxeND7sU vALxLdvCGGTYJPPrTdC0Sow2P1UlzM/QSHtQ+7aEEa932LBIjA9D0TvZ45C1rkl7 FKfFZp482aYvFzPYcegwD4EbNRKy7X+dXTSjEUYBTEBnFWRoXzOZOENBOntpO0p/ eDVu+xD6iZHhz9Xl0NERuK8/V2hlpLIxOugcEMMeKYPMvQLv+IQ1ftHsfE2X5ciO J+saMkVYLhYXl0rIMJlEvIRMeeguJNgj0JnI7OK+5kLLXdX+tMzFd2iGY8Lqgjya BdOgACsmnlTV3bQA== Received: (qmail 287691 invoked from network); 17 Mar 2026 14:06:56 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 17 Mar 2026 14:06:56 +0100 X-UD-Smtp-Session: l3s3148p1@5wuKAjhNWrQ+XdJ7 From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jassi Brar , Wolfram Sang , Geert Uytterhoeven , Magnus Damm Subject: [PATCH 3/3] soc: renesas: add X5H PRR support Date: Tue, 17 Mar 2026 14:06:36 +0100 Message-ID: <20260317130638.2804-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260317130638.2804-1-wsa+renesas@sang-engineering.com> References: <20260317130638.2804-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On this SoC, PRR is now inside the MFIS memory block, so we need to access it similar to e.g. RZ/G2L. Suggested-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- drivers/soc/renesas/renesas-soc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesa= s-soc.c index 38ff0b823bda..60b09020c935 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -442,8 +442,14 @@ static const struct renesas_id id_prr __initconst =3D { .mask =3D 0xff00, }; =20 +static const struct renesas_id id_mfis __initconst =3D { + .offset =3D 0x44, + .mask =3D 0xff00, +}; + static const struct of_device_id renesas_ids[] __initconst =3D { { .compatible =3D "renesas,bsid", .data =3D &id_bsid }, + { .compatible =3D "renesas,r8a78000-mfis", .data =3D &id_mfis }, { .compatible =3D "renesas,r9a07g043-sysc", .data =3D &id_rzg2l }, { .compatible =3D "renesas,r9a07g044-sysc", .data =3D &id_rzg2l }, { .compatible =3D "renesas,r9a07g054-sysc", .data =3D &id_rzg2l }, @@ -501,7 +507,7 @@ static int __init renesas_soc_init(void) product =3D readl(chipid + id->offset); iounmap(chipid); =20 - if (id =3D=3D &id_prr) { + if (id =3D=3D &id_prr || id =3D=3D &id_mfis) { /* R-Car M3-W ES1.1 incorrectly identifies as ES2.0 */ if ((product & 0x7fff) =3D=3D 0x5210) product ^=3D 0x11; --=20 2.51.0