From nobody Thu Apr 2 17:18:49 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