From 7218cfd2264faf299f7095a97892819294cd2be6 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sat, 8 Jan 2022 18:13:55 +0100 Subject: common: boards: qemu-virt: fix dtc warning DTC complains about a Warning (chosen_node_is_root): /fragment@1/__overlay__/chosen: chosen node must be at root node As /chosen is already available in the device tree of all of: - ARM 32-Bit QEMU Virt - ARM 64-Bit QEMU Virt - RISC-V 32-Bit QEMU Virt - RISC-V 64-Bit QEMU Virt Just reference that in a new fragment to silence the warning. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220108171356.586099-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- common/boards/qemu-virt/overlay-of-flash.dts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/boards/qemu-virt/overlay-of-flash.dts b/common/boards/qemu-virt/overlay-of-flash.dts index a271a45510..b912cbec18 100644 --- a/common/boards/qemu-virt/overlay-of-flash.dts +++ b/common/boards/qemu-virt/overlay-of-flash.dts @@ -35,15 +35,20 @@ }; }; }; + fragment@1 { - target-path="/"; + target-path = "/chosen"; __overlay__ { - chosen { - environment { - compatible = "barebox,environment"; - device-path = ENV_DEVICE_PATH; - }; + environment { + compatible = "barebox,environment"; + device-path = ENV_DEVICE_PATH; }; + }; + }; + + fragment@2 { + target-path = "/"; + __overlay__ { aliases { state = "/state"; }; -- cgit v1.2.3