f7e5737f26
This test was accidentally skipped as the wrong test dts file was built. The fragment numbering in this sugar-free test case needed adjusting to match the numbering generated by dtc for overlay_overlay.dts. Signed-off-by: Paul Barker <pbarker@konsulko.com> Message-Id: <20201219143521.2118-1-pbarker@konsulko.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
86 lines
1.2 KiB
Text
86 lines
1.2 KiB
Text
/*
|
|
* Copyright (c) 2016 NextThing Co
|
|
* Copyright (c) 2016 Free Electrons
|
|
* Copyright (c) 2016 Konsulko Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
/ {
|
|
/* Test that we can change an int by another */
|
|
fragment@0 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
test-int-property = <43>;
|
|
};
|
|
};
|
|
|
|
/* Test that we can replace a string by a longer one */
|
|
fragment@1 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
test-str-property = "foobar";
|
|
};
|
|
};
|
|
|
|
/* Test that we add a new property */
|
|
fragment@2 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
test-str-property-2 = "foobar2";
|
|
};
|
|
};
|
|
|
|
/* Test that we add a new node (by phandle) */
|
|
fragment@3 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
new-node {
|
|
new-property;
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@4 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
local: new-local-node {
|
|
new-property;
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@5 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
test-phandle = <&test>, <&local>;
|
|
};
|
|
};
|
|
|
|
fragment@6 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
test-several-phandle = <&local>, <&local>;
|
|
};
|
|
};
|
|
|
|
fragment@7 {
|
|
target = <&test>;
|
|
|
|
__overlay__ {
|
|
sub-test-node {
|
|
new-sub-test-property;
|
|
};
|
|
};
|
|
};
|
|
};
|