[PATCH 2/2] Documentation: devicetree: add of_diff hint for visualizing fixups

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Apr 16 02:35:26 PDT 2025


of_diff - + is a very nifty tool, so make sure to mention it in the
documentation.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 Documentation/devicetree/index.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/index.rst b/Documentation/devicetree/index.rst
index 2ca8b72be1ac..94e8d04f63c3 100644
--- a/Documentation/devicetree/index.rst
+++ b/Documentation/devicetree/index.rst
@@ -174,3 +174,12 @@ In the ``chosen``-node, barebox fixes up
 
 These values can be read from the booted linux system in ``/proc/device-tree/``
 or ``/sys/firmware/devicetree/base``.
+
+To see a dry run of what barebox would fixup, the ``of_diff`` command can be
+used::
+
+  # Diff before and after applying fixups on barebox DT
+  of_diff - +
+
+  # Diff kernel device tree before and after fixups
+  of_diff /mnt/mmc2.0/boot/imx6q-tx6q.dtb +
-- 
2.39.5




More information about the barebox mailing list