├── .gitignore ├── Documentation ├── dtc-paper.bib ├── dtc-paper.tex ├── dts-format.txt └── manual.txt ├── GPL ├── Makefile ├── Makefile.convert-dtsv0 ├── Makefile.dtc ├── Makefile.utils ├── README.license ├── README.md ├── TODO ├── checks.c ├── convert-dtsv0-lexer.l ├── data.c ├── dtc-lexer.l ├── dtc-parser.y ├── dtc.c ├── dtc.h ├── dtdiff ├── fdtdump.c ├── fdtget.c ├── fdtput.c ├── flattree.c ├── fstree.c ├── libfdt ├── Makefile.libfdt ├── TODO ├── fdt.c ├── fdt.h ├── fdt_empty_tree.c ├── fdt_ro.c ├── fdt_rw.c ├── fdt_strerror.c ├── fdt_sw.c ├── fdt_wip.c ├── libfdt.h ├── libfdt_env.h ├── libfdt_internal.h └── version.lds ├── livetree.c ├── scripts └── setlocalversion ├── srcpos.c ├── srcpos.h ├── tests ├── .gitignore ├── Makefile.tests ├── add_subnode_with_nops.c ├── aliases.dts ├── appendprop.dts ├── appendprop1.c ├── appendprop2.c ├── asm_tree_dump.c ├── bad-empty-ranges.dts ├── bad-name-property.dts ├── bad-ncells.dts ├── bad-reg-ranges.dts ├── bad-string-props.dts ├── base01.asm ├── base01.cmd ├── base01.dts ├── base01.stderr ├── boot-cpuid.c ├── boot-cpuid.dts ├── char_literal.c ├── char_literal.dts ├── comments-cmp.dts ├── comments.dts ├── data.S ├── default-addr-size.dts ├── del_node.c ├── del_property.c ├── delete_reinstate_multilabel.dts ├── delete_reinstate_multilabel_ref.dts ├── dependencies.cmp ├── dependencies.dts ├── deps_inc1.dtsi ├── deps_inc2.dtsi ├── dtb_reverse.c ├── dtbs_equal_ordered.c ├── dtbs_equal_unordered.c ├── dtc-checkfails.sh ├── dtc-fails.sh ├── dtc-fatal.sh ├── dumptrees.c ├── dup-nodename.dts ├── dup-phandle.dts ├── dup-propname.dts ├── empty.dts ├── escapes.dts ├── extra-terminating-null.c ├── extra-terminating-null.dts ├── fdtget-runtest.sh ├── fdtput-runtest.sh ├── find_property.c ├── get_alias.c ├── get_mem_rsv.c ├── get_name.c ├── get_path.c ├── get_phandle.c ├── getprop.c ├── incbin.bin ├── incbin.c ├── incbin.dts ├── include0.dts ├── include1.dts ├── include2.dts ├── include3.dts ├── include4.dts ├── include5.dts ├── include5a.dts ├── include6.dts ├── include7.dts ├── include8.dts ├── integer-expressions.c ├── label01.dts ├── label_repeated.dts ├── line_directives.dts ├── lorem.txt ├── mangle-layout.c ├── mangle-layout.supp ├── minusone-phandle.dts ├── move_and_save.c ├── multilabel.dts ├── multilabel_merge.dts ├── node_check_compatible.c ├── node_offset_by_compatible.c ├── node_offset_by_phandle.c ├── node_offset_by_prop_value.c ├── nonexist-label-ref.dts ├── nonexist-node-ref.dts ├── nonexist-node-ref2.dts ├── nop_node.c ├── nop_property.c ├── nopulate.c ├── notfound.c ├── obsolete-chosen-interrupt-controller.dts ├── open_pack.c ├── open_pack.supp ├── parent_offset.c ├── path-references.c ├── path-references.dts ├── path_offset.c ├── path_offset_aliases.c ├── phandle_format.c ├── prop-after-subnode.dts ├── propname_escapes.c ├── propname_escapes.dts ├── references.c ├── references.dts ├── reg-ranges-root.dts ├── reuse-label.dts ├── reuse-label1.dts ├── reuse-label2.dts ├── reuse-label3.dts ├── reuse-label4.dts ├── reuse-label5.dts ├── reuse-label6.dts ├── root_node.c ├── run_tests.sh ├── rw_tree1.c ├── search_dir │ ├── search_test.dtsi │ └── search_test2.dtsi ├── search_dir_b │ ├── search_paths_subdir.dts │ ├── search_test_b.dtsi │ ├── search_test_b2.dtsi │ └── search_test_c.dtsi ├── search_paths.dts ├── search_paths_b.dts ├── set_name.c ├── setprop.c ├── setprop_inplace.c ├── sized_cells.c ├── sized_cells.dts ├── string_escapes.c ├── subnode_iterate.c ├── subnode_iterate.dts ├── subnode_offset.c ├── supernode_atdepth_offset.c ├── sw_tree1.c ├── test01.asm ├── test01.dts ├── test01.stderr ├── test_kernel_dts ├── test_tree1.dts ├── test_tree1_body.dtsi ├── test_tree1_delete.dts ├── test_tree1_merge.dts ├── test_tree1_merge_labelled.dts ├── test_tree1_merge_path.dts ├── test_tree1_wrong1.dts ├── test_tree1_wrong2.dts ├── test_tree1_wrong3.dts ├── test_tree1_wrong4.dts ├── test_tree1_wrong5.dts ├── test_tree1_wrong6.dts ├── test_tree1_wrong7.dts ├── test_tree1_wrong8.dts ├── test_tree1_wrong9.dts ├── testdata.h ├── tests.h ├── tests.sh ├── testutils.c ├── trees.S ├── truncated_property.c ├── utilfdt_test.c ├── value-labels.c ├── value-labels.dts └── zero-phandle.dts ├── treesource.c ├── util.c └── util.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/.gitignore -------------------------------------------------------------------------------- /Documentation/dtc-paper.bib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Documentation/dtc-paper.bib -------------------------------------------------------------------------------- /Documentation/dtc-paper.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Documentation/dtc-paper.tex -------------------------------------------------------------------------------- /Documentation/dts-format.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Documentation/dts-format.txt -------------------------------------------------------------------------------- /Documentation/manual.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Documentation/manual.txt -------------------------------------------------------------------------------- /GPL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/GPL -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Makefile -------------------------------------------------------------------------------- /Makefile.convert-dtsv0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Makefile.convert-dtsv0 -------------------------------------------------------------------------------- /Makefile.dtc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Makefile.dtc -------------------------------------------------------------------------------- /Makefile.utils: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/Makefile.utils -------------------------------------------------------------------------------- /README.license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/README.license -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/README.md -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/TODO -------------------------------------------------------------------------------- /checks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/checks.c -------------------------------------------------------------------------------- /convert-dtsv0-lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/convert-dtsv0-lexer.l -------------------------------------------------------------------------------- /data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/data.c -------------------------------------------------------------------------------- /dtc-lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/dtc-lexer.l -------------------------------------------------------------------------------- /dtc-parser.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/dtc-parser.y -------------------------------------------------------------------------------- /dtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/dtc.c -------------------------------------------------------------------------------- /dtc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/dtc.h -------------------------------------------------------------------------------- /dtdiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/dtdiff -------------------------------------------------------------------------------- /fdtdump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/fdtdump.c -------------------------------------------------------------------------------- /fdtget.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/fdtget.c -------------------------------------------------------------------------------- /fdtput.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/fdtput.c -------------------------------------------------------------------------------- /flattree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/flattree.c -------------------------------------------------------------------------------- /fstree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/fstree.c -------------------------------------------------------------------------------- /libfdt/Makefile.libfdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/Makefile.libfdt -------------------------------------------------------------------------------- /libfdt/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/TODO -------------------------------------------------------------------------------- /libfdt/fdt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt.c -------------------------------------------------------------------------------- /libfdt/fdt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt.h -------------------------------------------------------------------------------- /libfdt/fdt_empty_tree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_empty_tree.c -------------------------------------------------------------------------------- /libfdt/fdt_ro.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_ro.c -------------------------------------------------------------------------------- /libfdt/fdt_rw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_rw.c -------------------------------------------------------------------------------- /libfdt/fdt_strerror.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_strerror.c -------------------------------------------------------------------------------- /libfdt/fdt_sw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_sw.c -------------------------------------------------------------------------------- /libfdt/fdt_wip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/fdt_wip.c -------------------------------------------------------------------------------- /libfdt/libfdt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/libfdt.h -------------------------------------------------------------------------------- /libfdt/libfdt_env.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/libfdt_env.h -------------------------------------------------------------------------------- /libfdt/libfdt_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/libfdt_internal.h -------------------------------------------------------------------------------- /libfdt/version.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/libfdt/version.lds -------------------------------------------------------------------------------- /livetree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/livetree.c -------------------------------------------------------------------------------- /scripts/setlocalversion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/scripts/setlocalversion -------------------------------------------------------------------------------- /srcpos.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/srcpos.c -------------------------------------------------------------------------------- /srcpos.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/srcpos.h -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/.gitignore -------------------------------------------------------------------------------- /tests/Makefile.tests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/Makefile.tests -------------------------------------------------------------------------------- /tests/add_subnode_with_nops.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/add_subnode_with_nops.c -------------------------------------------------------------------------------- /tests/aliases.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/aliases.dts -------------------------------------------------------------------------------- /tests/appendprop.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/appendprop.dts -------------------------------------------------------------------------------- /tests/appendprop1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/appendprop1.c -------------------------------------------------------------------------------- /tests/appendprop2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/appendprop2.c -------------------------------------------------------------------------------- /tests/asm_tree_dump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/asm_tree_dump.c -------------------------------------------------------------------------------- /tests/bad-empty-ranges.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/bad-empty-ranges.dts -------------------------------------------------------------------------------- /tests/bad-name-property.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/bad-name-property.dts -------------------------------------------------------------------------------- /tests/bad-ncells.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/bad-ncells.dts -------------------------------------------------------------------------------- /tests/bad-reg-ranges.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/bad-reg-ranges.dts -------------------------------------------------------------------------------- /tests/bad-string-props.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/bad-string-props.dts -------------------------------------------------------------------------------- /tests/base01.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/base01.asm -------------------------------------------------------------------------------- /tests/base01.cmd: -------------------------------------------------------------------------------- 1 | dtc -f -b 0 -V 16 -I dts -O asm 2 | -------------------------------------------------------------------------------- /tests/base01.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/base01.dts -------------------------------------------------------------------------------- /tests/base01.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/base01.stderr -------------------------------------------------------------------------------- /tests/boot-cpuid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/boot-cpuid.c -------------------------------------------------------------------------------- /tests/boot-cpuid.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/boot-cpuid.dts -------------------------------------------------------------------------------- /tests/char_literal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/char_literal.c -------------------------------------------------------------------------------- /tests/char_literal.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/char_literal.dts -------------------------------------------------------------------------------- /tests/comments-cmp.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/comments-cmp.dts -------------------------------------------------------------------------------- /tests/comments.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/comments.dts -------------------------------------------------------------------------------- /tests/data.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/data.S -------------------------------------------------------------------------------- /tests/default-addr-size.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/default-addr-size.dts -------------------------------------------------------------------------------- /tests/del_node.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/del_node.c -------------------------------------------------------------------------------- /tests/del_property.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/del_property.c -------------------------------------------------------------------------------- /tests/delete_reinstate_multilabel.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/delete_reinstate_multilabel.dts -------------------------------------------------------------------------------- /tests/delete_reinstate_multilabel_ref.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/delete_reinstate_multilabel_ref.dts -------------------------------------------------------------------------------- /tests/dependencies.cmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dependencies.cmp -------------------------------------------------------------------------------- /tests/dependencies.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dependencies.dts -------------------------------------------------------------------------------- /tests/deps_inc1.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "deps_inc2.dtsi" 2 | -------------------------------------------------------------------------------- /tests/deps_inc2.dtsi: -------------------------------------------------------------------------------- 1 | /* Empty */ 2 | -------------------------------------------------------------------------------- /tests/dtb_reverse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtb_reverse.c -------------------------------------------------------------------------------- /tests/dtbs_equal_ordered.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtbs_equal_ordered.c -------------------------------------------------------------------------------- /tests/dtbs_equal_unordered.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtbs_equal_unordered.c -------------------------------------------------------------------------------- /tests/dtc-checkfails.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtc-checkfails.sh -------------------------------------------------------------------------------- /tests/dtc-fails.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtc-fails.sh -------------------------------------------------------------------------------- /tests/dtc-fatal.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dtc-fatal.sh -------------------------------------------------------------------------------- /tests/dumptrees.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dumptrees.c -------------------------------------------------------------------------------- /tests/dup-nodename.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dup-nodename.dts -------------------------------------------------------------------------------- /tests/dup-phandle.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dup-phandle.dts -------------------------------------------------------------------------------- /tests/dup-propname.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/dup-propname.dts -------------------------------------------------------------------------------- /tests/empty.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | / { 4 | }; 5 | -------------------------------------------------------------------------------- /tests/escapes.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/escapes.dts -------------------------------------------------------------------------------- /tests/extra-terminating-null.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/extra-terminating-null.c -------------------------------------------------------------------------------- /tests/extra-terminating-null.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/extra-terminating-null.dts -------------------------------------------------------------------------------- /tests/fdtget-runtest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/fdtget-runtest.sh -------------------------------------------------------------------------------- /tests/fdtput-runtest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/fdtput-runtest.sh -------------------------------------------------------------------------------- /tests/find_property.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/find_property.c -------------------------------------------------------------------------------- /tests/get_alias.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/get_alias.c -------------------------------------------------------------------------------- /tests/get_mem_rsv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/get_mem_rsv.c -------------------------------------------------------------------------------- /tests/get_name.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/get_name.c -------------------------------------------------------------------------------- /tests/get_path.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/get_path.c -------------------------------------------------------------------------------- /tests/get_phandle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/get_phandle.c -------------------------------------------------------------------------------- /tests/getprop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/getprop.c -------------------------------------------------------------------------------- /tests/incbin.bin: -------------------------------------------------------------------------------- 1 | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -------------------------------------------------------------------------------- /tests/incbin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/incbin.c -------------------------------------------------------------------------------- /tests/incbin.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/incbin.dts -------------------------------------------------------------------------------- /tests/include0.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/include0.dts -------------------------------------------------------------------------------- /tests/include1.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/include1.dts -------------------------------------------------------------------------------- /tests/include2.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/include2.dts -------------------------------------------------------------------------------- /tests/include3.dts: -------------------------------------------------------------------------------- 1 | 123456789 010000 2 | -------------------------------------------------------------------------------- /tests/include4.dts: -------------------------------------------------------------------------------- 1 | compatible = "test_tree1"; 2 | -------------------------------------------------------------------------------- /tests/include5.dts: -------------------------------------------------------------------------------- 1 | prop-int 2 | -------------------------------------------------------------------------------- /tests/include5a.dts: -------------------------------------------------------------------------------- 1 | = /bits/ 64 <0xdeadbeef01abcdef> -------------------------------------------------------------------------------- /tests/include6.dts: -------------------------------------------------------------------------------- 1 | "hello world" 2 | -------------------------------------------------------------------------------- /tests/include7.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/include7.dts -------------------------------------------------------------------------------- /tests/include8.dts: -------------------------------------------------------------------------------- 1 | subsubnode@0 { -------------------------------------------------------------------------------- /tests/integer-expressions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/integer-expressions.c -------------------------------------------------------------------------------- /tests/label01.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/label01.dts -------------------------------------------------------------------------------- /tests/label_repeated.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/label_repeated.dts -------------------------------------------------------------------------------- /tests/line_directives.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/line_directives.dts -------------------------------------------------------------------------------- /tests/lorem.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/lorem.txt -------------------------------------------------------------------------------- /tests/mangle-layout.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/mangle-layout.c -------------------------------------------------------------------------------- /tests/mangle-layout.supp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/mangle-layout.supp -------------------------------------------------------------------------------- /tests/minusone-phandle.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/minusone-phandle.dts -------------------------------------------------------------------------------- /tests/move_and_save.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/move_and_save.c -------------------------------------------------------------------------------- /tests/multilabel.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/multilabel.dts -------------------------------------------------------------------------------- /tests/multilabel_merge.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/multilabel_merge.dts -------------------------------------------------------------------------------- /tests/node_check_compatible.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/node_check_compatible.c -------------------------------------------------------------------------------- /tests/node_offset_by_compatible.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/node_offset_by_compatible.c -------------------------------------------------------------------------------- /tests/node_offset_by_phandle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/node_offset_by_phandle.c -------------------------------------------------------------------------------- /tests/node_offset_by_prop_value.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/node_offset_by_prop_value.c -------------------------------------------------------------------------------- /tests/nonexist-label-ref.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nonexist-label-ref.dts -------------------------------------------------------------------------------- /tests/nonexist-node-ref.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nonexist-node-ref.dts -------------------------------------------------------------------------------- /tests/nonexist-node-ref2.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nonexist-node-ref2.dts -------------------------------------------------------------------------------- /tests/nop_node.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nop_node.c -------------------------------------------------------------------------------- /tests/nop_property.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nop_property.c -------------------------------------------------------------------------------- /tests/nopulate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/nopulate.c -------------------------------------------------------------------------------- /tests/notfound.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/notfound.c -------------------------------------------------------------------------------- /tests/obsolete-chosen-interrupt-controller.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/obsolete-chosen-interrupt-controller.dts -------------------------------------------------------------------------------- /tests/open_pack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/open_pack.c -------------------------------------------------------------------------------- /tests/open_pack.supp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/open_pack.supp -------------------------------------------------------------------------------- /tests/parent_offset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/parent_offset.c -------------------------------------------------------------------------------- /tests/path-references.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/path-references.c -------------------------------------------------------------------------------- /tests/path-references.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/path-references.dts -------------------------------------------------------------------------------- /tests/path_offset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/path_offset.c -------------------------------------------------------------------------------- /tests/path_offset_aliases.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/path_offset_aliases.c -------------------------------------------------------------------------------- /tests/phandle_format.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/phandle_format.c -------------------------------------------------------------------------------- /tests/prop-after-subnode.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/prop-after-subnode.dts -------------------------------------------------------------------------------- /tests/propname_escapes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/propname_escapes.c -------------------------------------------------------------------------------- /tests/propname_escapes.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/propname_escapes.dts -------------------------------------------------------------------------------- /tests/references.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/references.c -------------------------------------------------------------------------------- /tests/references.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/references.dts -------------------------------------------------------------------------------- /tests/reg-ranges-root.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reg-ranges-root.dts -------------------------------------------------------------------------------- /tests/reuse-label.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label.dts -------------------------------------------------------------------------------- /tests/reuse-label1.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label1.dts -------------------------------------------------------------------------------- /tests/reuse-label2.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label2.dts -------------------------------------------------------------------------------- /tests/reuse-label3.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label3.dts -------------------------------------------------------------------------------- /tests/reuse-label4.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label4.dts -------------------------------------------------------------------------------- /tests/reuse-label5.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label5.dts -------------------------------------------------------------------------------- /tests/reuse-label6.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/reuse-label6.dts -------------------------------------------------------------------------------- /tests/root_node.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/root_node.c -------------------------------------------------------------------------------- /tests/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/run_tests.sh -------------------------------------------------------------------------------- /tests/rw_tree1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/rw_tree1.c -------------------------------------------------------------------------------- /tests/search_dir/search_test.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "search_test2.dtsi" 2 | 3 | / { 4 | }; 5 | -------------------------------------------------------------------------------- /tests/search_dir/search_test2.dtsi: -------------------------------------------------------------------------------- 1 | 2 | / { 3 | }; 4 | -------------------------------------------------------------------------------- /tests/search_dir_b/search_paths_subdir.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "search_test_c.dtsi" 4 | 5 | / { 6 | }; 7 | -------------------------------------------------------------------------------- /tests/search_dir_b/search_test_b.dtsi: -------------------------------------------------------------------------------- 1 | /include/ "search_test_b2.dtsi" 2 | 3 | / { 4 | }; 5 | -------------------------------------------------------------------------------- /tests/search_dir_b/search_test_b2.dtsi: -------------------------------------------------------------------------------- 1 | 2 | /include/ "search_test.dtsi" 3 | 4 | / { 5 | }; 6 | -------------------------------------------------------------------------------- /tests/search_dir_b/search_test_c.dtsi: -------------------------------------------------------------------------------- 1 | / { 2 | }; 3 | -------------------------------------------------------------------------------- /tests/search_paths.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "search_test.dtsi" 4 | 5 | / { 6 | }; 7 | -------------------------------------------------------------------------------- /tests/search_paths_b.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "search_test_b.dtsi" 4 | 5 | / { 6 | }; 7 | -------------------------------------------------------------------------------- /tests/set_name.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/set_name.c -------------------------------------------------------------------------------- /tests/setprop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/setprop.c -------------------------------------------------------------------------------- /tests/setprop_inplace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/setprop_inplace.c -------------------------------------------------------------------------------- /tests/sized_cells.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/sized_cells.c -------------------------------------------------------------------------------- /tests/sized_cells.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/sized_cells.dts -------------------------------------------------------------------------------- /tests/string_escapes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/string_escapes.c -------------------------------------------------------------------------------- /tests/subnode_iterate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/subnode_iterate.c -------------------------------------------------------------------------------- /tests/subnode_iterate.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/subnode_iterate.dts -------------------------------------------------------------------------------- /tests/subnode_offset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/subnode_offset.c -------------------------------------------------------------------------------- /tests/supernode_atdepth_offset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/supernode_atdepth_offset.c -------------------------------------------------------------------------------- /tests/sw_tree1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/sw_tree1.c -------------------------------------------------------------------------------- /tests/test01.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test01.asm -------------------------------------------------------------------------------- /tests/test01.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test01.dts -------------------------------------------------------------------------------- /tests/test01.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test01.stderr -------------------------------------------------------------------------------- /tests/test_kernel_dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_kernel_dts -------------------------------------------------------------------------------- /tests/test_tree1.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | 3 | /include/ "test_tree1_body.dtsi" 4 | -------------------------------------------------------------------------------- /tests/test_tree1_body.dtsi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_body.dtsi -------------------------------------------------------------------------------- /tests/test_tree1_delete.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_delete.dts -------------------------------------------------------------------------------- /tests/test_tree1_merge.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_merge.dts -------------------------------------------------------------------------------- /tests/test_tree1_merge_labelled.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_merge_labelled.dts -------------------------------------------------------------------------------- /tests/test_tree1_merge_path.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_merge_path.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong1.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong1.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong2.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong2.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong3.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong3.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong4.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong4.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong5.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong5.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong6.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong6.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong7.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong7.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong8.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong8.dts -------------------------------------------------------------------------------- /tests/test_tree1_wrong9.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/test_tree1_wrong9.dts -------------------------------------------------------------------------------- /tests/testdata.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/testdata.h -------------------------------------------------------------------------------- /tests/tests.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/tests.h -------------------------------------------------------------------------------- /tests/tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/tests.sh -------------------------------------------------------------------------------- /tests/testutils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/testutils.c -------------------------------------------------------------------------------- /tests/trees.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/trees.S -------------------------------------------------------------------------------- /tests/truncated_property.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/truncated_property.c -------------------------------------------------------------------------------- /tests/utilfdt_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/utilfdt_test.c -------------------------------------------------------------------------------- /tests/value-labels.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/value-labels.c -------------------------------------------------------------------------------- /tests/value-labels.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/value-labels.dts -------------------------------------------------------------------------------- /tests/zero-phandle.dts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/tests/zero-phandle.dts -------------------------------------------------------------------------------- /treesource.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/treesource.c -------------------------------------------------------------------------------- /util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/util.c -------------------------------------------------------------------------------- /util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lbmeng/dtc/HEAD/util.h --------------------------------------------------------------------------------