File: tests-platform.dtsi

package info (click to toggle)
linux 6.19.4-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,759,672 kB
  • sloc: ansic: 27,007,359; asm: 273,393; sh: 151,330; python: 81,278; makefile: 58,557; perl: 34,311; xml: 21,064; cpp: 5,986; yacc: 4,841; lex: 2,901; awk: 1,707; sed: 30; ruby: 25
file content (66 lines) | stat: -rw-r--r-- 1,142 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// 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>;
				};
			};
		};
	};
};