From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792510648; b=WjveS7cIpnzCAwDnnyyEsrXhaDCk0klx9sccImXU7TkIJutM48dSU4/Y4yLvSlYnTMF/ CKXHEsunX+jr/0bJvapKMRk03gCGZv0FEn9YzT3CLEDNTAaEntqmCBTttBtNEVwUaAavk 4KBYtzmp9fWqOwp0edCoIp4LoVnD0poS7VV/U4GF+JGBeUZfiVWBdID24R5UqTwaMlX21 aToP1oWRJmCRSSHP6pIJbrqR/x7/RamByrvOHOs+Ww5FFzqSV4CYDZxx6xY5Bef+66JO+ uRJqEOX+Gow8yTG1iJgRffDS5499XRG/LK/kuuGE+e1Y68ljfn9gahNc5rp64avqYrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792510648; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=ldWxVHDgUgQ18jFdtDAJ8jJd2yZcZSUNdb3f55SGTX0=; b=s/4loqUMn9f9hOYFbZ/9TctDqveU9u4srt2ra5/RtSP0HcRvYfbpbvOm9ENAfNSQNwLZ SSVFtCrdF5X5nWPuwmljbg8MXx+Q/vf2X/KEE5TcnAa7of1f5KTv01TXICkunZMUyYriP yGfjRJlzes1EFc7rpxTL1l/EKOcuOHjKby1+TZr+31DAPoFW6cCqOHiCb1wWIkKoL9Gzm FJR73s8UUEm8LKZEBX/F+ovesGGh4pDUGqAYRX39RIja5tvB5hwj0KAx4Y7eMhGW6+w39 ImqORfe2zHlzvupNqv3tLmNkkGPdzLmHmpq/7WNn/i7Y/NWnZBLRwtwRm+uX31gD0qw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b="Q/M4ohUy"; arc=none smtp.remote-ip=74.125.82.182 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DA38606A334 for ; Tue, 20 Oct 2026 15:37:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3DA38606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Q/M4ohUy Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-3535a54bed9so4650652eec.1 for ; Tue, 20 Oct 2026 08:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1792510646; x=1793115446; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ldWxVHDgUgQ18jFdtDAJ8jJd2yZcZSUNdb3f55SGTX0=; b=Q/M4ohUyAJ7ROEDRnEfif5lqm8SVj4WkJkIxKL1p4bokHsZuMxcjvvMPhVRNkEPoiR j5yWwuiinUbY4oNVulXzeJxLzeXkFBbS4H4E5rlSdZ/O/Z6nTiJi5PNyn3Vb6ayxyQLe DZha0CltkU3t+XeU2wkG4TuszL7LlwU10IXic= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792510646; x=1793115446; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ldWxVHDgUgQ18jFdtDAJ8jJd2yZcZSUNdb3f55SGTX0=; b=F2NNxGbPAIpAEvNpCLuHeS17qqahbFY91Ar4kKK2aZ59Cdp6oK21ssE6RghLrRpmVv TmUgpSMlYILTz0vS818dlqrtBu7cQ/fuSEgMajWI2YWbdslZJeFaveSSc9i3olAEPfRx omCqPpoBUDF21d547x/k/QIn0a7UbMyUyfCyp3gP8FPmA7K17ggUc3JdAy9QEHD/fT+9 ltQXAPzW0ycP27EgxdEh5bDnFJf2QtEMLqPiETsHIwbgCtUHuEWn4meROUUYplwnXGf6 kERKrnFXTnJ+Bk8d4OPWhL09hBQnBU4F+uGFI8yrC9Hi/JoLKivcdA1OLXq3GujWod+Z yWXQ== X-Gm-Message-State: AFq9FYLGzoAk3MxOBXXriHJF9sV/Y32edBZelJdEFbTEXPT1Ws23tB7M SkPhqIflaS6YF0WaSVW/XsPyXT07mxtNqCp954agyj3pGinlGoKnIKyMUFt7oUOvau1bRVMLZac qJ+/xHA== X-Gm-Gg: AYBFou1g4afJ3v/Tqh4gUi9PpNiPwNunWAWn4gzdnDai1bIa3C07McJeDZZX6Q3z2nO 2IG8rUp0fG7AposwbTtRkwH21H1PQXWbZ9/ltOINRAdhmjCS9lqs5Y6JcxhOssSVudLP3K2IM+c gzTfIqhJTqk/IOEBDUbhulHRBOP/TifBwt352CptvuoLDc2kypcyGtR1vO3hgJpNT/s9beqaVpm 0lj90uAUKZdEHzA3AdqZv+IuNY/kw2wx3YROg+ADLVV8qLYQ2ipB5gVkSznrARfoZrEPpWmnERX uYrSarfNu9KCUkjWlc0nihcHtBpKrEJh+FWiYOHHThUxyTccHocrf7TcobFwv7HGELYSPQ5wauz kU195jPJeGntuAXXafbpnzGhzXW2nvqgiVlobrH0WcJCiPnSMYIbVFc1n9doUan+wUxNUdsbWEo AL5a0Ln4cvrFd61Ji+cixPr11cU8ArAZQYXHwF03HFCdC7IwoVkUtGa5aFvp7huHSMdSh8c3mfu BW/Ox4UbgKcUpjIK5/EXvSg9apxt5NBckBQRRd86Kqg2C4Rp8HNBhBDfws= X-Received: by 2002:a05:7300:d409:b0:351:1e2e:da4d with SMTP id 5a478bee46e88-361a1f5019bmr16718087eec.23.1792510646054; Tue, 20 Oct 2026 08:37:26 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2a00:79e0:2e7c:8:1eb1:e432:2cc7:349c]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3607ee0cab0sm51324714eec.3.2026.10.20.08.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2026 08:37:25 -0700 (PDT) From: Douglas Anderson To: Devicetree-compiler@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-kbuild@vger.kernel.org, Brian Norris , Catalin Marinas , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Simon Glass , Chen-Yu Tsai , linux-arm-msm@vger.kernel.org, Nicolas Schier , Peter Griffin , Nathan Chancellor , Tudor Ambarus , Devicetree@vger.kernel.org, Julius Werner , Saravana Kannan , Will Deacon , Michal Simek , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , Alice Ryhl , Andrew Jones , Bjorn Andersson , Breno Leitao , David Sterba , Gary Guo , Josh Poimboeuf , Luis Augenstein , Marco Elver , Mark Rutland , Masahiro Yamada , Miguel Ojeda , Nick Terrell , "Peter Zijlstra (Intel)" , Rong Xu , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , cros-qcom-dts-watchers@chromium.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [RFC PATCH 0/7] arm64: Add fit images for sc7180-trogdor and google,lga Date: Tue, 20 Oct 2026 08:35:18 -0700 Message-ID: <20261020153652.2907186-1-dianders@chromium.org> X-Mailer: git-send-email 2.56.0.212.g129ede20d9-goog X-Mailing-List: devicetree-compiler@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The end goal of this series is to move forward on producing a "universal" Pixel 10 boot image that can boot on a variety of Pixel 10 devices (frankel, blazer, and mustang and eventually multiple revisions of each). At the moment, this is impossible since the Pixel 10 bootloader: * Picks the base devicetree based on SoC ID information. * Picks an overlay devicetree based on Board ID information. * Needs metadata associated with each overlay to match it up. Since we don't have per-board overlays and don't have per-board metadata, that means that today you need to pick exactly one revision of one board and build a boot image just for that. How does this series help us? 1. It uses a checked-in .its script to associate metadata with each board's devicetree. Other tools can parse this metadata in order to craft a package that the Pixel bootloader can understand. 2. It integrates a call to the new `fdtfactor` tool [1], which results in a "base dtb + board dtbo" that looks like what the bootloader needs, at least as long as all the boards have the same SoC. What happens if everyone hates this series and it gets dropped on the floor? Honestly, everything here could just go out of tree and it would be "fine". IMO it's nice to have the Board ID / SoC ID information for each devicetree stored in the same repository as the devicetrees themselves are, but if this has to live somewhere else then so be it. NOTE: from reading the above, you might wonder why the sc7180-trogdor .its script is part of this series. The answer: it's a board I was previously deeply involved in and it is a convenient way for me to prove out that the Chromebook use case works well. I did hack up some changes to the ChromeOS build system to use the provided FIT image and it worked great, but since I'm not on the ChromeOS team these days it's not something I personally plan to follow-up with. It sounds plausible that Chen-Yu may follow-up with it or post a similar change for some Mediatek Chromebooks. [1] http://lore.kernel.org/r/20261015182221.2931742-1-dianders@chromium.org Douglas Anderson (7): scripts/dtc: Add fdtget.c and fdtput.c to sync script scripts/dtc: Update to upstream version v1.8.1-22-gf3451d12532b scripts/dtc: Build fdtget and fdtput host tools arm64: boot: Support building image.fit from a specified FIT_ITS script kbuild: fit: Add opt-in FIT_FACTOR_DTBS support using fdtfactor arm64: dts: google: lga: Add lga.its FIT image script arm64: dts: qcom: sc7180: Add sc7180-trogdor.its FIT image script Makefile | 2 +- arch/arm64/Makefile | 3 + arch/arm64/boot/Makefile | 9 +- arch/arm64/boot/dts/google/lga.its | 68 ++ arch/arm64/boot/dts/qcom/sc7180-trogdor.its | 728 ++++++++++++++++++++ scripts/Makefile.dtbs | 51 +- scripts/Makefile.lib | 67 +- scripts/dtc/.gitignore | 2 + scripts/dtc/Makefile | 6 +- scripts/dtc/checks.c | 2 +- scripts/dtc/fdtget.c | 207 +++--- scripts/dtc/fdtput.c | 280 ++++++-- scripts/dtc/libfdt/fdt_ro.c | 2 + scripts/dtc/libfdt/fdt_rw.c | 41 +- scripts/dtc/libfdt/fdt_sw.c | 3 +- scripts/dtc/libfdt/libfdt.h | 70 +- scripts/dtc/livetree.c | 2 +- scripts/dtc/update-dtc-source.sh | 4 +- scripts/dtc/version_gen.h | 2 +- 19 files changed, 1322 insertions(+), 227 deletions(-) create mode 100644 arch/arm64/boot/dts/google/lga.its create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor.its -- 2.56.0.212.g129ede20d9-goog