From nobody Tue Apr 7 01:03:58 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 1673D3AD500 for ; Thu, 2 Apr 2026 11:27:49 +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=1775129282; cv=none; b=WXvnij7WGvYU6FsO4znMMaF7Basu7JNZIZCVEQwxHPJ3AZ/nIH88CRfcNuKFdkugbt/v5ZaX2MC/SddABGWVN/4qoaNIiMueKBx8GsvtPY9yhXDO/q5aQjfEh1+Y0mqBJIMLzDATYL9BnOB3NC8sTLkJmF5t71bGBQ2jl8a5+t4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775129282; c=relaxed/simple; bh=bGWGJx8MkhM629L4Zr31C8nT4U00Cvc66QjhBWFQUbk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GhrV93NxShv6Nw2v3ev/e4BShHPtUmFH2BM52F1+TavUP2mQ19xwQqP0XRVpdqDQ0pqysFxLfY/Y3fN7YjDe9qCmWYG1/NDUmb8mLVSUSaZH8i3hC9x2N3ZiFwQvLh71hR0hhF4kvWWs6fnOhgWUBETPTQgWddvUUYrZwQ1TlD0= 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=bUHfvwgQ; 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="bUHfvwgQ" 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=Nn3QaFo1np3L98e7M0Y1IBqFkF+Jb/kbVUUslInmhH8=; b=bUHfvw gQrUn4FWZGJMwNFr9asnOrs9n/PVtzCRhQ8iqThgvX+dNWBUO1oeVLzXHaZ2mJVp 8kcwF0lsMAiHcdtzpFGalV6XJV57Zej0zVXubrsKkD8Nr4wDXqr7fTx9GtPTCGiB LdBUR4MzJnyl8sBIUcsDZV8WXLpcBLwzsy7dduwKQmf7/40+VQb3xwyzga7KIH7V 7q61iEEIXPWJqHHM4b/nipkYo+RC39SdLtu7xLANBqMmKW6Jn3dMhH2AEKsOqYq3 DstpZ4MxeP1YtmubDyxq5j7jsSfuP/sZl8j4SZjO8V5W0SPm06PxL+ncOPKmXy+L rhIIzCd0k4OJDgbQ== Received: (qmail 2479232 invoked from network); 2 Apr 2026 13:27:43 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Apr 2026 13:27:43 +0200 X-UD-Smtp-Session: l3s3148p1@0lUmfXhOq9BUhsJN From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Krzysztof Kozlowski , Marek Vasut , linux-kernel@vger.kernel.org, Wolfram Sang , Geert Uytterhoeven , Magnus Damm Subject: [PATCH v4 3/3] soc: renesas: add X5H PRR support Date: Thu, 2 Apr 2026 13:27:07 +0200 Message-ID: <20260402112709.13002-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260402112709.13002-1-wsa+renesas@sang-engineering.com> References: <20260402112709.13002-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 --- Changes since v3: none 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