Skip to contentSkip to conversation

arm64: dts: renesas: r8a779h0: Add RPC node

PATCH In review Geert Uytterhoeven 2 participants 4 messages Feb 19, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#1 lore raw

PATCH 1/2 arm64: dts: renesas: r8a779h0: Add RPC node

In reply to a message not in the archive

From: Cong Dang <[email protected]>

Add a device node for the SPI Multi I/O Bus Controller (RPC-IF) on the Renesas R-Car V4M (R8A779H0) SoC.

---
Changes compared to the BSP:
- Drop undocumented clock-names property.

---
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0.dtsi +16 -0
index 46c586f4e326959f..11885729181bc903 100644
@@ -621,6 +621,22 @@ mmc0: mmc@ee140000 {
 			status = "disabled";
 		};
 
+		rpc: spi@ee200000 {
+			compatible = "renesas,r8a779h0-rpc-if",
+				     "renesas,rcar-gen4-rpc-if";
+			reg = <0 0xee200000 0 0x200>,
+			      <0 0x08000000 0 0x04000000>,
+			      <0 0xee208000 0 0x100>;
+			reg-names = "regs", "dirmap", "wbuf";
+			interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 629>;
+			power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>;
+			resets = <&cpg 629>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		gic: interrupt-controller@f1000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
Signature · 1 line
2.34.1
author maintainer
#3 lore raw

PATCH 2/2 arm64: dts: renesas: gray-hawk-single: Add QSPI FLASH support

In reply to a message not in the archive

From: Cong Dang <[email protected]>

Describe the QSPI FLASH on the Gray Hawk Single board.

---
Changes compared to the BSP:
- Apply to r8a779h0-gray-hawk-single.dts,
- Add missing status = "okay".

---
 .../dts/renesas/r8a779h0-gray-hawk-single.dts | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +33 -0
index 1163ac5e292755db..bc8616a56c039b20 100644
@@ -181,12 +181,45 @@ mmc_pins: mmc {
 		power-source = <1800>;
 	};
 
+	qspi0_pins: qspi0 {
+		groups = "qspi0_ctrl", "qspi0_data4";
+		function = "qspi0";
+	};
+
 	scif_clk_pins: scif-clk {
 		groups = "scif_clk";
 		function = "scif_clk";
 	};
 };
 
+&rpc {
+	pinctrl-0 = <&qspi0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+
+	flash@0 {
+		compatible = "spansion,s25fs512s", "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+		spi-rx-bus-width = <4>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			boot@0 {
+				reg = <0x0 0x1200000>;
+				read-only;
+			};
+			user@1200000 {
+				reg = <0x1200000 0x2e00000>;
+			};
+		};
+	};
+};
+
 &rwdt {
 	timeout-sec = <60>;
 	status = "okay";
Signature · 1 line
2.34.1