File: overlay_overlay_phandle.dts

package info (click to toggle)
device-tree-compiler 1.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,116 kB
  • sloc: ansic: 13,916; sh: 1,200; asm: 713; lex: 522; python: 507; yacc: 499; makefile: 313; perl: 74
file content (34 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
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
/*
 * Copyright (c) 2024 Uwe Kleine-König
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

/dts-v1/;
/plugin/;

&{/} {
	/*
	 * /b already has a label "node_b" in the base dts, also b is already
	 * referenced in the base, so both the base's b and this b have a
	 * phandle value.
	 */
	node_b2: b {
		value = <42>;
		d = <&node_d>;
	};

	node_c: c {
		value = <23>;
		b = <&node_b2>;
	};

	d {
		a = <&node_a>;
		c = <&node_c>;
	};
};

&node_a {
	value = <32>;
};