diff options
author | Walter Lozano <walter.lozano@collabora.com> | 2020-07-23 00:22:03 -0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-28 19:30:39 -0600 |
commit | dcb3ed642bce02ea9d7d7ef8a0a6f656f4fc4f2a (patch) | |
tree | f083d6bc34daa71d5c2a101ee6a9b5d29263fae2 /tools/dtoc/dtoc_test_aliases.dts | |
parent | 6e31458435ac499611a205c67a83be25098135b3 (diff) |
dtoc: look for compatible string aliases in driver list
Currently dtoc checks if the first compatible string in a dtb node
matches either a driver o driver alias name, without taking into account
any other compatible string in the list. In the case that no driver matches
the first compatible string a warning is printed and the U_BOOT_DEVICE is
not being declared correctly.
This patch adds dtoc's support for try all the compatible strings in the
dtb node, in an effort to find the correct driver.
Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/dtoc_test_aliases.dts')
-rw-r--r-- | tools/dtoc/dtoc_test_aliases.dts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dtoc/dtoc_test_aliases.dts b/tools/dtoc/dtoc_test_aliases.dts index e545816f4e..ae33716863 100644 --- a/tools/dtoc/dtoc_test_aliases.dts +++ b/tools/dtoc/dtoc_test_aliases.dts @@ -14,4 +14,9 @@ intval = <1>; }; + spl-test2 { + u-boot,dm-pre-reloc; + compatible = "compat1", "simple_bus"; + intval = <1>; + }; }; |