From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3BF6CCF9F8 for ; Fri, 7 Nov 2025 14:06:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E5B2F83D0C; Fri, 7 Nov 2025 15:06:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="n1FR0RVL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D06F483D0C; Fri, 7 Nov 2025 15:06:54 +0100 (CET) Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050:0:465::103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F24AE83D3C for ; Fri, 7 Nov 2025 15:06:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4d318B0Zw7z9tg3; Fri, 7 Nov 2025 15:06:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1762524410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bIfyUKKcLJm0lVbDIo0y2K/Rax58Ry102j035/+gsTw=; b=n1FR0RVLd08kmcg6zXA70TadoEKO8SnWLQ06fFmmw6fNo7DVEzDHBnpsXLJ704XahewwbU SDPtKN4J46iYAcbEmVidpm4FGny7JmzAfP5CyyVtfIreq0VLMbGhcUqW2/r2eTHtk02c0y wNLZwMBfyRkT6yl1gLyjcbWuab+cmPE02ppa79894wNIu0k+iNAy5yy23yuFxepLxOYacN UhHbVy7YduI1yNwy3WKjehzUy5lgWePKOnKlh0uvhIb2pckPghwvFPLvMaQe35RwgDfPPm J/u6auqIE57uYZMkyQlUTTJ4QDjqCH9TX0NQNc83rklY2LPSF/5DYFY6hPNEJg== Message-ID: <537299e3-05a1-4ff4-b594-9c73ed41a0cc@mailbox.org> Date: Fri, 7 Nov 2025 15:06:47 +0100 MIME-Version: 1.0 Subject: Re: [RFC][PATCH] kbuild: Produce diff between base DT and U-Boot augmented DT if DEVICE_TREE_DEBUG=1 To: Heinrich Schuchardt Cc: Adriano Cordova , Ilias Apalodimas , Peter Robinson , Sam Edwards , Tom Rini , u-boot@lists.denx.de References: <20251106210826.371672-1-marek.vasut+renesas@mailbox.org> <417e1b1a-0346-4297-9a72-7befc5b94311@gmx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: <417e1b1a-0346-4297-9a72-7befc5b94311@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-ID: 78153f0531244e091b6 X-MBO-RS-META: the9y1ywro16axa8q31k1j19xr9436gm X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 11/7/25 10:12 AM, Heinrich Schuchardt wrote: > On 11/6/25 22:08, Marek Vasut wrote: >> In case DEVICE_TREE_DEBUG is set, produce a diff between the base DT and >> DT with U-Boot extras, to show how much does the U-Boot DT differ from >> the base DT. This is particularly useful together with OF_UPSTREAM, to >> minimize the diff between upstream DTs and U-Boot DTs. >> >> Example usage: >> $ make r8a779g3_sparrowhawk_defconfig && make DEVICE_TREE_DEBUG=1 >> $ cat ./dts/upstream/src/arm64/renesas/r8a779g3-sparrow-hawk.dtb.diff >> >> This still has a downside. Even 'dtc -I dts -O dts ...' applied on >> base DT and U-Boot augmented DT can produce different phandle IDs >> for the same node in those two DTs, which results in a lot of noise >> in the resulting diff. The only way I can think of is to patch DTC >> to emit full paths in those phandles instead, something like a >> phandle = <&{/full/path/to/remote/end} ...>; What bothers me is ^ this part. Hello Heinrich, > Without documentation developers will not know about the new feature. > Could you, please, add a doc/build/ change in the next iteration. Sure, although I am not convinced it should go in in its current form. Please see my first line of comment.