mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 09:48:16 +00:00
dac8228df9
Currently dtoc scans dtbs to convert them to struct platdata and to generate U_BOOT_DEVICE entries. These entries need to be filled with the driver name, but at this moment the information used is the compatible name present in the dtb. This causes that only nodes with a compatible name that matches a driver name generate a working entry. In order to improve this behaviour, this patch adds to dtoc the capability of scan drivers source code to generate a list of valid driver names and aliases. This allows to generate U_BOOT_DEVICE entries using valid driver names and rise a warning in the case a name is not valid. Signed-off-by: Walter Lozano <walter.lozano@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org> Open files in utf-8 mode: Signed-off-by: Simon Glass <sjg@chromium.org>
20 lines
310 B
Text
20 lines
310 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Test device tree file for dtoc
|
|
*
|
|
* Copyright 2020 Collabora Ltd.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
gpio_a: gpios@0 {
|
|
u-boot,dm-pre-reloc;
|
|
gpio-controller;
|
|
compatible = "sandbox_gpio_alias";
|
|
#gpio-cells = <1>;
|
|
gpio-bank-name = "a";
|
|
sandbox,gpio-count = <20>;
|
|
};
|
|
|
|
};
|