mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
dcb3ed642b
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>
22 lines
338 B
Text
22 lines
338 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Test device tree file for dtoc
|
|
*
|
|
* Copyright 2017 Google, Inc
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
spl-test {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "compat1", "compat2.1-fred", "compat3";
|
|
intval = <1>;
|
|
};
|
|
|
|
spl-test2 {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "compat1", "simple_bus";
|
|
intval = <1>;
|
|
};
|
|
};
|