Lines Matching +full:foo +full:- +full:bar
1 .. SPDX-License-Identifier: GPL-2.0
7 This document describes the implementation of the in-kernel
9 companion document to Documentation/devicetree/dynamic-resolution-notes.rst[1]
12 -----------------
21 Lets take an example where we have a foo board with the following base tree::
23 ---- foo.dts ---------------------------------------------------------------
24 /* FOO platform */
25 /dts-v1/;
27 compatible = "corp,foo";
39 ---- foo.dts ---------------------------------------------------------------
41 The overlay bar.dts,
44 ---- bar.dts - overlay target location by label ----------------------------
45 /dts-v1/;
48 /* bar peripheral */
49 bar {
50 compatible = "corp,bar";
54 ---- bar.dts ---------------------------------------------------------------
56 when loaded (and resolved as described in [1]) should result in foo+bar.dts::
58 ---- foo+bar.dts -----------------------------------------------------------
59 /* FOO platform + bar peripheral */
61 compatible = "corp,foo";
72 /* bar peripheral */
73 bar {
74 compatible = "corp,bar";
79 ---- foo+bar.dts -----------------------------------------------------------
81 As a result of the overlay, a new device node (bar) has been created
82 so a bar platform device will be registered and if a matching device driver
85 If the base DT was not compiled with the -@ option then the "&ocp" label
91 The above bar.dts example modified to use target path syntax is::
93 ---- bar.dts - overlay target location by explicit path --------------------
94 /dts-v1/;
97 /* bar peripheral */
98 bar {
99 compatible = "corp,bar";
103 ---- bar.dts ---------------------------------------------------------------
106 Overlay in-kernel API
107 --------------------------------
118 Finally, if you need to remove all overlays in one-go, just call