mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Walter Lozano](/assets/img/avatar_default.png)
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>
23 lines
338 B
Plaintext
23 lines
338 B
Plaintext
// 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>;
|
|
};
|
|
};
|