platform_external_dtc/tests/property_iterate.dts
Maxime Ripard d29126c90a libfdt: Add iterator over properties
Implement a macro based on fdt_first_property_offset and
fdt_next_property_offset that provides a convenience to iterate over all
the properties of a given node.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Simon Glass <sjg@chromium.org>
[dwg: Removed a stray trailing blank line]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-07-28 15:29:13 +10:00

23 lines
242 B
Text

/dts-v1/;
/ {
#address-cells = <1>;
#size-cells = <0>;
test1 {
test-properties = <3>;
test {
linux,phandle = <0x1>;
#address-cells = <1>;
#size-cells = <0>;
};
};
test2 {
test-properties = <0>;
test {
};
};
};