From nobody Thu Apr 2 17:21:43 2026 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF58D3FBEBA for ; Fri, 27 Mar 2026 17:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633375; cv=none; b=mIQaVGpbRhlt/prfCF6EGTpCWmjVmTwGHLeZiwufDzEfLSSJXqksH8qH8Y4WvxV2OLqVmOoQqIOHPAOCX4eq756vK+iPYAjzRv1TA5qJEhk0g/7kXWsctTEwhMtRFN+fNmnWqUWjw7v62OjAkz0JXE301UpBydtg6JGhorURhh8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633375; c=relaxed/simple; bh=t4SSfXHIac8jCT5bDwrO5IN+FDjym5opOhoaI0NA79E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sjNfqo0ip9dPRu4OygxMVf1XYYnkmhS3Eh0mFWmicVvcohqvjunIygItrRwM7r8lPxz4x4aHFfPrcAbWNiUTRkbZ4Vl/7p8elA/9R5QFhnCcePUOLMx93vdk+i9BtT5Z1DDDwBccyyC9lIHD1u7bDaJVTq4PO57pcsVtoTOZyYw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hgm7UYpM; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hgm7UYpM" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4852a9c6309so21627215e9.0 for ; Fri, 27 Mar 2026 10:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774633371; x=1775238171; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=90Ymw5BXIdj4erWp17W/x/NFuWNsVOK/0ZIwzA/B/wI=; b=hgm7UYpM3Lr3OHlGDFV0Nzbv9iCdjypfeK1yE8VtgICwuCn9gPYtvENpISWS8vnC+4 rgoZE1WCCaMOyQahyD9H97l22LkjKig05wi5sxbYaq4NKQytg/J2qRplZnQ4NGquBHn5 AsG+53O3JIJifs47eEFJc5r7LrFA+jvQ4dWLiZRb+ImPZMw8M92IsFC35/sfO8GdUOQJ kylDAlsWembYcrXQifaqAZD18b8U6A5UGSDTvlqXeLbEihDo5D6e48G4LAVZ0QIJog75 itB5sCEb3VJAUO86ORJ+3GpxKUEwzISuJGj79VWxNVl85J7/X6yz7L/x+pUER6OQwd5G vvUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774633371; x=1775238171; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=90Ymw5BXIdj4erWp17W/x/NFuWNsVOK/0ZIwzA/B/wI=; b=KStzPo68i4VTiSpXYNNEijtAcwLN8BLIWp1AFjijbtyjNJ3YDlHB8wVmB8k5fJFjdz +VVEUR/8udZ0b5K1viS9krKjeBQRpDvEeDigK4u1/PdTT6XQHLlnd6qJma3nzUrLL0Vk ussErSVEBqGylHKQuo/RrkIDhjRNqfqg0SlR1BNQU/qTOCXJBnFJCjy2RE1+GB53Cz2X sr9GWA1Xp3ZY4okZcIzT9UgBkyILtbhMewB4UqK5iRJzKAiOXYCRXbH8M/Ac4apjInav i+yc6Fb+CPMPMzuLCqNNk402Z7czHt93C86ZfpHsoqBcUGbuHt9EBGXvfcHRe19ofi03 hwKA== X-Gm-Message-State: AOJu0YxXkUbfzBp7pPwncRppoEjJBc1mSYKBVBDkLDzX0WloqJMNmo04 6D+2CEpny0a7+n2jDrDTGcXxmFy2C+LJadXUa5SQmJb/arUx71dTIVVb X-Gm-Gg: ATEYQzwscZguvOOU6HSa5eyN0zU6ydgMflv86xkFm6Oh3T1M8cvzTf+QlbQ0x8c/mY5 pb6/pNO6opCbNnhI406sm6BoB17Eqww6r0TXJk/WqwmEwMLQVbPRYI5gizOvOE+QwrVkElj7XFz VXdJOqbleDrlX2FnxtWIVhbF6uECGYzYYahkwxQnWbzbKKtW8FAQvkWZwf5M6dqIO8DBTipvdTV lDu3BLpev9OMFg8bY+4VZ7G639fRgvcYCAo912HzICn4kXKa6F0KGCNaS1PWuA+jF9Y/ecsGm4C cr3n8EosFX2SV0DAIemWsUw2r3uUXmhH+0hvJUOY/eHTNseu53LVEPoeZaHmLMHSKdFguV8myJs oIPKLyaW/SQZVU9967acN/B/Lz3X73sZluBG+4mSFv/Bim+rqvW3jGiMiqKksGEwx10qYvEg8Ti 6suIpaZTwUiAjjHEPSPOLEt3XI9R1lI/pAYyPKMyjuwD+8WvCv4FB+rp4dzmckFLqdz52p1YmEb 5n94x0kMyn/hquaUe7ys2ulK3U6FGSe0OvJLksjN4x/rtU= X-Received: by 2002:a05:600d:7:b0:485:439b:683f with SMTP id 5b1f17b1804b1-48727f5fe73mr44646895e9.20.1774633371241; Fri, 27 Mar 2026 10:42:51 -0700 (PDT) Received: from iku.example.org ([2a06:5906:61b:2d00:cad3:5596:28d0:27e3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b9192e528sm15965933f8f.1.2026.03.27.10.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 10:42:50 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Biju Das , Wolfram Sang Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v2 3/3] memory: renesas-rpc-if: Add support for RZ/T2H SoC Date: Fri, 27 Mar 2026 17:42:45 +0000 Message-ID: <20260327174245.3947213-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327174245.3947213-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260327174245.3947213-1-prabhakar.mahadev-lad.rj@bp.renesas.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" From: Lad Prabhakar Add support for the xSPI controller found on the Renesas RZ/T2H (R9A09G077) SoC. The xSPI IP on RZ/T2H is closely related to the RZ/G3E variant, with minor differences in some configuration register bits. As these differences are not currently exercised by the driver, reuse the existing implementation and regmap configuration. Signed-off-by: Lad Prabhakar --- v1->v2: - Added xspi_info_r9a09g077 for RZ/T2H with type XSPI_RZ_T2H instead of reusing xspi_info_r9a09g047 with type XSPI_RZ_G3E, to allow for better differentiation in the future if needed. --- drivers/memory/renesas-rpc-if.c | 11 ++++++++++- include/memory/renesas-rpc-if.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-i= f.c index 3755956ae906..347650698424 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -211,7 +211,9 @@ int rpcif_sw_init(struct rpcif *rpcif, struct device *d= ev) rpcif->dev =3D dev; rpcif->dirmap =3D rpc->dirmap; rpcif->size =3D rpc->size; - rpcif->xspi =3D rpc->info->type =3D=3D XSPI_RZ_G3E; + rpcif->xspi =3D (rpc->info->type =3D=3D XSPI_RZ_G3E || + rpc->info->type =3D=3D XSPI_RZ_T2H); + return 0; } EXPORT_SYMBOL(rpcif_sw_init); @@ -1142,9 +1144,16 @@ static const struct rpcif_info xspi_info_r9a09g047 = =3D { .type =3D XSPI_RZ_G3E, }; =20 +static const struct rpcif_info xspi_info_r9a09g077 =3D { + .regmap_config =3D &xspi_regmap_config, + .impl =3D &xspi_impl, + .type =3D XSPI_RZ_T2H, +}; + static const struct of_device_id rpcif_of_match[] =3D { { .compatible =3D "renesas,r8a7796-rpc-if", .data =3D &rpcif_info_r8a7796= }, { .compatible =3D "renesas,r9a09g047-xspi", .data =3D &xspi_info_r9a09g04= 7 }, + { .compatible =3D "renesas,r9a09g077-xspi", .data =3D &xspi_info_r9a09g07= 7 }, { .compatible =3D "renesas,rcar-gen3-rpc-if", .data =3D &rpcif_info_gen3 = }, { .compatible =3D "renesas,rcar-gen4-rpc-if", .data =3D &rpcif_info_gen4 = }, { .compatible =3D "renesas,rzg2l-rpc-if", .data =3D &rpcif_info_rz_g2l }, diff --git a/include/memory/renesas-rpc-if.h b/include/memory/renesas-rpc-i= f.h index 53663c4e5ae3..39810d2db095 100644 --- a/include/memory/renesas-rpc-if.h +++ b/include/memory/renesas-rpc-if.h @@ -62,6 +62,7 @@ enum rpcif_type { RPCIF_RCAR_GEN4, RPCIF_RZ_G2L, XSPI_RZ_G3E, + XSPI_RZ_T2H, }; =20 struct rpcif { --=20 2.53.0