UPSTREAM: 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. Change-Id: I9c346d812b0ee270f9b6fc6b6f60af7c28ebb46e Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit ee87a097b0f66158ce2985940a5f28ba15a3552d)
This commit is contained in:
parent
46fb92f0e8
commit
b048a4dbd0
|
|
@ -127,11 +127,13 @@
|
|||
compatible = "denx,u-boot-fdt-test";
|
||||
};
|
||||
|
||||
clocks {
|
||||
clk_fixed: clk-fixed {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <1234>;
|
||||
};
|
||||
};
|
||||
|
||||
clk_sandbox: clk-sbox {
|
||||
compatible = "sandbox,clk";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue