2016-09-30 15:57:17 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 NextThing Co
|
|
|
|
* Copyright (c) 2016 Free Electrons
|
2016-12-07 13:48:20 +01:00
|
|
|
* Copyright (c) 2016 Konsulko Inc.
|
2016-09-30 15:57:17 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
/plugin/;
|
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
/* Test that we can change an int by another */
|
|
|
|
&test {
|
|
|
|
test-int-property = <43>;
|
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
/* Test that we can replace a string by a longer one */
|
|
|
|
&test {
|
|
|
|
test-str-property = "foobar";
|
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
/* Test that we add a new property */
|
|
|
|
&test {
|
|
|
|
test-str-property-2 = "foobar2";
|
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
/* Test that we add a new node (by phandle) */
|
|
|
|
&test {
|
|
|
|
new-node {
|
|
|
|
new-property;
|
2016-09-30 15:57:17 +02:00
|
|
|
};
|
2018-03-06 03:45:23 +01:00
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
&test {
|
|
|
|
local: new-local-node {
|
|
|
|
new-property;
|
2016-09-30 15:57:17 +02:00
|
|
|
};
|
2018-03-06 03:45:23 +01:00
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
&test {
|
|
|
|
test-phandle = <&test>, <&local>;
|
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
&test {
|
|
|
|
test-several-phandle = <&local>, <&local>;
|
|
|
|
};
|
2016-09-30 15:57:17 +02:00
|
|
|
|
2018-03-06 03:45:23 +01:00
|
|
|
&test {
|
|
|
|
sub-test-node {
|
|
|
|
new-sub-test-property;
|
2016-09-30 15:57:17 +02:00
|
|
|
};
|
|
|
|
};
|