From 8512ea2e359cf5217183fc87326a015caab1994d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 6 Jul 2018 10:27:35 -0600 Subject: dtoc: Increase code coverage to 100% Add more tests to increase dtoc code coverage to 100%. Correct a whitespace error in some test .dts files at the same time. Signed-off-by: Simon Glass --- tools/dtoc/dtoc_test_phandle_single.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/dtoc/dtoc_test_phandle_single.dts (limited to 'tools/dtoc/dtoc_test_phandle_single.dts') diff --git a/tools/dtoc/dtoc_test_phandle_single.dts b/tools/dtoc/dtoc_test_phandle_single.dts new file mode 100644 index 0000000000..aacd0b15fa --- /dev/null +++ b/tools/dtoc/dtoc_test_phandle_single.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Test device tree file for dtoc + * + * Copyright 2018 Google, Inc + */ + +/dts-v1/; + +/ { + phandle: phandle-target { + u-boot,dm-pre-reloc; + compatible = "target"; + intval = <0>; + #clock-cells = <0>; + }; + + phandle-source2 { + u-boot,dm-pre-reloc; + compatible = "source"; + clocks = <&phandle>; + }; +}; -- cgit