[PATCH] Documentation: devicetree: list automatic boot argument fixups

Johannes Zink j.zink at pengutronix.de
Fri Mar 17 04:07:48 PDT 2023


Barebox automatically fixes up several entries to the root and
chosen-node of the devicetree passed to the booted system.

These entries contain information about the hardware, reset source
and the barebox version string.

Add documentation on how to query these information from the booted
linux system.

Signed-off-by: Johannes Zink <j.zink at pengutronix.de>
---
 Documentation/devicetree/index.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/devicetree/index.rst b/Documentation/devicetree/index.rst
index 36fa69058d1d..92a91dc35a11 100644
--- a/Documentation/devicetree/index.rst
+++ b/Documentation/devicetree/index.rst
@@ -151,3 +151,24 @@ Contents:
    bindings/regulator/*
    bindings/rtc/*
    bindings/watchdog/*
+
+automatic boot argument fixups to the devicetree
+------------------------------------------------
+
+Barebox automatically fixes up some arguments in the devicetree.
+
+In the devicetree root barebox fixes up
+
+ * serial-number (if available)
+ * machine compatible (if available)
+
+In the ``chosen``-node barebox fixes up
+
+ * barebox-version
+ * reset-source
+ * reset-source-instance (if available)
+ * reset-source-device (phandle, only if available)
+ * bootsource
+ * boot-hartid (only on RISCV)
+
+These values can be read from the booted linux system in ``/proc/device-tree/``.
-- 
2.30.2




More information about the barebox mailing list