u-boot/arch/sandbox/dts/other.dts
Simon Glass 9859d89b6e sandbox: Support loading the other FDT
We need an 'other' FDT which is different from the control FDT, so we can
check that the ofnode tests correctly handle them both.

Add this to the build along with a way to read it into the sandbox state.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-09-29 16:09:56 -04:00

35 lines
623 B
Text

// SPDX-License-Identifier: GPL-2.0+
/*
* Other devicetree file for running sandbox tests
*
* This used for tests which want to check they can access multiple device
* trees. This one is loaded and checks are made that it is actually visible.
*/
/dts-v1/;
/ {
compatible = "sandbox-other";
#address-cells = <1>;
#size-cells = <1>;
node {
target = <&target 3 4>;
subnode {
compatible = "sandbox-other2";
str-prop = "other";
};
subnode2 {
};
};
target: target {
compatible = "sandbox-other2";
#gpio-cells = <2>;
str-prop = "other";
reg = <0x8000 0x100>;
status = "disabled";
};
};