From 2ff3648e8fc334643a2a30483c07b0332f964082 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sat, 8 Jul 2017 00:38:01 +0100 Subject: [PATCH] device tree info --- README.md | 1 + device-tree.md | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 device-tree.md diff --git a/README.md b/README.md index d6c4cd7..010f4bc 100644 --- a/README.md +++ b/README.md @@ -376,6 +376,7 @@ You can still send key presses to QEMU however even without the mouse capture, j 1. [kmod](kmod.md) 1. [vermagic](vermagic.md) 1. [ftrace](ftrace.md) +1. [Device tree](device-tree.md) 1. [Bibliography](bibliography.md) 1. Examples 1. [Host](host/) diff --git a/device-tree.md b/device-tree.md new file mode 100644 index 0000000..396c139 --- /dev/null +++ b/device-tree.md @@ -0,0 +1,41 @@ +# Device tree + +`platform_device.c` together with its kernel and QEMU forks contains a minimal runnable example. + +Good format descriptions: + +- + +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; + };