[PATCH 4/5] arm64: dts: renesas: salvator-common: Add RPC HyperFlash device node

Geert Uytterhoeven geert+renesas at glider.be
Tue Mar 29 05:20:04 PDT 2022


Add the RPC HyperFlash device node along with its partitions to the
common Salvator-X(S) board DTS file.

Based on a patch in the BSP by Valentine Barshak.

Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
---
Changes compared to the BSP:
  - Update label,
  - Keep RPC disabled,
  - Add missing "cypress,hyperflash" compatible value,
  - Drop leading zeroes from unit addresses,
  - Use lower-case hexadecimal values,
  - Enlarge uboot partition,
  - Drop uboot-env partition.
---
 .../boot/dts/renesas/salvator-common.dtsi     | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
index d1dbaf7d1170812f..4ebef1d2a7b4ddbc 100644
--- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
@@ -872,6 +872,55 @@ rsnd_endpoint2: endpoint {
 	};
 };
 
+&rpc {
+	/* Left disabled.  To be enabled by firmware when unlocked. */
+
+	flash at 0 {
+		compatible = "cypress,hyperflash", "cfi-flash";
+		reg = <0>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			bootparam at 0 {
+				reg = <0x00000000 0x040000>;
+				read-only;
+			};
+			bl2 at 40000 {
+				reg = <0x00040000 0x140000>;
+				read-only;
+			};
+			cert_header_sa6 at 180000 {
+				reg = <0x00180000 0x040000>;
+				read-only;
+			};
+			bl31 at 1c0000 {
+				reg = <0x001c0000 0x040000>;
+				read-only;
+			};
+			tee at 200000 {
+				reg = <0x00200000 0x440000>;
+				read-only;
+			};
+			uboot at 640000 {
+				reg = <0x00640000 0x100000>;
+				read-only;
+			};
+			dtb at 740000 {
+				reg = <0x00740000 0x080000>;
+			};
+			kernel at 7c0000 {
+				reg = <0x007c0000 0x1400000>;
+			};
+			user at 1bc0000 {
+				reg = <0x01bc0000 0x2440000>;
+			};
+		};
+	};
+};
+
 &rwdt {
 	timeout-sec = <60>;
 	status = "okay";
-- 
2.25.1




More information about the linux-arm-kernel mailing list