From dcb3ed642bce02ea9d7d7ef8a0a6f656f4fc4f2a Mon Sep 17 00:00:00 2001 From: Walter Lozano Date: Thu, 23 Jul 2020 00:22:03 -0300 Subject: 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 Reviewed-by: Simon Glass --- tools/dtoc/dtoc_test_aliases.dts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/dtoc/dtoc_test_aliases.dts') 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>; + }; }; -- cgit