platform_external_dtc/tests
David Gibson d2a9da0458 libfdt: Make unit address optional for finding nodes
At present, the fdt_subnode_offset() and fdt_path_offset() functions
in libfdt require the exact name of the nodes in question be passed,
including unit address.

This is contrary to traditional OF-like finddevice() behaviour, which
allows the unit address to be omitted (which is useful when the device
name is unambiguous without the address).

This patch introduces similar behaviour to
fdt_subnode_offset_namelen(), and hence to fdt_subnode_offset() and
fdt_path_offset() which are implemented in terms of the former.  The
unit address can be omitted from the given node name.  If this is
ambiguous, the first such node in the flattened tree will be selected
(this behaviour is consistent with IEEE1275 which specifies only that
an arbitrary node matching the given information be selected).

This very small change is then followed by many more diffs which
change the test examples and testcases to exercise this behaviour.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-10-15 08:27:24 -05:00
..
base01.asm Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.cmd Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.dts Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.stderr Add some initial test cases. 2007-02-15 11:02:44 -06:00
del_node.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
del_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
dtc.sh dtc: Add basic testcases for dtc 2007-09-18 08:40:36 -05:00
dumptrees.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
empty.dts Add missing file. 2005-07-04 13:51:09 +10:00
find_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
get_name.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
get_path.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
getprop.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
label01.dts dtc: add a testcase with labels 2007-07-07 10:14:15 -05:00
Makefile.tests dtc: Add basic testcases for dtc 2007-09-18 08:40:36 -05:00
move_and_save.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
node_offset_by_prop_value.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
nop_node.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
nop_property.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
notfound.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
open_pack.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
parent_offset.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
path_offset.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
root_node.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
run_tests.sh libfdt: Test rw functions on more trees 2007-10-15 08:26:11 -05:00
rw_tree1.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
setprop.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
setprop_inplace.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
subnode_offset.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
supernode_atdepth_offset.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
sw_tree1.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
test01.asm Add some initial test cases. 2007-02-15 11:02:44 -06:00
test01.dts Add some initial test cases. 2007-02-15 11:02:44 -06:00
test01.stderr Add some initial test cases. 2007-02-15 11:02:44 -06:00
test_tree1.dts libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
testdata.h libfdt: Consistently use big-endian property data in testcases 2007-09-17 14:18:19 -05:00
tests.h libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
testutils.c libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
trees.S libfdt: Make unit address optional for finding nodes 2007-10-15 08:27:24 -05:00
truncated_property.c dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00