From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792510647; b=hfKmZMXiW5Xc6HU16iSvpTLPt0tJXZJ2uMVsLAK6ZtA5oMBwansxSNMzqsXvLON9zdiA zGbuDjiZ8GhBEkY3kWSdbxDoiQpqqO2q1D0sp3UmE6HhTEqVrWPBrXwImbontIL6xS737 1yOBSD/mrC8HQngUkOQ0l7E70T+sW/btzaCUVFlB/zNHP4ahWYV8d92zGKIn9lVVOP3KU bjIH4GJF4h9rSW9N4ZGVrr9QrskCai3ZFGZ8ZwiB59rhSJNFHNK7Fhd6fLpBXl8GvBgcu gPOa86O81LBjzJVvGqa9J05HKqxayk4MYcTH/25+VH6PIxZPKzQy7FkqWusGTD02hrg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792510647; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted: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=xcmHcaNPxp6mNjeFjx0/SZMWBRmSE4/9gYFcREMuWp5c6zfBiVHnq6Vsz1jCzqmrQFIW uufqWi6wvDpXbTRqPqRPKIk/nz8QHENCuT+/rHiRcM6dyVMbPOr+Bb5ygNjxfXsseVQIk ssbn2zOV3rivdM8Fgq+RkcYpAn8EVah4VJqdxCpEf3Yn/fiSEwf4wzNeGDeKYpGOsI5dY KRAXpniURYXQgLI3HYRT2UCeShMfXrgrNZWWORV6wxXyh7PLoyje8sSSZ90HETG2lq5ny FV//WDijTUsr3eXRjHGL8JC9knik9vgu6k7/tZsEjgNCT29r/SASxYn82ywL5ylkE/Q== 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.169 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (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 42B2D606A31F for ; Tue, 20 Oct 2026 15:37:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42B2D606A31F 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-f169.google.com with SMTP id 5a478bee46e88-3535a54bed9so4650646eec.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=v5l2LGTpcUPd0AP36aowlEFLo7JScnWKQCHp0LkUYEPKH2PX01Yb7jA2JExsuHn5dg YvlY6yQ7tcr/wN0ZgurN+kqYALMWSsKQ6EiPWT7QHnsZcYzcfzQ3M6Ia4bWTS1t6YQYo DwAVtC8tJufWQYZku4fKah8LT4W4LQqrXKpTjHC7ljcR8GXblZ3WeePmBurJhvtY3UJh WZW2eHcIgWMpHxnYdFphkrsEIU/RrC+rbas2VWo1h4Xpt2YGWQw5y3qF47dTDdGRZdqq +Mb1j3PsZRhhLgXoGE9+VDitF75dSusNdWcGcaP1IpAJV+LhF3WXqTRu5j1RkAo606zi U2HA== X-Forwarded-Encrypted: i=1; AKwUvByzAeX3ufGMnKVbcESj8f1q4kp1PfUJbnvqDBJ72R1jpv11lJDeJTj2fIigRq9s430tjUGE8Ail6CG+@vger.kernel.org X-Gm-Message-State: AFq9FYIisme0v85hpqAh3/uZktINZ8gu8J7pLsZ8m2cA+gYsMWtc8RXs K/kcvd0Hn8itOpH+klgIPDRoDT7SDd6Bsb25VMbNcIIodkvGVYweMZb1vtCn2ToRAw== X-Gm-Gg: AYBFou1Rgt5QR0rEb3qlwjm/GaQyaO4f1tgjUjGEbGA0LAaz677Eu2TYZI8lqEzUm+J qx7TsHpVxYapukFu7935toOtpg/Ab88SmZOKvV5waQ3YKjY6SIGiUCwoILwiZWiZ7QLUxRdZjLI 9diuaDfSqLwDlIPQ1cp5K5BTl/jV4ywW0K1XpTb9y0fn6UEzw9PAp+MgHFTXP85pXf8Pw8DNNfX NfZK2m7nDG+ywRIzTelh3hf1CW6feL2jMHfv1dmkSsAxv+9DxIOR+loT+I5YoXNIWznd+lxemK4 2aU9Si2BbgpqaF6O9jk7aD9+3cOfhdZYJFhehFofThsMTuicPKDOcPsDRP+rT5wMJh53FlqTaee /I+XvxYEJoOwfbzMKOsNiA4kqotq35LAK5/geBeXhh1uEh2J9ZwxaABKTaZahUSCeJk9PrV12zx 3OevSPvEOi3nSNGjE5QTUuEj0lPeXua//bU6dJcKXVUlaQLtQr/SVbZDBi2vwIdQLq9Nvwl3Ly7 mpRWoEwQWuErSP6LVY/QV22AESGfzIPMzSQXw2KaLtF6VYud5bIkTcL0fg= 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@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