| From 1527eef4dd54a425a5a178f09fa9d3d65aa3e30a 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 37/37] 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 |
| |