]> git.sur5r.net Git - u-boot/commitdiff
dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 4 Sep 2017 12:55:57 +0000 (14:55 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Sep 2017 03:43:58 +0000 (21:43 -0600)
This allows to scan the DT including all "clocks" node's sub-nodes
in which fixed-clock are defined.
All fixed-clock should be defined inside a clocks node which collect all
external oscillators. Until now, all clocks sub-nodes can't be binded except
if the "simple-bus" compatible string is added which is a hack.

Update test.dts by moving clk_fixed node inside clocks.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
test/dm/test-main.c

index 65b2f8ecdac037c136cc7f3c70ffe5473f76842e..e67d428eb2f725a70d72c41259f57188dd8efd0c 100644 (file)
                compatible = "denx,u-boot-fdt-test";
        };
 
-       clk_fixed: clk-fixed {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <1234>;
+       clocks {
+               clk_fixed: clk-fixed {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <1234>;
+               };
        };
 
        clk_sandbox: clk-sbox {
index 9d88d31467c464aeeba542b8e71a378399ee0498..4478e6b8fc6e94d97cbad8755bd37137c0893fdf 100644 (file)
@@ -92,7 +92,7 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
        if (test->flags & DM_TESTF_PROBE_TEST)
                ut_assertok(do_autoprobe(uts));
        if (test->flags & DM_TESTF_SCAN_FDT)
-               ut_assertok(dm_scan_fdt(gd->fdt_blob, false));
+               ut_assertok(dm_extended_scan_fdt(gd->fdt_blob, false));
 
        /*
         * Silence the console and rely on console reocrding to get