Lines Matching refs:dtb
113 # $1: dtb file
175 run_dtc_test -I dts -O dtb -o overlay_base_no_symbols.test.dtb overlay_base.dts
176 run_test check_path overlay_base_no_symbols.test.dtb not-exists "/__symbols__"
177 run_test check_path overlay_base_no_symbols.test.dtb not-exists "/__fixups__"
178 run_test check_path overlay_base_no_symbols.test.dtb not-exists "/__local_fixups__"
180 run_dtc_test -I dts -O dtb -o overlay_overlay_no_fixups.test.dtb overlay_overlay_no_fixups.dts
181 run_test check_path overlay_overlay_no_fixups.test.dtb not-exists "/__symbols__"
182 run_test check_path overlay_overlay_no_fixups.test.dtb not-exists "/__fixups__"
183 run_test check_path overlay_overlay_no_fixups.test.dtb exists "/__local_fixups__"
185 run_test overlay overlay_base_no_symbols.test.dtb overlay_overlay_no_fixups.test.dtb
188 run_dtc_test -I dts -O dtb -o overlay_base_manual_symbols.test.dtb overlay_base_manual_symbols.dts
189 run_test check_path overlay_base_manual_symbols.test.dtb exists "/__symbols__"
190 run_test check_path overlay_base_manual_symbols.test.dtb not-exists "/__fixups__"
191 run_test check_path overlay_base_manual_symbols.test.dtb not-exists "/__local_fixups__"
193 run_dtc_test -I dts -O dtb -o overlay_overlay_manual_fixups.test.dtb overlay_overlay_manual_fixups.dts
194 run_test check_path overlay_overlay_manual_fixups.test.dtb not-exists "/__symbols__"
195 run_test check_path overlay_overlay_manual_fixups.test.dtb exists "/__fixups__"
196 run_test check_path overlay_overlay_manual_fixups.test.dtb exists "/__local_fixups__"
198 run_test overlay overlay_base_manual_symbols.test.dtb overlay_overlay_manual_fixups.test.dtb
203 run_dtc_test -I dts -O dtb -o $tree.test.dtb $tree.dts
204 run_test overlay_bad_fixup overlay_base_no_symbols.test.dtb $tree.test.dtb
211 run_dtc_test -@ -I dts -O dtb -o overlay_base.test.dtb overlay_base.dts
212 run_test check_path overlay_base.test.dtb exists "/__symbols__"
213 run_test check_path overlay_base.test.dtb not-exists "/__fixups__"
214 run_test check_path overlay_base.test.dtb not-exists "/__local_fixups__"
216 run_dtc_test -I dts -O dtb -o overlay_overlay.test.dtb overlay_overlay.dts
217 run_test check_path overlay_overlay.test.dtb not-exists "/__symbols__"
218 run_test check_path overlay_overlay.test.dtb exists "/__fixups__"
219 run_test check_path overlay_overlay.test.dtb exists "/__local_fixups__"
221 run_test overlay overlay_base.test.dtb overlay_overlay.test.dtb
223 # test plugin source to dtb and back
224 run_dtc_test -I dtb -O dts -o overlay_overlay_decompile.test.dts overlay_overlay.test.dtb
225 run_dtc_test -I dts -O dtb -o overlay_overlay_decompile.test.dtb overlay_overlay_decompile.test.dts
226 run_test dtbs_equal_ordered overlay_overlay.test.dtb overlay_overlay_decompile.test.dtb
229 run_dtc_test -A -I dts -O dtb -o overlay_base_with_aliases.dtb overlay_base.dts
230 run_test check_path overlay_base_with_aliases.dtb exists "/aliases"
231 run_test check_path overlay_base_with_aliases.dtb not-exists "/__symbols__"
232 run_test check_path overlay_base_with_aliases.dtb not-exists "/__fixups__"
233 run_test check_path overlay_base_with_aliases.dtb not-exists "/__local_fixups__"
276 run_sh_test dtc-checkfails.sh "$@" -- -I dts -O dtb $tree
277 run_dtc_test -I dts -O dtb -o $tree.test.dtb -f $tree
278 run_sh_test dtc-checkfails.sh "$@" -- -I dtb -O dtb $tree.test.dtb
284 tree1_tests test_tree1.dtb
286 run_dtc_test -I dts -O dtb -o addresses.test.dtb addresses.dts
287 run_test addr_size_cells addresses.test.dtb
289 run_dtc_test -I dts -O dtb -o stringlist.test.dtb stringlist.dts
290 run_test stringlist stringlist.test.dtb
294 tree1_tests sw_tree1.test.dtb
295 tree1_tests unfinished_tree1.test.dtb
296 run_test dtbs_equal_ordered test_tree1.dtb sw_tree1.test.dtb
301 tree1_tests sw_tree1.test.dtb
302 tree1_tests unfinished_tree1.test.dtb
303 run_test dtbs_equal_ordered test_tree1.dtb sw_tree1.test.dtb
307 for tree in test_tree1.dtb sw_tree1.test.dtb unfinished_tree1.test.dtb; do
316 for tree in test_tree1.dtb; do
327 for basetree in test_tree1.dtb; do
343 tree1_tests rw_tree1.test.dtb
344 tree1_tests_rw rw_tree1.test.dtb
346 run_test appendprop2 appendprop1.test.dtb
347 run_dtc_test -I dts -O dtb -o appendprop.test.dtb appendprop.dts
348 run_test dtbs_equal_ordered appendprop2.test.dtb appendprop.test.dtb
351 for basetree in test_tree1.dtb sw_tree1.test.dtb rw_tree1.test.dtb; do
358 run_dtc_test -I dts -O dtb -o subnode_iterate.dtb subnode_iterate.dts
359 run_test subnode_iterate subnode_iterate.dtb
361 run_dtc_test -I dts -O dtb -o property_iterate.dtb property_iterate.dts
362 run_test property_iterate property_iterate.dtb
368 run_dtc_test -I dts -O dtb -o aliases.dtb aliases.dts
369 run_test get_alias aliases.dtb
370 run_test path_offset_aliases aliases.dtb
375 run_dtc_test -I dts -O dtb -o sourceoutput.test.dtb sourceoutput.dts
376 run_dtc_test -I dts -O dtb -o sourceoutput.test.dts.test.dtb sourceoutput.test.dts
377 run_test dtbs_equal_ordered sourceoutput.test.dtb sourceoutput.test.dts.test.dtb
379 run_dtc_test -I dts -O dtb -o embedded_nul.test.dtb embedded_nul.dts
380 run_dtc_test -I dts -O dtb -o embedded_nul_equiv.test.dtb embedded_nul_equiv.dts
381 run_test dtbs_equal_ordered embedded_nul.test.dtb embedded_nul_equiv.test.dtb
383 run_dtc_test -I dts -O dtb bad-size-cells.dts
387 run_dtc_test -I dts -O dtb nul-in-escape.dts
391 run_wrap_error_test $DTC -I dtb -O dts -o /dev/null ovf_size_strings.dtb
395 run_dtc_test -I dts -O dtb -o dtc_tree1.test.dtb test_tree1.dts
396 tree1_tests dtc_tree1.test.dtb
397 tree1_tests_rw dtc_tree1.test.dtb
398 run_test dtbs_equal_ordered dtc_tree1.test.dtb test_tree1.dtb
400 run_dtc_test -I dts -O dtb -o dtc_escapes.test.dtb propname_escapes.dts
401 run_test propname_escapes dtc_escapes.test.dtb
403 run_dtc_test -I dts -O dtb -o line_directives.test.dtb line_directives.dts
405 run_dtc_test -I dts -O dtb -o dtc_escapes.test.dtb escapes.dts
406 run_test string_escapes dtc_escapes.test.dtb
408 run_dtc_test -I dts -O dtb -o dtc_char_literal.test.dtb char_literal.dts
409 run_test char_literal dtc_char_literal.test.dtb
411 run_dtc_test -I dts -O dtb -o dtc_sized_cells.test.dtb sized_cells.dts
412 run_test sized_cells dtc_sized_cells.test.dtb
414 run_dtc_test -I dts -O dtb -o dtc_extra-terminating-null.test.dtb extra-terminating-null.dts
415 run_test extra-terminating-null dtc_extra-terminating-null.test.dtb
417 run_dtc_test -I dts -O dtb -o dtc_references.test.dtb references.dts
418 run_test references dtc_references.test.dtb
420 run_dtc_test -I dts -O dtb -o dtc_path-references.test.dtb path-references.dts
421 run_test path-references dtc_path-references.test.dtb
423 run_test phandle_format dtc_references.test.dtb both
425 run_dtc_test -I dts -O dtb -H $f -o dtc_references.test.$f.dtb references.dts
426 run_test phandle_format dtc_references.test.$f.dtb $f
429 run_dtc_test -I dts -O dtb -o multilabel.test.dtb multilabel.dts
430 run_test references multilabel.test.dtb
432 run_dtc_test -I dts -O dtb -o label_repeated.test.dtb label_repeated.dts
434 run_dtc_test -I dts -O dtb -o dtc_comments.test.dtb comments.dts
435 run_dtc_test -I dts -O dtb -o dtc_comments-cmp.test.dtb comments-cmp.dts
436 run_test dtbs_equal_ordered dtc_comments.test.dtb dtc_comments-cmp.test.dtb
439 run_dtc_test -I dts -O dtb -o includes.test.dtb include0.dts
440 run_test dtbs_equal_ordered includes.test.dtb test_tree1.dtb
443 run_dtc_test -I dts -O dtb -o incbin.test.dtb incbin.dts
444 run_test incbin incbin.test.dtb
447 run_dtc_test -I dts -O dtb -o boot_cpuid.test.dtb boot-cpuid.dts
448 run_test boot-cpuid boot_cpuid.test.dtb 16
450 run_dtc_test -I dts -O dtb -b 17 -o boot_cpuid_17.test.dtb boot-cpuid.dts
451 run_test boot-cpuid boot_cpuid_17.test.dtb 17
453 run_dtc_test -I dtb -O dtb -o preserve_boot_cpuid.test.dtb boot_cpuid.test.dtb
454 run_test boot-cpuid preserve_boot_cpuid.test.dtb 16
455 run_test dtbs_equal_ordered preserve_boot_cpuid.test.dtb boot_cpuid.test.dtb
457 run_dtc_test -I dtb -O dtb -o preserve_boot_cpuid_17.test.dtb boot_cpuid_17.test.dtb
458 run_test boot-cpuid preserve_boot_cpuid_17.test.dtb 17
459 run_test dtbs_equal_ordered preserve_boot_cpuid_17.test.dtb boot_cpuid_17.test.dtb
461 run_dtc_test -I dtb -O dtb -b17 -o override17_boot_cpuid.test.dtb boot_cpuid.test.dtb
462 run_test boot-cpuid override17_boot_cpuid.test.dtb 17
464 run_dtc_test -I dtb -O dtb -b0 -o override0_boot_cpuid_17.test.dtb boot_cpuid_17.test.dtb
465 run_test boot-cpuid override0_boot_cpuid_17.test.dtb 0
474 run_dtc_test -I dts -O dtb -o $tree.test.dtb $tree
475 run_test asm_tree_dump ./oasm_$tree.test.so oasm_$tree.test.dtb
476 run_wrap_test cmp oasm_$tree.test.dtb $tree.test.dtb
481 # Check -Odts mode preserve all dtb information
482 for tree in test_tree1.dtb dtc_tree1.test.dtb dtc_escapes.test.dtb \
483 dtc_extra-terminating-null.test.dtb dtc_references.test.dtb; do
484 run_dtc_test -I dtb -O dts -o odts_$tree.test.dts $tree
485 run_dtc_test -I dts -O dtb -o odts_$tree.test.dtb odts_$tree.test.dts
486 run_test dtbs_equal_ordered $tree odts_$tree.test.dtb
490 for tree in test_tree1.dtb ; do
492 atree="ov${aver}_$tree.test.dtb"
493 run_dtc_test -I dtb -O dtb -V$aver -o $atree $tree
496 run_dtc_test -I dtb -O dtb -V$bver -o $btree $atree
503 run_dtc_test -I dts -O dtb -o dtc_tree1_merge.test.dtb test_tree1_merge.dts
504 tree1_tests dtc_tree1_merge.test.dtb test_tree1.dtb
505 run_dtc_test -I dts -O dtb -o dtc_tree1_merge_labelled.test.dtb test_tree1_merge_labelled.dts
506 tree1_tests dtc_tree1_merge_labelled.test.dtb test_tree1.dtb
507 run_dtc_test -I dts -O dtbdtb test_tree1_label_noderef.dts
508 run_test dtbs_equal_unordered dtc_tree1_label_noderef.test.dtb test_tree1.dtb
509 run_dtc_test -I dts -O dtb -o multilabel_merge.test.dtb multilabel_merge.dts
510 run_test references multilabel.test.dtb
511 run_test dtbs_equal_ordered multilabel.test.dtb multilabel_merge.test.dtb
512 run_dtc_test -I dts -O dtb -o dtc_tree1_merge_path.test.dtb test_tree1_merge_path.dts
513 tree1_tests dtc_tree1_merge_path.test.dtb test_tree1.dtb
514 run_wrap_error_test $DTC -I dts -O dtb -o /dev/null test_label_ref.dts
517 run_dtc_test -I dts -O dtb -o dtc_tree1_delete.test.dtb test_tree1_delete.dts
518 tree1_tests dtc_tree1_delete.test.dtb
529 run_sh_test dtc-checkfails.sh phandle_references -- -I dts -O dtb nonexist-node-ref.dts
530 run_sh_test dtc-checkfails.sh phandle_references -- -I dts -O dtb nonexist-label-ref.dts
531 run_sh_test dtc-fatal.sh -I dts -O dtb nonexist-node-ref2.dts
543 run_sh_test dtc-checkfails.sh node_name_chars -- -I dtb -O dtb bad_node_char.dtb
544 run_sh_test dtc-checkfails.sh node_name_format -- -I dtb -O dtb bad_node_format.dtb
545 run_sh_test dtc-checkfails.sh prop_name_chars -- -I dtb -O dtb bad_prop_char.dtb
547 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label1.dts
548 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label2.dts
549 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label3.dts
550 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label4.dts
551 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label5.dts
552 run_sh_test dtc-checkfails.sh duplicate_label -- -I dts -O dtb reuse-label6.dts
554 run_test check_path test_tree1.dtb exists "/subnode@1"
555 run_test check_path test_tree1.dtb not-exists "/subnode@10"
558 run_sh_test dtc-checkfails.sh address_cells_is_cell interrupt_cells_is_cell -n size_cells_is_cell -- -Wno_size_cells_is_cell -I dts -O dtb bad-ncells.dts
559 run_sh_test dtc-fails.sh -n test-warn-output.test.dtb -I dts -O dtb bad-ncells.dts
560 run_sh_test dtc-fails.sh test-error-output.test.dtb -I dts -O dtb bad-ncells.dts -Esize_cells_is_cell
561 run_sh_test dtc-checkfails.sh always_fail -- -Walways_fail -I dts -O dtb test_tree1.dts
562 run_sh_test dtc-checkfails.sh -n always_fail -- -Walways_fail -Wno_always_fail -I dts -O dtb test_tree1.dts
563 run_sh_test dtc-fails.sh test-negation-1.test.dtb -Ealways_fail -I dts -O dtb test_tree1.dts
564 run_sh_test dtc-fails.sh -n test-negation-2.test.dtb -Ealways_fail -Eno_always_fail -I dts -O dtb test_tree1.dts
565 run_sh_test dtc-fails.sh test-negation-3.test.dtb -Ealways_fail -Wno_always_fail -I dts -O dtb test_tree1.dts
566 run_sh_test dtc-fails.sh -n test-negation-4.test.dtb -Esize_cells_is_cell -Eno_size_cells_is_cell -I dts -O dtb bad-ncells.dts
567 run_sh_test dtc-checkfails.sh size_cells_is_cell -- -Esize_cells_is_cell -Eno_size_cells_is_cell -I dts -O dtb bad-ncells.dts
570 run_dtc_test -I dts -O dtb -o stdin_dtc_tree1.test.dtb - < test_tree1.dts
571 run_wrap_test cmp stdin_dtc_tree1.test.dtb dtc_tree1.test.dtb
572 run_dtc_test -I dtb -O dts -o stdin_odts_test_tree1.dtb.test.dts - < test_tree1.dtb
573 run_wrap_test cmp stdin_odts_test_tree1.dtb.test.dts odts_test_tree1.dtb.test.dts
577 run_dtc_test -I dts -O dtb -o integer-expressions.test.dtb integer-expressions.test.dts
578 run_test integer-expressions integer-expressions.test.dtb
581 run_sh_test dtc-fatal.sh -I dts -O dtb nosuchfile.dts
582 run_sh_test dtc-fatal.sh -I dtb -O dtb nosuchfile.dtb
583 run_sh_test dtc-fatal.sh -I fs -O dtb nosuchfile
586 run_dtc_test -I dts -O dtb -o dependencies.test.dtb -d dependencies.test.d dependencies.dts
590 run_wrap_error_test $DTC -I dts -O dtb -o search_paths.dtb search_paths.dts
591 run_dtc_test -i search_dir -I dts -O dtb -o search_paths.dtb \
593 run_wrap_error_test $DTC -i search_dir_b -I dts -O dtb \
594 -o search_paths_b.dtb search_paths_b.dts
595 run_dtc_test -i search_dir_b -i search_dir -I dts -O dtb \
596 -o search_paths_b.dtb search_paths_b.dts
597 run_dtc_test -I dts -O dtb -o search_paths_subdir.dtb \
603 run_dtc_test -O dtb -p 1000 -a $align -o align0.dtb subnode_iterate.dts
604 check_align align0.dtb $align
606 run_dtc_test -O dtb -S 1999 -a $align -o align1.dtb subnode_iterate.dts
607 check_align align1.dtb $align
623 run_test dtbs_equal_ordered -n $basetree $basetree.reversed.test.dtb
630 run_test dtbs_equal_unordered $basetree $basetree.reversed.test.dtb
631 run_test dtbs_equal_unordered $basetree.reversed.test.dtb $basetree
637 run_dtc_test -I dtb -O dtb -s -o $basetree.sorted.test.dtb $basetree
638 run_test dtbs_equal_unordered $basetree $basetree.sorted.test.dtb
639 run_dtc_test -I dtb -O dtb -s -o $basetree.reversed.sorted.test.dtb $basetree.reversed.test.dtb
640 run_test dtbs_equal_unordered $basetree.reversed.test.dtb $basetree.reversed.sorted.test.dtb
641 run_test dtbs_equal_ordered $basetree.sorted.test.dtb $basetree.reversed.sorted.test.dtb
647 run_dtc_test -I dts -O dtb -o test_tree1_wrong$x.test.dtb test_tree1_wrong$x.dts
648 WRONG_TREE1="$WRONG_TREE1 test_tree1_wrong$x.test.dtb"
650 cmp_tests test_tree1.dtb $WRONG_TREE1
655 dtb=$dts.fdtget.test.dtb
656 run_dtc_test -O dtb -o $dtb $dts
659 run_fdtget_test "MyBoardName" $dtb / model
660 run_fdtget_test "MyBoardName MyBoardFamilyName" $dtb / compatible
663 108 121 78 97 109 101 0" -t bu $dtb / compatible
664 run_fdtget_test "MyBoardName MyBoardFamilyName" -t s $dtb / compatible
665 run_fdtget_test 32768 $dtb /cpus/PowerPC,970@1 d-cache-size
666 run_fdtget_test 8000 -tx $dtb /cpus/PowerPC,970@1 d-cache-size
667 run_fdtget_test "61 62 63 0" -tbx $dtb /randomnode tricky1
668 run_fdtget_test "a b c d de ea ad be ef" -tbx $dtb /randomnode blob
671 run_wrap_error_test $DTGET -tlx $dtb /randomnode mixed
672 run_fdtget_test "6162 6300 1234 0 a 0 b 0 c" -thx $dtb /randomnode mixed
674 -thhx $dtb /randomnode mixed
675 run_wrap_error_test $DTGET -ts $dtb /randomnode doctor-who
678 run_fdtget_test "MyBoardName\nmemory" -ts $dtb / model /memory device_type
681 run_wrap_error_test $DTGET -tx $dtb /randomnode doctor-who
683 -d "<the dead silence>" $dtb /randomnode doctor-who
684 run_fdtget_test "<blink>" -tx -d "<blink>" $dtb /memory doctor-who
689 dtb=$dts.fdtput.test.dtb
693 run_dtc_test -O dtb -p $(stat -c %s $text) -o $dtb $dts
696 run_fdtput_test "a_model" $dtb / model -ts "a_model"
697 run_fdtput_test "board1 board2" $dtb / compatible -ts board1 board2
698 run_fdtput_test "board1 board2" $dtb / compatible -ts "board1 board2"
699 run_fdtput_test "32768" $dtb /cpus/PowerPC,970@1 d-cache-size "" "32768"
700 run_fdtput_test "8001" $dtb /cpus/PowerPC,970@1 d-cache-size -tx 0x8001
701 run_fdtput_test "2 3 12" $dtb /randomnode tricky1 -tbi "02 003 12"
702 run_fdtput_test "a b c ea ad be ef" $dtb /randomnode blob \
704 run_fdtput_test "a0b0c0d deeaae ef000000" $dtb /randomnode blob \
706 run_fdtput_test "$(cat $text)" $dtb /randomnode blob -ts "$(cat $text)"
709 run_fdtput_test "$(cat $text $text)" $dtb /randomnode blob -ts "$(cat $text $text)"
711 # Start again with a fresh dtb
712 run_dtc_test -O dtb -p $(stat -c %s $text) -o $dtb $dts
715 run_wrap_error_test $DTPUT $dtb -c /baldrick sod
716 run_wrap_test $DTPUT $dtb -c /chosen/son /chosen/daughter
717 run_fdtput_test "eva" $dtb /chosen/daughter name "" -ts "eva"
718 run_fdtput_test "adam" $dtb /chosen/son name "" -ts "adam"
721 run_wrap_error_test $DTPUT $dtb -c /chosen
722 run_wrap_error_test $DTPUT $dtb -c /chosen/son
725 run_wrap_test $DTPUT $dtb -cp /blackadder/the-second/turnip \
727 run_fdtput_test 1000 $dtb /blackadder/the-second/turnip cost "" 1000
728 run_fdtput_test "fine wine" $dtb /blackadder/the-second/potato drink \
730 run_wrap_test $DTPUT $dtb -p /you/are/drunk/sir/winston slurp -ts twice
733 run_wrap_test $DTPUT $dtb -cp "$(cat $text $text)/longish"
736 run_wrap_test $DTPUT $dtb -cp /chosen
737 run_wrap_test $DTPUT $dtb -cp /chosen/son
739 # Start again with a fresh dtb
740 run_dtc_test -O dtb -p $(stat -c %s $text) -o $dtb $dts
743 run_wrap_test $DTPUT $dtb -c /chosen/node1 /chosen/node2 /chosen/node3
744 run_fdtget_test "node3\nnode2\nnode1" $dtb -l /chosen
745 run_wrap_test $DTPUT $dtb -r /chosen/node1 /chosen/node2
746 run_fdtget_test "node3" $dtb -l /chosen
749 run_wrap_error_test $DTPUT $dtb -r /non-existent/node
752 run_fdtput_test "eva" $dtb /chosen/ name "" -ts "eva"
753 run_fdtput_test "016" $dtb /chosen/ age "" -ts "016"
754 run_fdtget_test "age\nname\nbootargs\nlinux,platform" $dtb -p /chosen
755 run_wrap_test $DTPUT $dtb -d /chosen/ name age
756 run_fdtget_test "bootargs\nlinux,platform" $dtb -p /chosen
759 run_wrap_error_test $DTPUT $dtb -d /chosen non-existent-prop
794 rm -f *.test.dtb *.test.dts