summaryrefslogtreecommitdiffstats
path: root/scripts/dtc/dt-style-selftest/bad/dts-child-name-order.dts
blob: 54be9f07b6804b29a1d2dc9e63dd046129cab078 (plain)
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
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
/dts-v1/;

/ {
	#address-cells = <1>;
	#size-cells = <1>;

	pmu {
		compatible = "example,pmu";

		/* Include labels to be sure they do not affect sorting */
		foo: foo {
			label = "foo";
		};

		label_bar: bar {
			label = "bar";
		};
	};

	memory@a0000000 {
		device_type = "memory";
		reg = <0x0 0xa0000000 0x0 0x0>;
	};

	pmu-2 {
		compatible = "example,pmu";

		/* Just reference labels to avoid strict warnings */
		example,foo = <&foo>, <&label_bar>;
	};
};