From nobody Thu Apr 2 15:39:12 2026 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 5618B37754E for ; Fri, 27 Mar 2026 17:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633372; cv=none; b=o+Djj8jFIrn8UoqLbD8bO1FvBwJ9tYZDh5yrWB+i41Hh77dX1hB1UXXBNWSgUwZBcW314ZumEbsd90+UDohW6iY6n/d5t5Jikc/s2m3jg7zl1KtA72XNOZErTPAUd01OEAMCecbHnmtLYUXZIxz5QSov2SsQ0+VAp/mH/aJ8a1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633372; c=relaxed/simple; bh=n/SigdKyXTHXAMOgdOkyYoCjrKeCCVOvmY9wB8H71tQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=egEfBBArMoSGpRHQYmd0QWTJPNd11oFM74I/1gzFoU/kVX0pI4r1fy92sdoTgD81bJ1t/heRN5X2S4icrdX2LCZm03tY1p7fSreU+lo9sC8d1vr9EmSfwvF1XfEXr6MuUGxBe3rwMDJBEnKhRiyOAuOVw4DgBosZaJEwXC+9ysM= 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=UKSOcbl9; arc=none smtp.client-ip=209.85.221.53 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="UKSOcbl9" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-43b40fb7f95so2057852f8f.3 for ; Fri, 27 Mar 2026 10:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774633370; x=1775238170; 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=VH3wFzr09f4BWW4HDYRhxglvtqStayE7wEn/6/CruX8=; b=UKSOcbl96vhqeSAzYGgkmsBQhIwxl/VG2DzbXXfSprmGSxV24tBoKFyGHgWP1J6zcX 3wWDMszdnbmTH8v5jwVEAtstM7nPB5mcMre6V1QMxKFygMxXmLcM2vy12l76sNDUyYnn P94RTNvGsaEy7pRX73f6DYawxTcg+HND+mY3doiVXyAsRAvE5aRveGZaNS8zvEUEf/oX JktP2htCpH4dwGHNgkIo8K2N/Vp4hCoFmahnDdWVAvWbd1EdQHFxprSqqt7oa8NdCA95 o0PhvgT/jEhkeVaef+0vMulDGCkeNyJSWYjSgHfVnHMRr9FnnlQ/qA6Z/hLTiD86GY6k mQFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774633370; x=1775238170; 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=VH3wFzr09f4BWW4HDYRhxglvtqStayE7wEn/6/CruX8=; b=T12eKQEh2KSEBREVYD+ekRDxwN2cA0Sjd4OrjpdY26uxu1NVzuY00j/pXHFh7WvDJ7 a7Lg725qBU69eTc8Y8UAY6sqTA+kJvcHfTel+ImR36fsrzw4ciasuCLELcc5nL4aW7op bBVWR/D/vwWcSX/cT5Q1iMEpj6uKcxdUKfcOL+V7TrXO6kwiqf4G/abrsq2GGdIdTC10 9DZBoGhN0b8WuomE/GeMVP4GSSrucaZ+BFxcg3ANuI5hVQ2mHkbUzch+H8vZcgZS1oXP EC4FD0dldzFqkI4/Ve4Aea+ZxueLIu1Wv7rZoErHb75W1q3UHjLbAW0raRb+jonj81rO ctxw== X-Gm-Message-State: AOJu0YzM/5Hma3diO9qQIROmv+NSKMMJhIvkX6BJo5WZ3iIEPZjeJZb+ tpmbB/zKyaKc5cFSypOfeBruB0XENCKDUIXpEMM4h0x8CAgywy5O+JsJ X-Gm-Gg: ATEYQzz8p2286k87g2pDzPjozKgWJq6IEtDOTFejZGp6Ojp4ddOBxvBbQz1DmFHH/nG 4vR2veReVAMgROWaMC+hnnPQ2Rp1ib6QAlwwdIX/uyuPRUj2sp6+1LPQ3npJuYRoOyy5FHDl31X NcwHk52kSlXzXOqy24NI0TEnK0PNVYwzGF9g/C7ctQddo7HJPJn2BD98T+kI49ZTZc2LU/u7UJJ 9aufp/6tO6aBFHo/qt/WvByY5Gt6cTIykNoUiG5ouw9jdB/bK6a9wUWTBY6sKPWcivcPkq8v0Eu 5YyDTt9bGJuo7FIzOW8BIYzQQT48Eb/NicxBG4GYdpzBx6XqPZ3avUWg2WrH0s4iMXy13GQZC1o sNruJe6ybmjP6LlV4+pqx10CKfZ3wHgqcTz0wNSpoJgxp4eoNj5shzZ+wvjqJyvQ8Hwx+keuNEm guRKQEXWQrDRXN0raAyMLOc95u7oMYyZm7JFkDDz2O0V2B5dLLaFuhoREWA7E8K0VKGaC5PXb7d Sbxt3Hh43kO+qngWCpeHBjPs8zju48e8SEKvU1okMkxEoM= X-Received: by 2002:a05:6000:268a:b0:43b:4ec7:f90c with SMTP id ffacd0b85a97d-43b9ea4a504mr5718573f8f.26.1774633369466; Fri, 27 Mar 2026 10:42:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 10:42:49 -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 1/3] dt-bindings: memory: renesas,rzg3e-xspi: Add RZ/T2H and RZ/N2H support Date: Fri, 27 Mar 2026 17:42:43 +0000 Message-ID: <20260327174245.3947213-2-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 device tree binding support for the xSPI Interface on Renesas RZ/T2H and RZ/N2H SoCs. The xSPI IP on these SoCs is closely related to that found on the RZ/G3E SoC with some register bit differences in the configuration registers. The RZ/T2H variant has a reduced clock configuration, requiring only the AHB and SPI clocks (without the AXI and spix2 clocks). It also requires only the hardware reset (hresetn), without the AXI reset (aresetn). The RZ/N2H variant is compatible with RZ/T2H and uses the same clock and reset configuration. Update the binding schema to accommodate these differences using conditional constraints based on the compatible string, while maintaining backward compatibility with existing RZ/G3E and RZ/V2H(P) implementations. Signed-off-by: Lad Prabhakar Reviewed-by: Rob Herring (Arm) --- v1->v2: - Add RB tag from Rob for the dt-bindings patch. --- .../renesas,rzg3e-xspi.yaml | 60 +++++++++++++++---- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas,r= zg3e-xspi.yaml b/Documentation/devicetree/bindings/memory-controllers/renes= as,rzg3e-xspi.yaml index 7a84f5bb7284..bf50d90051c9 100644 --- a/Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xs= pi.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xs= pi.yaml @@ -24,7 +24,9 @@ allOf: properties: compatible: oneOf: - - const: renesas,r9a09g047-xspi # RZ/G3E + - enum: + - renesas,r9a09g047-xspi # RZ/G3E + - renesas,r9a09g077-xspi # RZ/T2H =20 - items: - enum: @@ -32,6 +34,10 @@ properties: - renesas,r9a09g057-xspi # RZ/V2H(P) - const: renesas,r9a09g047-xspi =20 + - items: + - const: renesas,r9a09g087-xspi # RZ/N2H + - const: renesas,r9a09g077-xspi + reg: items: - description: xSPI registers @@ -53,28 +59,38 @@ properties: - const: err_pulse =20 clocks: - items: - - description: AHB clock - - description: AXI clock - - description: SPI clock - - description: Double speed SPI clock + oneOf: + - items: + - description: AHB clock + - description: AXI clock + - description: SPI clock + - description: Double speed SPI clock + - items: + - description: AHB clock + - description: SPI clock =20 clock-names: - items: - - const: ahb - - const: axi - - const: spi - - const: spix2 + oneOf: + - items: + - const: ahb + - const: axi + - const: spi + - const: spix2 + - items: + - const: ahb + - const: spi =20 power-domains: maxItems: 1 =20 resets: + minItems: 1 items: - description: Hardware reset - description: AXI reset =20 reset-names: + minItems: 1 items: - const: hresetn - const: aresetn @@ -109,6 +125,28 @@ required: - '#address-cells' - '#size-cells' =20 +if: + properties: + compatible: + contains: + const: renesas,r9a09g077-xspi +then: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 +else: + properties: + clocks: + minItems: 4 + clock-names: + minItems: 4 + resets: + minItems: 2 + resets-names: + minItems: 2 + unevaluatedProperties: false =20 examples: --=20 2.53.0 From nobody Thu Apr 2 15:39:12 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 D541D377EB2 for ; Fri, 27 Mar 2026 17:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633374; cv=none; b=jrMakD/uKuwPLU57xa1WjQk5XFQGQAWIc1o9wKoJ3Iee1VxqqGjjgMK/kKlo75+CrY7A/pdiFd1mBGW3uEKDgVc2L4uS7gaZcSJUvJkEXqKdsqPhrWpGNVWRhNy/eq9p5ChmJf5YgzcYz3Bad1XPNBpsrlSicH53prZposnu6Aw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774633374; c=relaxed/simple; bh=rkgiPTNK4wJ0bIJI5clmxZqKNMgXqfaXzD1JDS/WFM0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l3H5/rMSHr2ncUzhyJC9eXW9iz029IDa6XBN2Wt8vdP9MeMjlCGmZGoq52YdQxjUMdbOQcWXhlEQEknzsh6u6Nb6AzoxMlGqgHxxZ6qMVDGNUPyA738EIv0yZmNkFijq0kdLQaI/rAJi47NYlxuWSIlkLOfbRXwqmNH2Ken3Vfo= 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=UGY3PbqW; arc=none smtp.client-ip=209.85.128.44 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="UGY3PbqW" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-48700b1ba53so22680595e9.1 for ; Fri, 27 Mar 2026 10:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774633370; x=1775238170; 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=+kH691RpikDb6X9g4K/wrujahyFXI0sMtAOZYtzMJ7Q=; b=UGY3PbqWk779Y2pkvS6r5Vkm80uVxN/vpof7crvTWCDQ180jkZmmxXHd64usu8h3Yr pzGQE/yIzfaMIrfT5tKh6BF2s5NDs3TSPVoOsaVLiHcpf3CR/g8eSqn4v7sDO3w94yqS ocb9RUAkdUWgiZ/cRAbXgwjBTKSd6BlbPmYFKKjfz0+s5lF1P9d+6hh0z8NvmKwWqTWd BTuccpmPHSablvEptlaqNWuNulYd3l/7F73SP+rSVm3YHgoBT++p3JVSDdI2oeQsbpdM nIlI66auqgjFehyCWKITmfencp+4dCMNl6fVX0pI3yBnwgTg505wl32c2es4peRYgy6z 0qdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774633370; x=1775238170; 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=+kH691RpikDb6X9g4K/wrujahyFXI0sMtAOZYtzMJ7Q=; b=rG++bB9QNmWg4XMEgrzh6gMqzTNq8drFKqdjcFZcz/55W33ovE7l+hkR/ZjwrLOJE2 BQmqP4CCsMERRLyFK+Q9Zg2ek3owPc8XPxVICanohmov0yqrxpDHsOwcy93qYo0utpc5 Bfopv/Llr+UUavaRJXn1bTOJ0WthODTIqW2ht79ZEJTSymMJpCOgU9rPis0T0SszHArh fUDYDp3Urhsf9+7tfZ4Y0drFQ5BuAavM0PhzrrrYBNenxn0XTv8clWVJUrg3PHmMpbxL vqwC3ff5sKiowgh02FOlke0Q/rZtpRo89q9DaYyuW3YiYUw8a5v8fWQKAUDhOaiDVRGP wz5Q== X-Gm-Message-State: AOJu0Ywi8+NEBrQMTplwtBksFj5Vldzz8ZWeGLMEKEiKxeTmtaim7o8H +lA7394pjY6+//dWR4pl3bWeN2N2bwDLqTpI0N/LYo/tJN1PolX2oytZ X-Gm-Gg: ATEYQzxvnfOqCjcxvcqAUdWjXbj6+L62qNC7OdNjWRn35ZhWowK8ZB/SLXeZd9vnPHu nEtVvBE6aN/61hHVOveVdHjA6t4H1BU3Dbs7FXNORj9owgL1Q6vo07sX/3f/i+hheUJ1zcK+Oa5 HHnHdWnkPl7XgKPk2M68u1FPmAgohNyG4yfxbiesElQLJKenE9rQcsm/RNqzNF2tICMWf19wufW TLQ+6kjAEtJiOviMv8yDCZUSxlx0j0PzAVNVzkvvuIjnxQumkEbHYOQYXHa9S0BcGpgybf5672p mvVRNSp5QTyGdrusjVgxJh/QYcHetN0V6sVaZWD3XAoyJ+Kg+u6rVfTZ6g+IRPeSbWIPSm2koah ep2+BcGqHytUgkmgCbId+ILzcCxvIe0748JCiAW8NyfbELf9vYk7QK1z3GQ8HXWqEAtQc1GDcZe sqfxdJiNvvlpn+ODL2mypZEtJRzVu9ydE9zEfIyQvj8QLULxFbwnOcW96665WtkcviAKCjaNz6K gRniVe+73l/lgihRLRdDDMXmJ9VgiuFbKPYoQ/4XZ/etGA= X-Received: by 2002:a05:600d:8:b0:486:fb0b:ad79 with SMTP id 5b1f17b1804b1-48727f7b951mr48655495e9.20.1774633370224; Fri, 27 Mar 2026 10:42:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 10:42:49 -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 2/3] memory: renesas-rpc-if: Fix duplicate device name on multi-instance platforms Date: Fri, 27 Mar 2026 17:42:44 +0000 Message-ID: <20260327174245.3947213-3-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 On platforms with multiple xSPI instances, the driver fails to probe additional instances due to duplicate sysfs entries: [ 86.878242] sysfs: cannot create duplicate filename '/bus/platform/dev= ices/rpc-if-spi' This occurs because platform_device_alloc() uses pdev->id for the device ID, which may be PLATFORM_DEVID_NONE (-1) for multiple instances, causing all instances to attempt registration with the same name. Fix this by using PLATFORM_DEVID_AUTO instead, which automatically assigns unique IDs to each device instance, allowing multiple xSPI controllers to coexist without naming conflicts. Signed-off-by: Lad Prabhakar Reviewed-by: Wolfram Sang --- v1->v2: - Add RB tag from Wolfram for the rpc-if duplicate device name patch. --- drivers/memory/renesas-rpc-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-i= f.c index 0fb568456164..3755956ae906 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -1034,7 +1034,7 @@ static int rpcif_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(rpc->spi_clk), "cannot get enabled spi clk\n"); =20 - vdev =3D platform_device_alloc(name, pdev->id); + vdev =3D platform_device_alloc(name, PLATFORM_DEVID_AUTO); if (!vdev) return -ENOMEM; vdev->dev.parent =3D dev; --=20 2.53.0 From nobody Thu Apr 2 15:39:12 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