[Crosstoolchain-logs] [device-tree-compiler] 118/357: dtc: add a testcase with labels

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 9670eed1bce94c98ffefcfd49317f2cfb9256d6c
Author: Milton Miller <miltonm at bga.com>
Date:   Sat Jul 7 01:18:53 2007 -0500

    dtc: add a testcase with labels
    
    Create a source file with labels for use as a testcase
    to check parsing dts files.
    
    Signed-off-by: Milton Miller <miltonm at bga.com>
---
 tests/label01.dts | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/tests/label01.dts b/tests/label01.dts
new file mode 100644
index 0000000..ad1f1e4
--- /dev/null
+++ b/tests/label01.dts
@@ -0,0 +1,60 @@
+/memreserve/ 1000000000000000 0000000002000000;
+memrsv2: /memreserve/ 2000000000000000-20ffffffffffffff;
+/memreserve/ 0-13;
+
+/ {
+	model = "MyBoardName";
+	compatible = "MyBoardName", "MyBoardFamilyName";
+	#address-cells = <2>;
+	#size-cells = <2>;
+
+	cpus {
+		linux,phandle = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		PowerPC,970 at 0 {
+			name = "PowerPC,970";
+			device_type = "cpu";
+			reg = <0>;
+			clock-frequency = <5f5e1000>;
+			timebase-frequency = <1FCA055>;
+			linux,boot-cpu;
+			i-cache-size = <10000>;
+			d-cache-size = <8000>;
+		};
+
+		PowerPC,970 at 1 {
+			name = "PowerPC,970";
+			device_type = "cpu";
+			reg = <1>;
+			clock-frequency = <5f5e1000>;
+			timebase-frequency = <1FCA055>;
+			i-cache-size = <10000>;
+			d-cache-size = <8000>;
+		};
+
+	};
+
+	node: randomnode {
+		prop: string = data: "\xff\0stuffstuff\t\t\t\n\n\n" data_end: ;
+		blob = [byte: 0a 0b 0c 0d de ea ad be ef byte_end: ];
+		ref = < cell: &/memory at 0 cell_end: >;
+		mixed = "abc", pre: [1234] post: , gap: < aligned: a b c>;
+		subnode: child {
+		};
+		/* subnode_end: is auto-generated by node emit */
+	};
+	/* node_end: is auto-generated by node emit */
+
+	memory at 0 {
+		device_type = "memory";
+		memreg: reg = <00000000 00000000 00000000 20000000>;
+	};
+
+	chosen {
+		bootargs = "root=/dev/sda2";
+		linux,platform = <00000600>;
+	};
+
+};
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list