2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-06-19 04:09:06 +00:00
|
|
|
/*
|
|
|
|
* Test device tree file for dtoc
|
|
|
|
*
|
|
|
|
* Copyright 2017 Google, Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
/ {
|
2017-08-29 20:15:51 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2017-06-19 04:09:06 +00:00
|
|
|
spl-test {
|
2023-02-13 15:56:37 +00:00
|
|
|
bootph-all;
|
2017-06-19 04:09:06 +00:00
|
|
|
compatible = "sandbox,spl-test";
|
|
|
|
boolval;
|
2021-07-29 01:23:11 +00:00
|
|
|
maybe-empty-int = <>;
|
2017-06-19 04:09:06 +00:00
|
|
|
intval = <1>;
|
2021-11-23 18:03:39 +00:00
|
|
|
int64val = /bits/ 64 <0x123456789abcdef0>;
|
2017-06-19 04:09:06 +00:00
|
|
|
intarray = <2 3 4>;
|
|
|
|
byteval = [05];
|
|
|
|
bytearray = [06];
|
|
|
|
longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
|
|
|
|
stringval = "message";
|
|
|
|
stringarray = "multi-word", "message";
|
2018-07-06 16:27:28 +00:00
|
|
|
notstring = [20 21 22 10 00];
|
2017-06-19 04:09:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
spl-test2 {
|
2023-02-13 15:56:37 +00:00
|
|
|
bootph-all;
|
2017-06-19 04:09:06 +00:00
|
|
|
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";
|
2020-07-08 03:32:06 +00:00
|
|
|
acpi-name = "\\_SB.GPO0";
|
2017-06-19 04:09:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
spl-test3 {
|
2023-02-13 15:56:37 +00:00
|
|
|
bootph-all;
|
2017-06-19 04:09:06 +00:00
|
|
|
compatible = "sandbox,spl-test";
|
|
|
|
stringarray = "one";
|
2020-10-03 17:31:27 +00:00
|
|
|
longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
|
2021-07-29 01:23:11 +00:00
|
|
|
maybe-empty-int = <1>;
|
2017-06-19 04:09:06 +00:00
|
|
|
};
|
|
|
|
|
2017-08-29 20:15:51 +00:00
|
|
|
i2c@0 {
|
2021-02-03 13:00:57 +00:00
|
|
|
compatible = "sandbox,i2c";
|
2023-02-13 15:56:37 +00:00
|
|
|
bootph-all;
|
2017-08-29 20:15:51 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pmic@9 {
|
2021-02-03 13:00:57 +00:00
|
|
|
compatible = "sandbox,pmic";
|
2023-02-13 15:56:37 +00:00
|
|
|
bootph-all;
|
2017-08-29 20:15:51 +00:00
|
|
|
reg = <9>;
|
|
|
|
low-power;
|
|
|
|
};
|
|
|
|
};
|
2021-03-21 05:24:37 +00:00
|
|
|
|
|
|
|
orig-node {
|
|
|
|
orig = <1 23 4>;
|
2022-02-08 18:49:53 +00:00
|
|
|
args = "-n first", "second", "-p", "123,456", "-x";
|
2022-03-06 03:18:52 +00:00
|
|
|
args2 = "a space", "there";
|
|
|
|
args3 = "-n first second -p 123,456 -x";
|
2021-03-21 05:24:37 +00:00
|
|
|
};
|
2017-06-19 04:09:06 +00:00
|
|
|
};
|