From nobody Wed Oct 8 21:35:06 2025 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 718432E92CC; Tue, 24 Jun 2025 19:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750793009; cv=none; b=lz3my+gAg8GNN9mRKSXVMnKm51qJwsU9NQaxl0+tkztiyv8FtovZPKZjdO4SCfj5mECZUtfddMovHLxMhJALirdnxXi3J/UMWUhFnUqw5fAC9xlz4OFt8+rKcNJx6HYRdzixMTymLzOQj6W3hXqL38aG9qwMiIxC7jYesLBOLfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750793009; c=relaxed/simple; bh=4gcZEGeqCU5KH0mHQ8wH5/bHF4byvhYkk4/R2n/w+ZQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fCflTePQh0DpHI7lyFn+C9V0zW2UW7TM0w2zscuLqeBqVr6tHzWdm7R1/lVXwB9wvpqgCjlnBrfd4Q74sP3q0uH5/gCw9gianVWLAQN/KvdpDFodyDXhW/dpiGoZlx+LObDKiPD4fa11zgiLNgfmUsKhnLw8LIIbrJLArsDP2+w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-CSE-ConnectionGUID: Co+196DCQ7iWD4psg4pROA== X-CSE-MsgGUID: /iVkkYnGQRWFJ9DIHF3hJQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 25 Jun 2025 04:23:25 +0900 Received: from mulinux.example.org (unknown [10.26.240.23]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 18137400F738; Wed, 25 Jun 2025 04:23:20 +0900 (JST) From: Fabrizio Castro To: Fabrizio Castro , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Lad Prabhakar Subject: [PATCH 2/6] spi: dt-bindings: Document the RZ/V2H(P) RSPI Date: Tue, 24 Jun 2025 20:23:00 +0100 Message-Id: <20250624192304.338979-3-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250624192304.338979-1-fabrizio.castro.jz@renesas.com> References: <20250624192304.338979-1-fabrizio.castro.jz@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" Add dt-bindings for the RSPI IP found inside the Renesas RZ/V2H(P) SoC. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring (Arm) --- .../bindings/spi/renesas,rzv2h-rspi.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/renesas,rzv2h-rsp= i.yaml diff --git a/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml = b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml new file mode 100644 index 000000000000..ab27fefc3c3a --- /dev/null +++ b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/renesas,rzv2h-rspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI) + +maintainers: + - Fabrizio Castro + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: renesas,r9a09g057-rspi # RZ/V2H(P) + + reg: + maxItems: 1 + + interrupts: + items: + - description: Idle Interrupt + - description: Error Interrupt + - description: Communication End Interrupt + - description: Receive Buffer Full Interrupt + - description: Transmit Buffer Empty Interrupt + + interrupt-names: + items: + - const: idle + - const: error + - const: end + - const: rx + - const: tx + + clocks: + maxItems: 3 + + clock-names: + items: + - const: pclk + - const: pclk_sfr + - const: tclk + + resets: + maxItems: 2 + + reset-names: + items: + - const: presetn + - const: tresetn + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - power-domains + - '#address-cells' + - '#size-cells' + +unevaluatedProperties: false + +examples: + - | + #include + #include + spi@12800800 { + compatible =3D "renesas,r9a09g057-rspi"; + + reg =3D <0x12800800 0x400>; + interrupts =3D , + , + , + , + ; + interrupt-names =3D "idle", "error", "end", "rx", "tx"; + clocks =3D <&cpg CPG_MOD 0x5a>, + <&cpg CPG_MOD 0x5b>, + <&cpg CPG_MOD 0x5c>; + clock-names =3D "pclk", "pclk_sfr", "tclk"; + resets =3D <&cpg 0x7f>, <&cpg 0x80>; + reset-names =3D "presetn", "tresetn"; + power-domains =3D <&cpg>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; --=20 2.34.1