summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/ofw01/some.dts
diff options
context:
space:
mode:
authorG S Niteesh Babu <niteesh.gs@gmail.com>2020-12-04 13:40:47 +0530
committerChristian Mauderer <oss@c-mauderer.de>2020-12-27 10:05:09 +0100
commitf867e7b6f42e17f30e23678bd59fd1869b1fb829 (patch)
treeeac7786d2cc8745b5953889397e307e27e65bcac /testsuites/libtests/ofw01/some.dts
parentbsps/shared/ofw: Implement RTEMS OFW interface (diff)
downloadrtems-f867e7b6f42e17f30e23678bd59fd1869b1fb829.tar.bz2
libtests/ofw01: Added a test for RTEMS OFW
This commit adds a basic test that tests all the implemented RTEMS OFW functions.
Diffstat (limited to '')
-rw-r--r--testsuites/libtests/ofw01/some.dts76
1 files changed, 76 insertions, 0 deletions
diff --git a/testsuites/libtests/ofw01/some.dts b/testsuites/libtests/ofw01/some.dts
new file mode 100644
index 0000000000..6ed8aeb069
--- /dev/null
+++ b/testsuites/libtests/ofw01/some.dts
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2020 Niteesh G S <niteesh.gs@gmail.com>. All rights reserved.
+ * Copyright (c) 2015 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+/dts-v1/;
+
+/ {
+ compatible = "a,b";
+ #address-cells = <1>;
+ #size-cells = <2>;
+ model = "c";
+
+ d {
+ e = "f";
+ g;
+
+ h@0 {
+ };
+
+ h@1 {
+ w = <123>;
+ };
+ };
+
+ aliases {
+ k = "/m@1248";
+ };
+
+ l: m@1248 {
+ n = <0xdeadbeef 0x12345678>;
+
+ o {
+ p;
+ };
+
+ q {
+ r = "s";
+ };
+ };
+
+ t {
+ u = <&l>;
+ };
+
+ a {
+ compatible = "a";
+ reg = <0x1234 0x10>;
+ ranges = <0x1000 0x8000 0x400 0x2000 0xF000 0x1000>;
+ interrupts = <0x1>;
+
+ b {
+ reg = <0x1234 0x10 0x2468 0x10>;
+ };
+ };
+
+ c {
+ ranges;
+ interrupts = <0x1 0x2 0x3>;
+
+ q {
+ reg = <0x4800 0x200>;
+ status = "okay";
+ };
+ };
+};