From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792510648; b=L9GhB+6vd+FOqCTKEmNquQT9Bc5Q36Mvq5ewkjH+W6euu6P0bwKfCcBt8OAG82mC5LMT Bn0yUldAn9o1VvUW7IciD2UKf7+Bb2i/pEFeaKZIvTETXjvtWJYUdXBxpNrnEvfs0k3Xc pXok4t560ByRO7xqRuhZSMq28qHOUTaufSR/Ob1VaRoIW7uED6dNEodPCOkm8lURQBIYZ SRnA+FH7dghLL9DvCpaeEjm9NQpTGng7N07K4npZYEpD9skikZUSghrTE6eeO8VRqRnUw ZquUqFlFphzwkN+dpA+OfgiHRWegW96c38BN0yzmIUi9uNwSmvyiBuuDeRSVYp9EY2g== 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-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=T3H986rNhL4hNTee2wYPIAgfkva+4IvX8vYjO+gsTw7umHY46eViPLnZrtePTVbzCGMD 7YK4RNubijaJoiPOokTIj47uuNhXSdHXGx95bqgeLXQ1syA+PEzwfay8LcYNnLysQv7mT FeHf0n2ZGfCBinvVU++jacA+crGgWIwWnS9DZOaxs+WIuH0+iqSgLgFQxozU8WZ1G0Kie YOvxScLZZzCbQQ7Jb65HDhVAGdDv6R7TLDJLcWsdpks7YKJAIAs8OjLbpo29dGmXYo/sH Teakx1km+IIuZYWhnE9EvJC3eHmsVVOsyeSK74FI3lENKujgW7wHwtEpTTbR5JgOwrQ== 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.179 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (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 3B3B2606A32F for ; Tue, 20 Oct 2026 15:37:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B3B2606A32F 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-f179.google.com with SMTP id 5a478bee46e88-3550c917fd3so4042690eec.0 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=y1wxYgPUNQNGuAOx8Dm7ixxieAPrLGqQ0OLKVwSr2JEGGnWY16wgH/gANNzvfgCZJi l1qs2wW0xDJZCCFeHeiGB6U5AlR2t7QbGHlWrU2+Q6dSjmuZJTPnJiB7BPhmEatZmM1a mrOlChaqaExBCH6CUT9d170mvSjyoKV1U18ZP0/+YEpG/S8pGZIy1F/LakJWS2G/wKtI 2jTrFpcEhouQlggg3YcGPc9mPbW58zIuqUwm2cC0txS5RP13rhJaPuxkz7WMzWZMMJjN BQ6pRJ/jNS6jkdzt4VXP8Q2QniDAcZqx4k1bAZShkT1kyTQFl9yahcLVtp+c0q2DJLzr 9deg== X-Forwarded-Encrypted: i=1; AKwUvBzNV42hAwd04MDx45bC1q0rtTSCnhEkywXDJjR97nuA+LHdF1AHT7zjyvCIqwhqCUI4/vV7+yfQWfZB4M4=@vger.kernel.org X-Gm-Message-State: AFq9FYKaC6cQ2Z3hdDLYXQ0Bm35T6U09mXWzMo+NrD8gsDpLV2Z3SIpa yDcaH6P4Dtsrlyc4OYTzMQrw79ctXfziewaM+g/pRfjHx3ZR04xcrWitNbcUIV4gNg== X-Gm-Gg: AYBFou2RA+p7TidvgY5glzQnQ06+/saSH63a0i7Y4ezA+VeTHVPu+F6dwEDiM3w6cyZ BSi1mSYdaE+ZKxcevptBTIfjVbFYL0NVBQe645RfFXlWF19llg44bCPUTPn8AedFu6QWrY6kq7y ZCulAPEvDlkG/aNdN4vTkrKxnCX50tgBpzFJ8gsVYGpaSf+Q3ssZ74qcQy1/pf4ECiLsGTE8ct9 UQmJypdQEVqM/gnqw8Rs6vBSXQP5KbKR2kVjLwsdMoChK0x/lCTpiLYaTnUI0zNNXAo9tTGsEBL 5DHynDL+bE3fTdTaqyS/RbumeqQP5pMPx8SCZAKoo8yfArOtWxSQr+76muY7iDsTRHE2k05MO4D BIiUoyjbMjp+Kv2WpLNqgUh+Lhuavh6Gak7Q1Y6ulUy7iC9tfCfSTn0pMjw1rNTQ97apchYD0Hu AOOE1XIoUJapOrBPtYJnI758gKFNsl60mJT3saK1k1PFA5U/GsrMDGHS3/iDKtnoMeMNjYYIQjY 1YX05HkSbQ3L7bF5n/e59eZtBq/C25DnSfjs/3pNyR8KkEk+xP+HrQXxhg= 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: linux-kernel@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