Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
67 lines
1.1 KiB
Devicetree
67 lines
1.1 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/ {
|
|
testcase-data {
|
|
platform-tests {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
test-device@0 {
|
|
compatible = "test-device";
|
|
reg = <0x0>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dev@100 {
|
|
compatible = "test-sub-device";
|
|
reg = <0x100>;
|
|
};
|
|
};
|
|
|
|
test-device@1 {
|
|
compatible = "test-device";
|
|
reg = <0x1>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dev@100 {
|
|
compatible = "test-sub-device",
|
|
"test-compat2",
|
|
"test-compat3";
|
|
reg = <0x100>;
|
|
};
|
|
};
|
|
|
|
test-device@2 {
|
|
compatible = "test,rust-device";
|
|
reg = <0x2>;
|
|
|
|
test,u32-prop = <0xdeadbeef>;
|
|
test,i16-array = /bits/ 16 <1 2 (-3) (-4)>;
|
|
|
|
ref_child_0: child-0 {
|
|
test,ref-arg = <&ref_child_1 0x20 0x32>;
|
|
};
|
|
ref_child_1: child-1 {
|
|
test,ref-arg = <&ref_child_0 0x10 0x64>;
|
|
};
|
|
};
|
|
};
|
|
|
|
platform-tests-2 {
|
|
// No #address-cells or #size-cells
|
|
node {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
test-device@100 {
|
|
compatible = "test-sub-device";
|
|
reg = <0x100 1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|