summaryrefslogtreecommitdiff
path: root/test/overlay/test-fdt-base.dts
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-05 10:26:46 +0200
committerTom Rini <trini@konsulko.com>2016-08-20 11:35:07 -0400
commitf2a9942fbc47491cc5f5151670c42d43dc0544cb (patch)
tree24d07a7a1d1738c1d668620e31dcb5dc600f0eb4 /test/overlay/test-fdt-base.dts
parente6628ad7b99b285b25147366c68a7b956e362878 (diff)
downloadu-boot-imx-f2a9942fbc47491cc5f5151670c42d43dc0544cb.zip
u-boot-imx-f2a9942fbc47491cc5f5151670c42d43dc0544cb.tar.gz
u-boot-imx-f2a9942fbc47491cc5f5151670c42d43dc0544cb.tar.bz2
tests: Introduce DT overlay tests
This adds a bunch of unit tests for the "fdt apply" command. They've all been run successfully in the sandbox. However, as you still require an out-of-tree dtc with overlay support, this is disabled by default. Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'test/overlay/test-fdt-base.dts')
-rw-r--r--test/overlay/test-fdt-base.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/overlay/test-fdt-base.dts b/test/overlay/test-fdt-base.dts
new file mode 100644
index 0000000..2603adb
--- /dev/null
+++ b/test/overlay/test-fdt-base.dts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2016 NextThing Co
+ * Copyright (c) 2016 Free Electrons
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+/dts-v1/;
+
+/ {
+ test: test-node {
+ test-int-property = <42>;
+ test-str-property = "foo";
+
+ subtest: sub-test-node {
+ sub-test-property;
+ };
+ };
+};
+
+