summaryrefslogtreecommitdiff
path: root/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0035-corstone1000-purge-U-Boot-specific-DT-nodes.patch
blob: 230ebe6ebc0aad220305d32e58a083a073dddc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From 3654cebe9449584aa94563b2252c267b926219c9 Mon Sep 17 00:00:00 2001
From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Date: Thu, 21 Sep 2023 15:24:34 +0100
Subject: [PATCH 35/38] corstone1000: purge U-Boot specific DT nodes

Remove U-Boot specific DT nodes before passing the DT to Linux

This is needed to pass SystemReady IR 2.0 dt-schema tests

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Upstream-Status: Pending [RFC: https://lore.kernel.org/u-boot/aca7e6fa-2dec-a7c5-e47e-84c5ffa6f9b7@gmx.de/T/#m16d14ee960427cc88066bdcdd76f0a26738bb66d]
---
 board/armltd/corstone1000/corstone1000.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/board/armltd/corstone1000/corstone1000.c b/board/armltd/corstone1000/corstone1000.c
index 53c65506d5..e3c0e5bf50 100644
--- a/board/armltd/corstone1000/corstone1000.c
+++ b/board/armltd/corstone1000/corstone1000.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <dt-structs.h>
 #include <env.h>
 #include <fwu.h>
 #include <netdev.h>
@@ -18,6 +19,20 @@
 #include <asm/armv8/mmu.h>
 #include <asm/global_data.h>
 
+/* remove the DT nodes not needed in Linux */
+DT_NON_COMPLIANT_PURGE_LIST(foo) = {
+	{ .node_path = "/fwu-mdata" },
+	{ .node_path = "/nvmxip-qspi@08000000" },
+	{ .node_path = "/soc/mailbox@1b820000" },
+	{ .node_path = "/soc/mailbox@1b830000" },
+	{ .node_path = "/soc/mhu@1b000000" },
+	{ .node_path = "/soc/mhu@1b010000" },
+	{ .node_path = "/soc/mhu@1b020000" },
+	{ .node_path = "/soc/mhu@1b030000" },
+	{ .node_path = "/soc/client" },
+	{ .node_path = "/soc/extsys@1A010310" },
+};
+
 #define CORSTONE1000_KERNEL_PARTS 2
 #define CORSTONE1000_KERNEL_PRIMARY "kernel_primary"
 #define CORSTONE1000_KERNEL_SECONDARY "kernel_secondary"
-- 
2.25.1