1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-04 14:10:01 +00:00

arm-bsp/u-boot:cs1k: Rework CONFIG_OF_UPSTREAM patch

Rework the patch that enables the OF_UPSTREAM config option to split
off the extra device tree nodes into their own dtsi files, making it
easier to combine them in different ways. The rest of the patches have
changed only so that they can be applied cleanly.

Signed-off-by: Frazer Carsley <frazer.carsley@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Frazer Carsley
2026-03-30 11:43:11 +01:00
committed by Jon Mason
parent 1778b36d66
commit 73cde0a9ec
3 changed files with 90 additions and 65 deletions
@@ -1,4 +1,4 @@
From d7500d2733efc8f872bd4be60b31176eec27b5d0 Mon Sep 17 00:00:00 2001
From e070ae0f02b10bfd482146a748095ca782f73039 Mon Sep 17 00:00:00 2001
From: Frazer Carsley <frazer.carsley@arm.com>
Date: Mon, 19 Jan 2026 15:16:52 +0000
Subject: [PATCH] corstone1000: enable OF_UPSTREAM device tree support
@@ -6,27 +6,32 @@ Subject: [PATCH] corstone1000: enable OF_UPSTREAM device tree support
Enable OF_UPSTREAM option set for corstone1000 platform. Remove
legacy u-boot corstone1000 device trees.
Add device tree files for FVP and MPS3 platforms to add device
tree nodes that are missing from the upstream.
tree nodes that are missing from the upstream. These are done in a
modular way.
Signed-off-by: Clement Faure <clement.faure@arm.com>
Signed-off-by: Frazer Carsley <frazer.carsley@arm.com>
Upstream-Status: Pending [Not submitted to upstream yet]
---
arch/arm/dts/Makefile | 3 -
arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 15 ++
arch/arm/dts/corstone1000-fvp.dts | 82 ---------
arch/arm/dts/corstone1000-mps3-u-boot.dtsi | 8 +
arch/arm/dts/corstone1000-mps3.dts | 32 ----
arch/arm/dts/corstone1000-u-boot.dtsi | 39 +++++
arch/arm/dts/corstone1000.dtsi | 194 ---------------------
board/armltd/corstone1000/corstone1000.c | 4 +-
configs/corstone1000_defconfig | 5 +-
9 files changed, 68 insertions(+), 314 deletions(-)
arch/arm/dts/Makefile | 3 -
arch/arm/dts/corstone1000-extsys-u-boot.dtsi | 14 ++
arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 9 +
arch/arm/dts/corstone1000-fvp.dts | 82 --------
arch/arm/dts/corstone1000-mps3-u-boot.dtsi | 9 +
arch/arm/dts/corstone1000-mps3.dts | 32 ---
arch/arm/dts/corstone1000-u-boot.dtsi | 30 +++
arch/arm/dts/corstone1000-virtio-u-boot.dtsi | 13 ++
arch/arm/dts/corstone1000.dtsi | 194 -------------------
board/armltd/corstone1000/corstone1000.c | 4 +-
configs/corstone1000_defconfig | 5 +-
11 files changed, 81 insertions(+), 314 deletions(-)
create mode 100644 arch/arm/dts/corstone1000-extsys-u-boot.dtsi
create mode 100644 arch/arm/dts/corstone1000-fvp-u-boot.dtsi
delete mode 100644 arch/arm/dts/corstone1000-fvp.dts
create mode 100644 arch/arm/dts/corstone1000-mps3-u-boot.dtsi
delete mode 100644 arch/arm/dts/corstone1000-mps3.dts
create mode 100644 arch/arm/dts/corstone1000-u-boot.dtsi
create mode 100644 arch/arm/dts/corstone1000-virtio-u-boot.dtsi
delete mode 100644 arch/arm/dts/corstone1000.dtsi
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
@@ -43,27 +48,41 @@ index 7c8cf3a5a1d..89b3728379b 100644
dtb-$(CONFIG_TARGET_COREPRIMEVELTE) += pxa1908-samsung-coreprimevelte.dtb
include $(srctree)/scripts/Makefile.dts
diff --git a/arch/arm/dts/corstone1000-fvp-u-boot.dtsi b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
diff --git a/arch/arm/dts/corstone1000-extsys-u-boot.dtsi b/arch/arm/dts/corstone1000-extsys-u-boot.dtsi
new file mode 100644
index 00000000000..20425fa0624
index 00000000000..074f45f0e69
--- /dev/null
+++ b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
@@ -0,0 +1,15 @@
+++ b/arch/arm/dts/corstone1000-extsys-u-boot.dtsi
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0 or MIT
+/*
+ * Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ *
+ */
+
+&{/soc} {
+ extsys0: remoteproc@1a010310 {
+ compatible = "arm,corstone1000-extsys";
+ reg = <0x1a010310 0x4>, <0x1a010314 0x4>;
+ reg-names = "reset-control", "reset-status";
+ firmware-name = "es_flashfw.elf";
+ };
+};
diff --git a/arch/arm/dts/corstone1000-fvp-u-boot.dtsi b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
new file mode 100644
index 00000000000..5cb7762fc1c
--- /dev/null
+++ b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0 or MIT
+/*
+ * Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ *
+ */
+
+#include "corstone1000-u-boot.dtsi"
+
+/ {
+ virtio: virtio-net@40400000 {
+ compatible = "virtio,mmio";
+ reg = <0x40400000 0x10000>;
+ interrupts = <145>;
+ };
+};
+#include "corstone1000-extsys-u-boot.dtsi"
+#include "corstone1000-virtio-u-boot.dtsi"
diff --git a/arch/arm/dts/corstone1000-fvp.dts b/arch/arm/dts/corstone1000-fvp.dts
deleted file mode 100644
index cd8a132271e..00000000000
@@ -154,17 +173,18 @@ index cd8a132271e..00000000000
-
diff --git a/arch/arm/dts/corstone1000-mps3-u-boot.dtsi b/arch/arm/dts/corstone1000-mps3-u-boot.dtsi
new file mode 100644
index 00000000000..9ab744d8d20
index 00000000000..0d9d6c5e6e1
--- /dev/null
+++ b/arch/arm/dts/corstone1000-mps3-u-boot.dtsi
@@ -0,0 +1,8 @@
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0 or MIT
+/*
+ * Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ *
+ */
+
+#include "corstone1000-u-boot.dtsi"
+#include "corstone1000-extsys-u-boot.dtsi"
+
diff --git a/arch/arm/dts/corstone1000-mps3.dts b/arch/arm/dts/corstone1000-mps3.dts
deleted file mode 100644
@@ -206,13 +226,13 @@ index e3146747c2d..00000000000
-};
diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi
new file mode 100644
index 00000000000..95dd277d4cc
index 00000000000..a75bc7016aa
--- /dev/null
+++ b/arch/arm/dts/corstone1000-u-boot.dtsi
@@ -0,0 +1,39 @@
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0 or MIT
+/*
+ * Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * Copyright 2025-2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ *
+ */
+
@@ -240,13 +260,23 @@ index 00000000000..95dd277d4cc
+ };
+ };
+};
diff --git a/arch/arm/dts/corstone1000-virtio-u-boot.dtsi b/arch/arm/dts/corstone1000-virtio-u-boot.dtsi
new file mode 100644
index 00000000000..89ff06a51f8
--- /dev/null
+++ b/arch/arm/dts/corstone1000-virtio-u-boot.dtsi
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0 or MIT
+/*
+ * Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ *
+ */
+
+&{/soc} {
+ extsys0: remoteproc@1a010310 {
+ compatible = "arm,corstone1000-extsys";
+ reg = <0x1a010310 0x4>, <0x1a010314 0x4>;
+ reg-names = "reset-control", "reset-status";
+ firmware-name = "es_flashfw.elf";
+/ {
+ virtio: virtio-net@40400000 {
+ compatible = "virtio,mmio";
+ reg = <0x40400000 0x10000>;
+ interrupts = <145>;
+ };
+};
diff --git a/arch/arm/dts/corstone1000.dtsi b/arch/arm/dts/corstone1000.dtsi
@@ -494,3 +524,4 @@ index 450d69762ab..350607892fa 100644
CONFIG_VERSION_VARIABLE=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_REGMAP=y
@@ -1,7 +1,8 @@
From b457d1a3665dbac8499ccf8d0726a30e4d0554da Mon Sep 17 00:00:00 2001
From df01111a866a37fcf875b3c2e2394414d27c89da Mon Sep 17 00:00:00 2001
From: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
Date: Wed, 24 Sep 2025 13:42:25 +0000
Subject: [PATCH] corstone1000: dts: use 32-bit cells for /reserved-memory node
Subject: [PATCH] corstone1000: dts: use 32-bit cells for
/reserved-memory node
Switch the *reserved-memory* node from two-cell (64-bit) encoding to
one-cell (32-bit) encoding and adjust the `reg` property accordingly
@@ -14,7 +15,7 @@ Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi
index 95dd277d4cc..b29ac74217e 100644
index a75bc7016aa..4ea6f1d9724 100644
--- a/arch/arm/dts/corstone1000-u-boot.dtsi
+++ b/arch/arm/dts/corstone1000-u-boot.dtsi
@@ -18,12 +18,12 @@
@@ -33,3 +34,4 @@ index 95dd277d4cc..b29ac74217e 100644
no-map;
};
};
@@ -1,6 +1,6 @@
From 46fd90a19c9a2c04fb958badb19e148b08f559c8 Mon Sep 17 00:00:00 2001
From ef9306fde5247ccd8fecec5f886f52426c01af61 Mon Sep 17 00:00:00 2001
From: Frazer Carsley <frazer.carsley@arm.com>
Date: Fri, 15 Aug 2025 09:22:26 +0100
Date: Wed, 25 Feb 2026 14:08:07 +0000
Subject: [PATCH] corstone1000: Add Cortex-A320 support on FVP
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
@@ -49,20 +49,20 @@ Upstream-Status: Submitted (https://lore.kernel.org/all/20251127154752.589691-1-
Signed-off-by: Frazer Carsley <frazer.carsley@arm.com>
Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
---
arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 39 ++++++++++++
arch/arm/dts/corstone1000-u-boot.dtsi | 76 +++++++++++++++++++++++
arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 38 +++++++++++
arch/arm/dts/corstone1000-u-boot.dtsi | 79 +++++++++++++++++++++++
arch/arm/include/asm/armv8/cpu.h | 1 +
board/armltd/corstone1000/Kconfig | 8 +++
4 files changed, 124 insertions(+)
4 files changed, 126 insertions(+)
diff --git a/arch/arm/dts/corstone1000-fvp-u-boot.dtsi b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
index 20425fa0624..0539e6c092a 100644
index 5cb7762fc1c..7ad4ca9e070 100644
--- a/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
+++ b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi
@@ -13,3 +13,42 @@
interrupts = <145>;
};
};
@@ -7,3 +7,41 @@
#include "corstone1000-u-boot.dtsi"
#include "corstone1000-extsys-u-boot.dtsi"
#include "corstone1000-virtio-u-boot.dtsi"
+
+&{/cpus} {
+ cpu1: cpu@1 {
@@ -101,15 +101,15 @@ index 20425fa0624..0539e6c092a 100644
+ next-level-cache = <&L2_0>;
+ };
+};
+
diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi
index b29ac74217e..7f75eae48cc 100644
index 4ea6f1d9724..fef56d1ec66 100644
--- a/arch/arm/dts/corstone1000-u-boot.dtsi
+++ b/arch/arm/dts/corstone1000-u-boot.dtsi
@@ -29,6 +29,15 @@
@@ -28,3 +28,82 @@
};
};
};
+
+&{/cpus} {
+ cpu: cpu@0 {
+ device_type = "cpu";
@@ -118,14 +118,6 @@ index b29ac74217e..7f75eae48cc 100644
+ next-level-cache = <&L2_0>;
+ };
+};
+
&{/soc} {
extsys0: remoteproc@1a010310 {
compatible = "arm,corstone1000-extsys";
@@ -37,3 +46,72 @@
firmware-name = "es_flashfw.elf";
};
};
+
+#ifdef CONFIG_ETHOS_U85
+&{/reserved-memory} {
@@ -138,6 +130,7 @@ index b29ac74217e..7f75eae48cc 100644
+ compatible = "shared-dma-pool";
+ reg = <0xA0000000 0x02000000>;
+ no-map;
+
+ };
+};
+
@@ -196,7 +189,7 @@ index b29ac74217e..7f75eae48cc 100644
+ };
+#endif
diff --git a/arch/arm/include/asm/armv8/cpu.h b/arch/arm/include/asm/armv8/cpu.h
index e906fdf1bf1..a361c1100b3 100644
index e906fdf1bf1..4ef2ff07f7a 100644
--- a/arch/arm/include/asm/armv8/cpu.h
+++ b/arch/arm/include/asm/armv8/cpu.h
@@ -11,6 +11,7 @@
@@ -208,7 +201,7 @@ index e906fdf1bf1..a361c1100b3 100644
#define MIDR_PARTNUM_MASK (0xFFF << MIDR_PARTNUM_SHIFT)
diff --git a/board/armltd/corstone1000/Kconfig b/board/armltd/corstone1000/Kconfig
index 709674d4cf7..3af29b2bae7 100644
index 709674d4cf7..eea5c9b8972 100644
--- a/board/armltd/corstone1000/Kconfig
+++ b/board/armltd/corstone1000/Kconfig
@@ -9,4 +9,12 @@ config SYS_VENDOR
@@ -224,4 +217,3 @@ index 709674d4cf7..3af29b2bae7 100644
+ default n
+
endif