mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test
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>
This commit is contained in:
committed by
Simon Glass
parent
e81c98649b
commit
ee87a097b0
@@ -127,10 +127,12 @@
|
|||||||
compatible = "denx,u-boot-fdt-test";
|
compatible = "denx,u-boot-fdt-test";
|
||||||
};
|
};
|
||||||
|
|
||||||
clk_fixed: clk-fixed {
|
clocks {
|
||||||
compatible = "fixed-clock";
|
clk_fixed: clk-fixed {
|
||||||
#clock-cells = <0>;
|
compatible = "fixed-clock";
|
||||||
clock-frequency = <1234>;
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <1234>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
clk_sandbox: clk-sbox {
|
clk_sandbox: clk-sbox {
|
||||||
|
@@ -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)
|
if (test->flags & DM_TESTF_PROBE_TEST)
|
||||||
ut_assertok(do_autoprobe(uts));
|
ut_assertok(do_autoprobe(uts));
|
||||||
if (test->flags & DM_TESTF_SCAN_FDT)
|
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
|
* Silence the console and rely on console reocrding to get
|
||||||
|
Reference in New Issue
Block a user