device tree info

This commit is contained in:
Ciro Santilli
2017-07-08 00:38:01 +01:00
parent cd94a2087c
commit 2ff3648e8f
2 changed files with 42 additions and 0 deletions

View File

@@ -376,6 +376,7 @@ You can still send key presses to QEMU however even without the mouse capture, j
1. [kmod](kmod.md) 1. [kmod](kmod.md)
1. [vermagic](vermagic.md) 1. [vermagic](vermagic.md)
1. [ftrace](ftrace.md) 1. [ftrace](ftrace.md)
1. [Device tree](device-tree.md)
1. [Bibliography](bibliography.md) 1. [Bibliography](bibliography.md)
1. Examples 1. Examples
1. [Host](host/) 1. [Host](host/)

41
device-tree.md Normal file
View File

@@ -0,0 +1,41 @@
# Device tree
`platform_device.c` together with its kernel and QEMU forks contains a minimal runnable example.
Good format descriptions:
- <https://www.raspberrypi.org/documentation/configuration/device-tree.md>
Minimal example
/dts-v1/;
/ {
a;
};
Check correctness with:
dtc a.dts
Separate nodes are simply merged by node path, e.g.:
/dts-v1/;
/ {
a;
};
/ {
b;
};
then `dtc a.dts` gives:
/dts-v1/;
/ {
a;
b;
};