]> Git Repo - linux.git/blob - drivers/of/unittest-data/tests-platform.dtsi
Linux 6.14-rc3
[linux.git] / drivers / of / unittest-data / tests-platform.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2
3 / {
4         testcase-data {
5                 platform-tests {
6                         #address-cells = <1>;
7                         #size-cells = <0>;
8
9                         test-device@0 {
10                                 compatible = "test-device";
11                                 reg = <0x0>;
12
13                                 #address-cells = <1>;
14                                 #size-cells = <0>;
15
16                                 dev@100 {
17                                         compatible = "test-sub-device";
18                                         reg = <0x100>;
19                                 };
20                         };
21
22                         test-device@1 {
23                                 compatible = "test-device";
24                                 reg = <0x1>;
25
26                                 #address-cells = <1>;
27                                 #size-cells = <0>;
28
29                                 dev@100 {
30                                         compatible = "test-sub-device",
31                                                      "test-compat2",
32                                                      "test-compat3";
33                                         reg = <0x100>;
34                                 };
35                         };
36
37                         test-device@2 {
38                                 compatible = "test,rust-device";
39                                 reg = <0x2>;
40                         };
41                 };
42
43                 platform-tests-2 {
44                         // No #address-cells or #size-cells
45                         node {
46                                 #address-cells = <1>;
47                                 #size-cells = <1>;
48
49                                 test-device@100 {
50                                         compatible = "test-sub-device";
51                                         reg = <0x100 1>;
52                                 };
53                         };
54                 };
55         };
56 };
This page took 0.034772 seconds and 4 git commands to generate.