From nobody Sat Jun 13 21:24:37 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 76DC9386C2D for ; Tue, 5 May 2026 11:24:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777980255; cv=none; b=OR9bOURx/o/6gzoiMLmSvTZ4hFKcDBB9zz3Df4oq/T8gYjGY4wa4xcd4O8VKJA76F8VGxxP0ijnaSgGo6LSRCOtp58IISFzTwa90glDBXADB5Ci3UQEVyMrUccvQSLbSzlej4xaZ9EeRZXpIX05A7xx4JaDeF/YWKoHoBIv6D8E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777980255; c=relaxed/simple; bh=FVEHtU5Z6195zJJAYmRnFoFpIiG39ejppD1izDSTya4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Sx9lqEK6V/d2quBpy/Wx4rYl88EW4r8vQ4CKWbBSEkMltAQ4IJftsScLirxn8h9qLDGgzs+RXveoSiVM5Zl6Yzj3TntCF4N89AvDFfGgphaQdLciTDoMwjHKElB2pzTtmjNp9OQ6TFQjk+z31YCHQ2EhzMlFq1F1zGw1QhPukuY= 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=Up3wRqGz; arc=none smtp.client-ip=209.85.128.48 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="Up3wRqGz" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891c0620bcso36551615e9.1 for ; Tue, 05 May 2026 04:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777980252; x=1778585052; 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=5RhR/bcs6oyD8dx69WfVrYrpk9XZKcpx9bamSBwmfAs=; b=Up3wRqGzVE9uFDtayO6H8Mkqc1//ATyVa2XhKQ6df/8BkWVCp+/CQ0LhosFAKjwZQg VPTvgVndukOLxMwCwr5a+e4i8aROcclvKi/vj/hKIt37fUN5ghBhpWzOT2zXalix8xL1 WKM9gvryzci1nprLzgdqDS+I63xjxuwlOhwFuxh4G/nCYAD+bgqoQnWO+sqEAHnaWsna J1TKt9MNRS7RPermt5Jrt5Q6C4suVN5G9Z51fqqOE31EJG9G4/T6BR/213DFKJZ3xvnm Tl6lKEw5SmvssoqXpQgdj09wYPVpTouwF9zM9lApsB/9WMJcnspmFlbB54hgtlwpAPJY va6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777980252; x=1778585052; 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=5RhR/bcs6oyD8dx69WfVrYrpk9XZKcpx9bamSBwmfAs=; b=tQy0xvP9DniiHa47YPuAHz2KbdIqNodojsGgK7ysQAkFOjYY2OuONIaBjQyDA501uD pU4hWxNPC8Y1Gatd8JRYTDyCGnY12226nfoBLlMDFB9yT+uLuPo6Q4YcMOeOmsZssawH fNNkEKMm5ajpX7esq2ISWWGO+qRZ0Fdx3XLL5JdpskctNHuzONRTZgqQm4AnlScAoSWO /EkwJ+rY5GhyWUpigM2NxZOxehTMqyF+J+aCdqCdv8r0VoxLzM7OpjpNPM2DED3b2gPM vxA/myuob1KqgOiUPG1VoxCgxfmXJf1Q1vkvgHsjWoB4JqtL3Nfbf4cfRIPxiydCnlIO /LZw== X-Gm-Message-State: AOJu0Yw7MGz8VTsZPB5B6Z+n6OQcNqzEP24GomrbSro4t7kMagOtfTwO 19GN8f94jnynKq8x/Md4c/n2j0YAl81ZyU1Sn33Nh5o+aJmZRzV42yLl X-Gm-Gg: AeBDietCXhatR6mR3hSNANQ5nH0GZpnuj+jP4gmGQjmygB8iE4Bqk+t8o6K+FlEGfOh zEw7eeM2gidiqLg74SYLawOopOGN2u5JEjC+kmFSSS+drh0dNcWqRia1Y+KyR/B8vfkqftRhOlW 2AgOtSeOCnTV4cmBboZgwOiQH0gav9boWzAAKGEWaGRiSE79MBm6SgHQAi8JqEbs3dz/+jTI2Ct VTN0U3iwtu11rOpyQ2DkRHonijB/jGcbscZZe4nFdSKGvyRO3r4UkRr0sk9E44eRZRkhagu901a 2BNl/95pCuvDVnxuUwfXuiVMP0NpXAxebzIkasZfynyjNkDhG6ioZJJVSHsVL8qr0widYSJXuF9 SDpMGY98bFp4tA2oNLSCF9rfN95h/Q95Y+0BGxp3ef2QbSEwHJs5x6cUYUsKfgvG2OdZxLQQzen pu65m9KLnRDbWLFMhzc1YdsE7r8PH3QzPJT8bJLXJ3KCP4ceC5mDzBOn86LJBUCqgYmbAuVb7ah LZ2uQIg9/ovtj3xCtStYJANGV/E8i/SJFiSPV2a3S983Zg7W9GPFkoDwQ== X-Received: by 2002:a05:600c:3487:b0:486:fb0b:ad79 with SMTP id 5b1f17b1804b1-48a988a6ec9mr238315625e9.20.1777980251748; Tue, 05 May 2026 04:24:11 -0700 (PDT) Received: from iku.example.org ([2a06:5906:61b:2d00:7d2a:9b5b:a191:3b81]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a8eba8487sm339946455e9.11.2026.05.05.04.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 04:24:11 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Wolfram Sang , Biju Das Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v3 1/2] dt-bindings: memory: renesas,rzg3e-xspi: Add RZ/T2H and RZ/N2H support Date: Tue, 5 May 2026 12:24:04 +0100 Message-ID: <20260505112405.667796-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260505112405.667796-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260505112405.667796-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 Document xSPI controller found on the Renesas RZ/T2H and RZ/N2H SoCs. The xSPI IP on these SoCs is identical to that found on the RZ/G3E SoC. The RZ/G3E HW manual (Rev.1.15) references bridge channel 1 and its bits, however the hardware actually supports only a single bridge channel (channel 0), matching the RZ/T2H design. The references to channel 1 and its configuration bits will be corrected in a future revision of the HW manual. Update clock/reset constraints to handle the SoC differences. Signed-off-by: Lad Prabhakar --- v2->v3: - Used RZ/G3E comptiable as a fallback compatible for RZ/T2H and RZ/N2H SoCs since the xSPI IP is identical. - Updated commit message to reflect that the xSPI IP is identical between RZ/G3E, RZ/T2H, and RZ/N2H SoCs. - Dropped RB tag from Rob due to above changes. v1->v2: - Add RB tag from Rob for the dt-bindings patch. --- .../renesas,rzg3e-xspi.yaml | 56 +++++++++++++++---- 1 file changed, 46 insertions(+), 10 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..e2633476bd54 100644 --- a/Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xs= pi.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xs= pi.yaml @@ -30,6 +30,8 @@ properties: - enum: - renesas,r9a09g056-xspi # RZ/V2N - renesas,r9a09g057-xspi # RZ/V2H(P) + - renesas,r9a09g077-xspi # RZ/T2H + - renesas,r9a09g087-xspi # RZ/N2H - const: renesas,r9a09g047-xspi =20 reg: @@ -53,28 +55,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 +121,30 @@ required: - '#address-cells' - '#size-cells' =20 +if: + properties: + compatible: + contains: + enum: + - renesas,r9a09g077-xspi + - renesas,r9a09g087-xspi +then: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 +else: + properties: + clocks: + minItems: 4 + clock-names: + minItems: 4 + resets: + minItems: 2 + reset-names: + minItems: 2 + unevaluatedProperties: false =20 examples: --=20 2.54.0 From nobody Sat Jun 13 21:24:37 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 7B065388E56 for ; Tue, 5 May 2026 11:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777980256; cv=none; b=QbDleA5qluMlbfIMezV/owMzrrtwZczymqMFC4XUF8wAWwRyqrnwjrLozvDyhyXhldBzJc4SQCEeKN74bcyBPOMvPZwBq9D1BAbv3fs5to8/SH+uSyr/RwDlcpPuO3vFkMfRH0YRZZxmsFHzePHWH580cqVl4T6idQZd/m6tqlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777980256; c=relaxed/simple; bh=91K842evcD16Ucl1KjEyczWmeAeIibln7xC0ChPpD3c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PFdYVldWtVKKAH+7Y5OFMp+E6MWgXUcnKz4l5qKSTDlzYaHWzJZVblHmiiWNA3BsFdtWKsC+6j+xritbFf4+UdXaEaiS19rJjaAL0GKB2LYUXa1vzSWi8JWUDftHrEbM64OOXirg3FuBToRbm7I0o9OIC/rgI45nIVzJ2gp2FwA= 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=lFJy1OYG; arc=none smtp.client-ip=209.85.128.41 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="lFJy1OYG" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-488e1a8ac40so49588305e9.2 for ; Tue, 05 May 2026 04:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777980253; x=1778585053; 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=yBWradkhizwSf4yE2yoAp/RFCrxwteOMoA1zZzyzf0s=; b=lFJy1OYGnzCMYuhTUdRZgzOUoKNaYYhav0G2OQk637GOefYk6F+iI5c8Nu2rP/tiOJ tLNapp2XBmq1r/uy1oYiV7fS6bEZsBiOF9fhmqeddGPl6Omw4xUL2xWhNytOA+6ZUrCy SsNKrFyEuStMqJsfoJuHZJ1m9Nz+c6XJqEAIvQ29mV84ByncPUZlX/zIBMjggj/pNggD g7CNf0odFYFbCDe9MAC/4YoEuKTEwl/lD4MJ9P5Ha93o+KbRulSef3qjaThYMl1yg9BX IEW/cCXnJRoAuU9GVMhiyPCMcxEZva1HwhwRXlkPIBfOlt1Dz61GCc0wTsH0sQ7c/8HV yfQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777980253; x=1778585053; 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=yBWradkhizwSf4yE2yoAp/RFCrxwteOMoA1zZzyzf0s=; b=I5sEH4qdch7h3IJ5Ac0LJ3CmMHsqJWizQlYCse341dOWRp6PntE94N3SHftX7noLkw rJ3eAnXTcuDmASbICe3BfoI/218SV1IXcRgDAvGWFnm+OAD9GIDl/POPF5dP97XJVKZc ASaUzcSlwV3vbk2wiVgykbEzl9ZDb51odwEhQj4holfkWgFQdwq0iMjZWNX/UZpOZOMj dlwUgQ07iuj9H+cVnTwvytCat5euZh3BLG+4a7rt+LzN/1/CxARU6f9lVtBHApe5nNqW ygZzR28rn7o7W48R3mCEg1FwA0RCsK/65rwLUOQNrvV1W2iOWU+4ZHLV5JAHTvRit1mu vltw== X-Gm-Message-State: AOJu0YzVGp9kKmslXJTHiMxofZAvLDKWzYJrBwyJ2+hFKjxutX46FXs1 iG57zGoG4+uv3OwP/Mt2tBt7AZFkoUA1ElWjeGevnTAXCCBvq7NfFCYo X-Gm-Gg: AeBDietotDQ5UbRyUsr+ZTmGgrhEYWiX/sJHH3wN+2a9eSvwwbf5iE2hQEPL7S2SZqv huYXnsMl6AwlU9m/i2dZJTplQOqzcX+HPA6nAPHo4DtR0BcNOZA4uRRrufAuNSfLgmJLWt1VteB 4jpnqX2FMvPPGKGm4lBuW9+hQG4YJiygHrE6e1BL3Cm4CMzlfERb04DIVh/lAfp7i82IXf7cvZ+ 0vco237G7lxyko1ej5PIeb7CwdgBxq/g9tB6p1/0EsFxLad9fTofaydaG4B88zErwye9z2Qg16t BjtvlMv6KD0V+YNzPODBSF8e9uFIQRt1r0TVIGXBt9+S/qU1PrSGCNHbPPito/fR4bQiAI+yzgN CkDUjNYuXuPqMobfeF91ZT0oWd1oQ5RoG4pax8dw5OvJT3HWUcrkx4rDCWOff3icie8WIA1GO6n c0Lo/eKA0wsm/yujdD4dJqXBntbudN0Py/A2WXE/or1v0jQUCMWFdkhzSSUcqdnv4nm5RETh5Kd 6YhCby1BD/uaJ7A7o6EtIsJ2tJXi4hHVFTVOpsznMRDO0XP+3zezG7WCw== X-Received: by 2002:a05:600c:4f82:b0:48a:906b:14ca with SMTP id 5b1f17b1804b1-48d18ce240cmr39137725e9.20.1777980252724; Tue, 05 May 2026 04:24:12 -0700 (PDT) Received: from iku.example.org ([2a06:5906:61b:2d00:7d2a:9b5b:a191:3b81]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a8eba8487sm339946455e9.11.2026.05.05.04.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 04:24:12 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Wolfram Sang , Biju Das Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [PATCH v3 2/2] memory: renesas-rpc-if: Fix duplicate device name on multi-instance platforms Date: Tue, 5 May 2026 12:24:05 +0100 Message-ID: <20260505112405.667796-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260505112405.667796-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260505112405.667796-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 --- v2->v3: - No change v1->v2: - Add RB tag from Wolfram. --- 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.54.0