From nobody Wed Apr 8 05:14:33 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 192243ECBC0 for ; Tue, 10 Mar 2026 21:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773178193; cv=none; b=GM95mCDIpvHuaqCNONBLfO72rwJhXQqrSh2B3G23NMX15roxZtHglonmpU5ziuaNBZx24poTzPWLFD7OBa9iUnsF9cobGPmrTHBG3YqA3MzRPfQUFbFaN5amFpwIedCJ8QwPuqh5BOcfTJtX4R4dBS/Q/4erLRI0lYGDAw2rrZI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773178193; c=relaxed/simple; bh=gFnXvymCEzoOcbtohhO71PytBlzyoyx7Ut5b833dFLQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s2bnRVIafodFgFl4Fgltpwl1xWSOgCyCPk8qzUU1JeK5u5wqiLFtXqz5KzCkgPisyDBc8aIvNU3ybRY1FQZFWWGYQFaiDoGYP1tKBidjoiguURdau5ILELHYne1fx1WRv92UPB0gtuFKH1PDrM3Kz3i6WirRr1gknJrtHaHnJBQ= 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=FvCZ3hyT; arc=none smtp.client-ip=209.85.221.50 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="FvCZ3hyT" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-439b9b190easo6773999f8f.2 for ; Tue, 10 Mar 2026 14:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773178187; x=1773782987; 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=wgRXvl1sY8HiSSfFUcnoj1jeHlznucddaU4Ukjd4GSs=; b=FvCZ3hyT9APC0W5oextcULrI0x+lb1AJrprQtYM+Y+xlNp1d/q9esYxmwqzh0UOpfR r+8r5yXEc4zyQIenDr+QkqSjwvNjCMPlKHeL0Xw+zWVwsISdwjr+t85akmWVdx9rXHiE e3KxM1/rv0Qa+PTjD6sC6M8SxETD7Yhty+Tl+h9dZtowZT6iFK1rRE2XbGqs/Ia/K4nO SOjBoVZy4RrpzRsPeoX3vi8FAGQiV1MZG+1y97oBxqhzpenF2ExJrQGjakfq42WNAFKZ JTDhvgQqoPgCGisVv35EV6dI3D/7y07Iap9p9x/SrY57Q4xi/9FAhllaiDLyfEKHNIje UL0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773178187; x=1773782987; 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=wgRXvl1sY8HiSSfFUcnoj1jeHlznucddaU4Ukjd4GSs=; b=l9FIvCNKIYxPTqC6ltkZJxo0dm1gmaougOjSKB4rlK8MVJhqbycH3M9HofN+wLY40x wzd8w7HYWbBdPuBJjUl2TAqDnfhKiJf1W98o9Ihms+Ijp6djq1KmWUfXVQd3ekK/A99p aYEg3VI03dSS0CgoegwzBxtc1SWNX6srbuGqek2d2gc014+uEBNAq8ltvZCEIrAI3jRN xSdgLsytj77LrC+QE5iWMfC/w13c1aYIrAxvSFRveB03ecyX2ZKIt/d4oa71HYlLBJhM 2jDPYpiryf7HmxqDzip/ICdxKIOXTpTxiQRGEamjMN2agiYiVSRHtenmXmhGTvvnTn+e gQhA== X-Gm-Message-State: AOJu0YwTvE/BqAoBOkW4pAJyMZURLawyhvYBpPvXY6p8Jo1ACX5gHQ6P LvqzlnpHCiqweNjTiJNoDuJlnkKpg5Cl5nLlk9Vz6/uiNUMLTk0MWUIx X-Gm-Gg: ATEYQzwVcnL1rB1YaumerLBy/SESkjhGrDKn0L+HfuFUcpmtYGi/k644TFjXRTL0Ueh 7fZkK8NUhwMazoCY+/kAb+iK9sFUNi/PC7OPwYl6EK+5xEiHX56QD60QZUJsp7aGu5mwPlgXyFN e/SraC3jo6ktUSS0z9MNqH9OuWChOTyijGK8zm53jImVjCdkeG0FeJbIhNNeTSiS9iS7ES6nEUp 0gDlI8v5NAdg3X9psbF9ZbdF4UOHeWVfCy6ik5yY/xwnkTNtv66AATx7CL54z5jIiR9XQjzZNve 6Cp7uVY0DSzMtAb3qPzd0rULWo1Rf0WNVbMcvE04wNWpEVqcuqQqS1WftNDXzys8R6LBGLTELRg +gkIbSXdLnxVpcGZ4gpG1Sz/6yz/AAats01urocPBtjucU4zZ55jk/1hz4f1hGyqgTaHmG9tQQ5 XC2QQ4OlKp/X1N5mMqTWZXA6hgF4d3ECSBG1ehj4uFO0FSJ3p9UEzVxbW//RzKoIpyc2Zps9xA7 MjhGcIMiGBcRx0U4KdIk1uzb6MCDpSUU4QfTA== X-Received: by 2002:a05:6000:310c:b0:439:c4bf:d9cb with SMTP id ffacd0b85a97d-439f8434fc1mr726372f8f.43.1773178186814; Tue, 10 Mar 2026 14:29:46 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:82df:eef6:d0c5:70a5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439f818d37fsm1247104f8f.6.2026.03.10.14.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2026 14:29:46 -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 1/3] dt-bindings: memory: renesas,rzg3e-xspi: Add RZ/T2H and RZ/N2H support Date: Tue, 10 Mar 2026 21:29:25 +0000 Message-ID: <20260310212927.3372410-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260310212927.3372410-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20260310212927.3372410-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) --- .../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