From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C830606A33B for ; Fri, 13 Nov 2026 21:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HAGM3odO; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=a/Xk6ixD DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=/XWpc39jBynwI4nBXv0NNeAvE7u5mNOBsmUvCwWc94s=; b=HAGM3odOm4GsMjbIW36KiB60Za hD5abxLLPmEsiNOwwLM20mZ48OrGCY9L5tHl6tsRoACQZHdBJSwLaDHQe7Wz20O6KUmKFcw8+iTfG qXq7Lv6lt9eG6C3KyYBpadSx0rUGmHuIa0shcdK7jvtpjOQ5wsuPMDTKkRD6DrNEUDwP9HpdJCzvT 1HokaKGhwSbUe29BDLUbpRG65ghgNuWl9C1FtNx97GaJmRL/IlPx1U525Qwl4DuyNOtxEBVWaFRUZ /finsJ4BPEqwcrJHHo8YR6rcu1Chag7HMym9RHHj/Qnjj2GdqHiK1e5z4HGTC/yrsihkZzf7relPy aB0BddCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xRyXA-0000000EXow-2iMy; Fri, 13 Nov 2026 21:10:08 +0000 Received: from mail-dl1-x1234.google.com ([2607:f8b0:4864:20::1234]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xRyWU-0000000EXQA-48X5 for linux-arm-kernel@lists.infradead.org; Fri, 13 Nov 2026 21:09:30 +0000 Received: by mail-dl1-x1234.google.com with SMTP id a92af1059eb24-1a2761c69fbso584008c88.0 for ; Fri, 13 Nov 2026 13:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1794604166; x=1795208966; darn=lists.infradead.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=/XWpc39jBynwI4nBXv0NNeAvE7u5mNOBsmUvCwWc94s=; b=a/Xk6ixDJ3q8lSQJ2I+uOudI4Iai1X87dfF+YGoOVhISDEr3sr7gjq/HdkBfns1jxW xQwklDJwEyPeRplaUXKLLxSCPWkav5/4zJmX+t3tJ0akU/Ce3BK3CWBSrirEntoQ4rdQ gIVrtZ/Dhy47skEhBCl0Wl7kXleI+utLhDJIw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794604166; x=1795208966; 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=/XWpc39jBynwI4nBXv0NNeAvE7u5mNOBsmUvCwWc94s=; b=OwOBTq291EPYKlkJf+p8bqfoTL4ngMOPHQsJUCqdGeiz/sr/XCVtb6I2MI86fm9/UO NbHRN9dMF5uExM3xDw1kjWMkfByGrtOtK2omoNvrAG6OcFvxNicsuhlIDn6MjzR4oPs/ PBMLGiILtrwuwKSvSEpE6PNsHyMYnb4YDYKM1EvGbTXeUuu+pgOxaUdBprCp165fcHRT qI2NI5hki89KzkaUlAwSpuQqhZCjU2XkwBMP6U5aOiqBDfAXz35DsrKlaUNWv1XqO8+x El6MCVZ3WOqHO0nFzBK6ugcsCS9hRKPHbNibXq48x6mUNBzh9Uzke41Jw5KlK4THxXPI EIdg== X-Forwarded-Encrypted: i=1; AL+hErHKyEc8ysmDi1tXfa4Zpjb0PizeqDxID48IB2LECpmi6Qd7ioGxCmYsXYjNfXFAXfUJk5qnwEa9tW7rE3ScHabw@lists.infradead.org X-Gm-Message-State: APuU4Z+mU+w4t4iH6m/maaJhvyMmyd47iWtByKfNWHXfgnWhjjrTK4sK RHDCqyidA//hDyKi0OUXZB2KyuznpVkvIj18/ONyITRhvOpf9+vo3VY++fZzEI/DUw== X-Gm-Gg: AYBFou0NxI3CznoEz0k4Is3UdK64/JaHwYsezKSBXFM6p3MmzmHRJ8y3OzVlPZgVtuk wi5g0Dvn11trl+6JE0esOyq8CHV2tSSIHC/o3PR2CUpL4lMO9TikPE6C8y3tJIzbcaSWn6VOZkT c9uAOHWO4LYE6mO8RBQI8aKAa14YbO42CPpvZrORp7cSE1LAhGReODoopcjS791X493zm4ZwjOU Aj19tTJVaBtiYqhhlvRk+RRuYQiQvL0JN598ZfhPfIpqxyINx41zaVovsHSS7oyNaBx/jfW/P+i wYWVGBz1DykpHY4nUHSgDWlgj+34sWQY6Jx/YMjEc+T1I7viLLTpb6fNU566q37NauRTGinFW2Q M4lOA6OPWgOv3nMta1CA8GNfghVZQpMIDG4190hZec0/31jt8808HmgFM9qa62AqLdL4ayqXwUn hHedYfuiU/MD0csKCWN8dzoFJIrXNYlbnPvuYxYnZM71wjv7xNPLras1YeAES7HnZmR2mG5Mesu jhN6T7Mz++APsUqOYGIS/naf0QUxLg0OyCkov/CjKQUxwO48zPLedVgUJ1pJ/g+1XddisI9Kg+2 6m7IU5UUrc9pcxbCKBMpLgCE5DRq1j0bLIs1th6Xk1nksGg7hp0yjy5aOyR/ZhZKcrBSSoIlggO wReTuntfZcyJjMg== X-Received: by 2002:a05:701b:4182:10b0:1b2:5128:df1b with SMTP id a92af1059eb24-1b5031b7dd3mr3390648c88.45.1794604165722; Fri, 13 Nov 2026 13:09:25 -0800 (PST) Received: from dianders.sjc.corp.google.com ([2a00:79e0:2e7c:8:38c:b779:3be9:e682]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b50300e5dcsm8463040c88.0.2026.11.13.13.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2026 13:09:23 -0800 (PST) From: Douglas Anderson To: Devicetree-compiler@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, Julius Werner , Michal Simek , =?UTF-8?q?Andr=C3=A9=20Draszik?= , linux-arm-kernel@lists.infradead.org, Simon Glass , Peter Griffin , linux-kbuild@vger.kernel.org, Tudor Ambarus , Chen-Yu Tsai , Will Deacon , Nathan Chancellor , Devicetree@vger.kernel.org, Catalin Marinas , Nicolas Schier , linux-kernel@vger.kernel.org, Saravana Kannan , Brian Norris , Douglas Anderson , Abel Vesa , Alice Ryhl , Bjorn Andersson , David Sterba , Jonathan Corbet , Josh Poimboeuf , "Lorenzo Stoakes (ARM)" , Manuel Ebner , Marco Elver , Mark Rutland , Mauro Carvalho Chehab , Nick Terrell , "Peter Zijlstra (Intel)" , Randy Dunlap , Rong Xu , Shuah Khan , cros-qcom-dts-watchers@chromium.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, workflows@vger.kernel.org Subject: [RFC PATCH v2 0/5] arm64: Add FIT configurations for sc7180-trogdor and google,lga Date: Fri, 13 Nov 2026 13:09:09 -0800 Message-ID: <20261113210918.356261-1-dianders@chromium.org> X-Mailer: git-send-email 2.56.0.611.g1030f0b940-goog X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261113_130928_436772_3351ABE2 X-CRM114-Status: GOOD ( 24.73 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 `.fitconfig` configuration file alongside the `.dts` files to select which DTBs belong in the FIT image and to associate metadata with each board's configuration in `scripts/make_fit.py` [1]. 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 [2], 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 `.fitconfig` configuration file 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] https://github.com/open-source-firmware/flat-image-tree/pull/66 [2] https://lore.kernel.org/r/20261101220224.1436242-1-dianders@chromium.org v1: https://lore.kernel.org/r/20261020153652.2907186-1-dianders@chromium.org Changes in v2: - New preparatory patch documenting preexisting FIT_COMPRESSION and FIT_DECOMPOSE_DTBS variables (Simon Glass) - Replace FIT_ITS + mkimage + fdtget/fdtput approach with FIT_CONFIG .fitconfig sidecar files handled directly by scripts/make_fit.py (Simon Glass) - Support subnode properties (e.g. match-1/...) and u32 integer values for the proposed FIT configuration match subnode spec (Simon Glass) - Document FIT_CONFIG in Documentation/kbuild/kbuild.rst and under image.fit in arm64 'make help' (Simon Glass) - Update fdtfactor invocation for v2+ flags (-v -> -s, -f -> -F) - Expand commit message and notes to explain why FIT_FACTOR_DTBS is needed, that fdtfactor is an external host dependency, and that compressed DTBs in the FIT are supported (Simon Glass) - Document the optional fdtfactor dependency and FIT_FACTOR_DTBS / FDTFACTOR / FDTFACTOR_ARGS in Documentation/process/changes.rst, Documentation/kbuild/kbuild.rst, and arm64 'make help' (Simon Glass) - Drop fdtget/fdtput sync and hostprog patches (patches 1-3 in v1) now that scripts/make_fit.py handles FIT configuration files directly (Simon Glass) - Replace checked-in lga.its with a compact lga.fitconfig sidecar file consumed by scripts/make_fit.py (Simon Glass) - Move board/SoC matching metadata from the configuration description string to a typed match-1 subnode per the proposed FIT spec extension (Simon Glass) - Replace 728-line sc7180-trogdor.its with a 49-line sc7180-trogdor.fitconfig sidecar file consumed by scripts/make_fit.py (Simon Glass) - Move motivation for sc7180-trogdor from commit notes into the commit message body (Simon Glass) Douglas Anderson (5): kbuild: fit: Document FIT_COMPRESSION and FIT_DECOMPOSE_DTBS kbuild: fit: Support selecting DTBs and config properties from a file kbuild: fit: Add opt-in FIT_FACTOR_DTBS support using fdtfactor arm64: dts: google: lga: Add lga.fitconfig FIT configuration file arm64: dts: qcom: sc7180: Add sc7180-trogdor.fitconfig FIT config file Documentation/kbuild/kbuild.rst | 33 +++++ Documentation/process/changes.rst | 10 ++ arch/arm64/Makefile | 2 + arch/arm64/boot/dts/google/lga.fitconfig | 22 ++++ .../boot/dts/qcom/sc7180-trogdor.fitconfig | 49 ++++++++ scripts/Makefile.dtbs | 17 +++ scripts/Makefile.lib | 32 ++++- scripts/make_fit.py | 117 +++++++++++++++--- 8 files changed, 267 insertions(+), 15 deletions(-) create mode 100644 arch/arm64/boot/dts/google/lga.fitconfig create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor.fitconfig -- 2.56.0.611.g1030f0b940-goog