aboutsummaryrefslogtreecommitdiffstats
path: root/dtc/tests/overlay_overlay.dts
diff options
context:
space:
mode:
Diffstat (limited to 'dtc/tests/overlay_overlay.dts')
-rw-r--r--dtc/tests/overlay_overlay.dts52
1 files changed, 52 insertions, 0 deletions
diff --git a/dtc/tests/overlay_overlay.dts b/dtc/tests/overlay_overlay.dts
new file mode 100644
index 000000000..c4ef1d47f
--- /dev/null
+++ b/dtc/tests/overlay_overlay.dts
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2016 NextThing Co
+ * Copyright (c) 2016 Free Electrons
+ * Copyright (c) 2016 Konsulko Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+/dts-v1/;
+/plugin/;
+
+/* Test that we can change an int by another */
+&test {
+ test-int-property = <43>;
+};
+
+/* Test that we can replace a string by a longer one */
+&test {
+ test-str-property = "foobar";
+};
+
+/* Test that we add a new property */
+&test {
+ test-str-property-2 = "foobar2";
+};
+
+/* Test that we add a new node (by phandle) */
+&test {
+ new-node {
+ new-property;
+ };
+};
+
+&test {
+ local: new-local-node {
+ new-property;
+ };
+};
+
+&test {
+ test-phandle = <&test>, <&local>;
+};
+
+&test {
+ test-several-phandle = <&local>, <&local>;
+};
+
+&test {
+ sub-test-node {
+ new-sub-test-property;
+ };
+};