public inbox for devicetree-compiler@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Restore phandles from binary representations
@ 2025-09-19  9:29 Uwe Kleine-König
  2025-09-19  9:29 ` [PATCH v2 1/6] Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set Uwe Kleine-König
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2025-09-19  9:29 UTC (permalink / raw)
  To: devicetree-compiler; +Cc: David Gibson

Hello,

the motivation is to improve the result when compiling from dtb to dts.
By restoring the labels and phandles the noise in the output of dtdiff
is considerably reduced in many cases.

This is v2 of the series. (Implicit) v1 can be found at
https://lore.kernel.org/devicetree-compiler/cover.1755692822.git.u.kleine-koenig@baylibre.com
. The only change is an added return statement in an error case that i
missed to add. Thanks to David who spotted that.

Note that this series supersedes https://github.com/dgibson/dtc/pull/151
which can be closed once this series is in.

Best regards
Uwe

Uwe Kleine-König (6):
  Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set
  Set DTSF_PLUGIN if needed when compiling from dtb
  Improve type guessing when compiling to dts format
  Restore labels from __symbols__ node
  Restore phandle references from __local_fixups__ node
  Restore phandle references from __fixups__ node

 dtc.c        |   5 ++
 dtc.h        |   6 ++
 flattree.c   |   6 +-
 livetree.c   | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++
 treesource.c | 114 ++++++++++++++++++++++++---------
 5 files changed, 273 insertions(+), 32 deletions(-)


base-commit: 9197f1ccd95c9475006677aa97bf39727c1e8aa5
-- 
2.51.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-01-16  2:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19  9:29 [PATCH v2 0/6] Restore phandles from binary representations Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 1/6] Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 2/6] Set DTSF_PLUGIN if needed when compiling from dtb Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 3/6] Improve type guessing when compiling to dts format Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 4/6] Restore labels from __symbols__ node Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 5/6] Restore phandle references from __local_fixups__ node Uwe Kleine-König
2025-09-19  9:29 ` [PATCH v2 6/6] Restore phandle references from __fixups__ node Uwe Kleine-König
2025-12-05 15:43 ` [PATCH v2 0/6] Restore phandles from binary representations Uwe Kleine-König
2025-12-08  6:20   ` David Gibson
2025-12-09  7:57     ` Uwe Kleine-König
2026-01-16  2:51       ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox