From nobody Fri Jun 12 11:32:29 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 D45C147ECFA for ; Fri, 15 May 2026 11:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845930; cv=none; b=FlWGzfRAM3vXfthJTMQ9msw/kkmfFfYj2vAIhUey5yujTuFWpZB02P18FitRZ9zgzJEyicl8cjo07PtOsKh7MwOBa4J8ruPieAop3Dk47i68z8tvHbc0NGHleYFZf4K7hMXquEago5R+gIhGz3aOUhbMn2eefWxCF7XwrXCbpCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845930; c=relaxed/simple; bh=feO571qSHMBhSw9FnUvtJU58ZnElf8PURjLCSOnDmEE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YM+7qFQIkc0vUGBeSlvLy5NneDwqvQ+KhXG1t88NyNx7qmXTi91YiaSRCmA2gAuo1IN+cItXNbkSvmjZy8nklh4cvRxv1QxIb1dCfc3rAuqdnvxaXSkRtCAs9qRy3KO2EfSor0qr8xEwQGhcpU5Q3EcNGBl9zBNfMpQypdGHTa8= 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=QuubbMaP; arc=none smtp.client-ip=209.85.128.49 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="QuubbMaP" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488ad135063so75469675e9.0 for ; Fri, 15 May 2026 04:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778845927; x=1779450727; 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=0aMCoyazuJELtNjo3L9VuPYC5o4Q8/gFp6bEqHTv1GE=; b=QuubbMaPlfVkeVXwR3fRF/bMhYmvqDQM2PQFbDrxeajpb4mq92zhUwDliQ8SF/Z5eA A4OU42uj6SUaf7leHM9V6ToMcUWleiBCS3Gf8rRoXo2IsSJjsbUDlM//O3PSvtPhNMZv R0oTfavgawjFF4bNsSex6Yh2qV5FqCLy8r96jUEGYt5OwONQpb44RBijcDvohUE9dBhZ IKsS6fAV4jtu9W6hICVBRBaUccMJnKSfwFSQI61kkZtdYuHmd6nmdCNE9nTsNDG6xe7M WQ7ZD9CMwL6mXkGj44Z0xu30dCpVH3Ap2UUoWaK6WrurG6uFPDpjwbPLYtze3KVSE6Ma 1MWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778845927; x=1779450727; 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=0aMCoyazuJELtNjo3L9VuPYC5o4Q8/gFp6bEqHTv1GE=; b=Rdo5NAqU+tTTwJpXsG3lu8vo5iNWo+drGMsM8IqbvMmcA6tMGYlGXgx2QN1S1k9nHQ Yb2G/jRsbjNv9/VpB/do8t3Rltowqz5pHw/fN7RgSKgrbe6MxfUubSWKDnDE/661Hief Cu3QfoUVl5Nqu2dk22si9eYGyInvu0k8AUUMw8kbdaHOySRX9LtYogvfldY6YIfeXv40 CUxAhpgeMLtQ9c2YiusLxauce+7GTq+c45pH1zHhCDylIghP2mawHdwoP6zV1Ix9AArP hcLw8zMKFgTwY1S5Q+iXyVxDyTjoXRYO1Xa0b9FS4lqRYddbYE5Cjw2ImsqlEcVBEUf8 YWnQ== X-Gm-Message-State: AOJu0Yyx5SlDQmD14YhNFLrc4uCnVkKRN9BYlesDSSAHbVz4RDrg0NWr Za/Ht0UT9dx+/MNwcum6Y7lAauraO+czYsDOqRu59DD8lKnIZrfEe3Ac X-Gm-Gg: Acq92OGkFcY/mw4C0nOKD+0NSLXxetBwjqPk1Zg1hbkye+CDy0ib57mAw9ScbIP98kA TelrkZ6Ycnf0JHtIYmv0bHsf8B/InWreRSuis5vovR9J2+tWP/SUhWgUwRwBzgpUpnCrO9RqBty oISuvnC8dc1f10BBRsGu3kd+hcDRSXGuoZXw2616EWk1sXySs5JRo3hbZIPWRII4/siN0gihyO7 dtRgDm/kZwGHoKTXMIoZlhxx+NSCBUcThLEERrqkOFUBJR1UEzjJPYiFwBCWeI9jRdBCrMEslfS eLt9UM0Dvd4dDzrwN7sbrv4tHOAs2FHjPXt7JS+RMBuZ9Tgy5BR+lKll6Tfq8SFYqb1zrgTJ/1L YK65kHt6kSd7xc83sr7qeUVXeFWNv5QSchUzKiIpiOf62F9nFz3eyWCtJuKTynzwKqIX4TUAQtd WIU3Be3wBWQ6GX1qTnbWrlSK25hy1ZK4wdYFIkeeo77IzX9ySppGCGnHDPuapwfktFFd6LLSO7H DVpAxvwmm9CRvnifoqKutKkGTvLyBJgtS1YBxkq3NGsq/M= X-Received: by 2002:a05:600c:c173:b0:48f:e230:c3f8 with SMTP id 5b1f17b1804b1-48fe661b50amr50941855e9.30.1778845926951; Fri, 15 May 2026 04:52:06 -0700 (PDT) Received: from iku.example.org ([2a06:5906:61b:2d00:c85a:b53f:fa7f:6b1a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe5cab818sm58376215e9.14.2026.05.15.04.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 04:52:06 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Biju Das Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Lad Prabhakar Subject: [PATCH v4 1/2] dt-bindings: memory: renesas,rzg3e-xspi: Add RZ/T2H and RZ/N2H support Date: Fri, 15 May 2026 12:52:01 +0100 Message-ID: <20260515115202.1515577-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515115202.1515577-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260515115202.1515577-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 Reviewed-by: Krzysztof Kozlowski --- v3->v4: - Added restriction for resets and reset-names properties to have maxItems: 1 for RZ/T2H and RZ/N2H SoCs, since they only have a single reset. 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 | 60 +++++++++++++++---- 1 file changed, 50 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..cdeca4c795f3 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,34 @@ 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 + resets: + maxItems: 1 + reset-names: + maxItems: 1 +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 Fri Jun 12 11:32:29 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 98E7B481AA6 for ; Fri, 15 May 2026 11:52:09 +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=1778845931; cv=none; b=dJq295pEiVMPQFAtjiOnoHSDSyv2RhknI1prWhj9BRKmKVlXeFNMxJ2BVzsxqS6VBytKBHo5ifw2P/7xSxiIK5ZpS2dFO8ICZj+aqNB44em+Ztzbpxrw47YfpKqeGuAj/hTo4JGAJ7Zlh7HO3e+xEMSgGYt4ajKlljfKpjUWxQM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845931; c=relaxed/simple; bh=db1UysockGOOdN/jD+3r0kklFbD/5UZUqI3qs3dKzM4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Js+olwAxrrBl3gAK8N2quXrhFx5ls5zRyAR2CW72X/Srwm3AIuPeI5x3P/hF135fP582QuhGMbCRvHpGRSJ/5aylIgmMuZsrXF8RrNS2D7Q5bP10ZlAXmoMSJN8T/8buriPuTPX+3Ts+DzN5r4KC09eTpc9akxMW3axatiDpypA= 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=sEP04Sbb; 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="sEP04Sbb" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-44509921fbcso4674710f8f.3 for ; Fri, 15 May 2026 04:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778845928; x=1779450728; 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=o6EhYJYljIpOTcXgWAOcvJXHIq/zZQeBLSK1ZR8tzzo=; b=sEP04Sbbjsu99K/P+JQRNYm9EWNvTZSeswcX556dBgLaSEAweQaOuSLU9lA+4zsDxL 9JLTfL1joIxeLNoJavbOg6TbdvNr2kO9U+CMEwLiUT91LXpMQUreB2mCXTcxvuZaksnc m/586nsqcYj0F/GsHR0qQhRgtMuPwlhPk4TsHKMEVoxzYL8+OWi20xOdWDgCiyYegwCO xf/p10W89HVNEgUK+MR9bn7FQP9ul0IKWk8NRl7hylg9GVlEvYvt7QGCfmLdpl/Rpmsv Yb3+Mym90IJbg1rq4Yc2iWPNUWXo4YHcaPTaYcPp7LAAnNn9DG416jAOPkUOSpdZXrrs OmRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778845928; x=1779450728; 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=o6EhYJYljIpOTcXgWAOcvJXHIq/zZQeBLSK1ZR8tzzo=; b=qjLItQL7L8RnT2K/6JqPRtgeTwxJ/oYf3k2Ga31nt4Ai6CrZpq0VuDzMB/2KrZ50GZ 2LC5p4wlv0uww7ICvH1J5dT8eP2ecL3toigfGQgyqiGmZIvSz3EnjItOhBT1rj6HrtEN SdyLOCOfsc1yqnUqzcTX+BhxAVGBh57n285Dm2dfawTrPfeJnMUvtgE3FwkhP70lQQDl YiejOI6VGysRvUYAjYseBHOzXL2h85qMKyDZqdswDLaHY3T8QrcTOlvk1FamAB4rHhNF H5s9nARVcA/46jS7B5ccc2acCVfPE8oTjDFjgvtpomTS/F5aKXAvgMVKTMrFD5HLSHLl h55A== X-Gm-Message-State: AOJu0YyPYRjr6klO49qtmfJErteE1/Qq/nugL8pzn9fMrlyujJ8aANDR NiGnQiTAyu7ZDVhL7UG0ohFp8BxxUcmDhem8bwchDOXEMggsg4QFoZXw X-Gm-Gg: Acq92OEzSAttuhm2qlem6mtSjOwVQQbtUDwTymT7FQTS937IYhVi6nj8ofIUAF8NQfj MvzA29n15qStjcLv3ZVeUvVJT4FG3nmrOTMgIt5b3S8vInCkpaiiGPBUZ+iHwM7NAxYi29Y0mPp I8VVEr91sO0BDEw6lSghs9fvqk8NQnHIjNhaH3TTHCUR3vVBVJiPHt6gfEtptQq4Ny+gbsShW4U XRAFp8yI+wBzA8GfVCmBmM/Fiypia8EkSMmtkiU9HP492eoJ9GJ4YSqnGkjAZY8jmmt97ee0W1K 6zEuJ+KnyyMXyhH8FFwrx9MoIxy6RWDCBfBb+v4LZV/vpFCfyw16W0P2S+cM6OFJWJ+7P9JnGVc SQjkxkSNeDyHaKS7Aay9Zw6SXbN3jKiy3pqf8W/Cx2ZN+8WYYDiB01NWhA/fDoKBg00SCUoKum5 vi1mvKkXc5lfztb1XS5rNTDd4Pz8tnUNNdRJeajm9G4RvkwI7o4nZptJ2uCvIkeWKqaEMf+JTZk TRHN7N5mjWoS/ro5dIkqlP9gp6tgvRuGPVU/OGrew9hs9o= X-Received: by 2002:a05:600c:858d:b0:48e:82b4:b54 with SMTP id 5b1f17b1804b1-48fe6514873mr39770125e9.23.1778845927690; Fri, 15 May 2026 04:52:07 -0700 (PDT) Received: from iku.example.org ([2a06:5906:61b:2d00:c85a:b53f:fa7f:6b1a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe5cab818sm58376215e9.14.2026.05.15.04.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 04:52:07 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Biju Das Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Lad Prabhakar , Wolfram Sang Subject: [PATCH v4 2/2] memory: renesas-rpc-if: Fix duplicate device name on multi-instance platforms Date: Fri, 15 May 2026 12:52:02 +0100 Message-ID: <20260515115202.1515577-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515115202.1515577-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260515115202.1515577-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->v4: - 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