mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
f02d0eb3fa
The start of an ACPI path typically has backslashes in it. These are not preserved during the translation from device tree to C code, since dtc (correctly) uses the first backslash as an escape character, and dtoc therefore leaves it out of the C string. Fix this with special-case handling. Signed-off-by: Simon Glass <sjg@chromium.org>
63 lines
1.1 KiB
Text
63 lines
1.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Test device tree file for dtoc
|
|
*
|
|
* Copyright 2017 Google, Inc
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
spl-test {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "sandbox,spl-test";
|
|
boolval;
|
|
intval = <1>;
|
|
intarray = <2 3 4>;
|
|
byteval = [05];
|
|
bytearray = [06];
|
|
longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
|
|
stringval = "message";
|
|
stringarray = "multi-word", "message";
|
|
notstring = [20 21 22 10 00];
|
|
};
|
|
|
|
spl-test2 {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "sandbox,spl-test";
|
|
intval = <3>;
|
|
intarray = <5>;
|
|
byteval = [08];
|
|
bytearray = [01 23 34];
|
|
longbytearray = [09 0a 0b 0c];
|
|
stringval = "message2";
|
|
stringarray = "another", "multi-word", "message";
|
|
acpi-name = "\\_SB.GPO0";
|
|
};
|
|
|
|
spl-test3 {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "sandbox,spl-test";
|
|
stringarray = "one";
|
|
};
|
|
|
|
spl-test4 {
|
|
u-boot,dm-pre-reloc;
|
|
compatible = "sandbox,spl-test.2";
|
|
};
|
|
|
|
i2c@0 {
|
|
compatible = "sandbox,i2c-test";
|
|
u-boot,dm-pre-reloc;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pmic@9 {
|
|
compatible = "sandbox,pmic-test";
|
|
u-boot,dm-pre-reloc;
|
|
reg = <9>;
|
|
low-power;
|
|
};
|
|
};
|
|
};
|