tests-phandle.dtsi 849 字节
Newer Older
G
Grant Likely 已提交
1 2

/ {
3 4 5 6 7
	aliases {
		testcase-alias = &testcase;
	};

	testcase: testcase-data {
8 9 10
		security-password = "password";
		duplicate-name = "duplicate";
		duplicate-name { };
G
Grant Likely 已提交
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
		phandle-tests {
			provider0: provider0 {
				#phandle-cells = <0>;
			};

			provider1: provider1 {
				#phandle-cells = <1>;
			};

			provider2: provider2 {
				#phandle-cells = <2>;
			};

			provider3: provider3 {
				#phandle-cells = <3>;
			};

			consumer-a {
				phandle-list =	<&provider1 1>,
						<&provider2 2 0>,
						<0>,
						<&provider3 4 4 3>,
						<&provider2 5 100>,
						<&provider0>,
						<&provider1 7>;
				phandle-list-names = "first", "second", "third";

				phandle-list-bad-phandle = <12345678 0 0>;
				phandle-list-bad-args = <&provider2 1 0>,
							<&provider3 0>;
41 42
				empty-property;
				unterminated-string = [40 41 42 43];
G
Grant Likely 已提交
43 44 45 46
			};
		};
	};
};