This commit is contained in:
Ciro Santilli
2018-02-10 12:58:34 +00:00
parent 9a35e4c37a
commit 0f4702d17d
25 changed files with 2145 additions and 2 deletions

50
device-tree.adoc Normal file
View File

@@ -0,0 +1,50 @@
[[device-tree]]
= 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;
};
....