Commit 2f3b95dbc78ce96b0f9f471e688db66223988419
1 parent
040b69af72
Exists in
v2017.01-smarct4x
and in
37 other branches
dm: core: Set device tree node for root device
The root device corresponds to the root device tree node, so set this up. Also add a few notes to the documentation. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 2 changed files with 7 additions and 0 deletions Side-by-side Diff
doc/driver-model/README.txt
... | ... | @@ -363,6 +363,10 @@ |
363 | 363 | in your ofdata_to_platdata (or probe) method to allocate the required memory, |
364 | 364 | and you should free it in the remove method. |
365 | 365 | |
366 | +The driver model tree is intended to mirror that of the device tree. The | |
367 | +root driver is at device tree offset 0 (the root node, '/'), and its | |
368 | +children are the children of the root node. | |
369 | + | |
366 | 370 | |
367 | 371 | Declaring Uclasses |
368 | 372 | ------------------ |
drivers/core/root.c