[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251208073306.75279-1-wenst@chromium.org>
Date: Mon, 8 Dec 2025 15:33:01 +0800
From: Chen-Yu Tsai <wenst@...omium.org>
To: Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: Chen-Yu Tsai <wenst@...omium.org>,
linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 0/3] arm64: dts: mediatek: Split Ciri into overlays
Hi everyone,
This series intends to serve as an example on how we could reorganize
the Chromebook device trees into a common design base DTB and split-out
DTBOs for component options. There will be no SKU-specific DTBO that
handles changing the top level compatible and "model" properties. If
these are important or needed in place of the generic board strings,
the bootloader could be made to insert the correct ones.
A separate YAML file is created to keep a mapping between the composite
DTB and SKU-specific top level compatible strings. These are needed to
build a FIT image that the bootloader can then match the correct DTB
with its own known compatible strings.
I expect the last patch, which drops the SKU specifities and adds the
YAML file to be quite contentious. However I think it would greatly
reduce the number of source files we have to manage, given we have
or will have dozens of SKUs for some models.
This is related to my "Device Tree Metadata: How Bootloaders Pick DTBs
and Apply Overlays" talk at the Device Tree MC at Plumbers [1].
Thanks
ChenYu
[1] https://lpc.events/event/19/contributions/2025/
Chen-Yu Tsai (3):
dt-bindings: arm: mediatek: Add generic Ciri "base" board
arm64: dts: mt8188-ciri: Split into base and overlays based on
components
[EXAMPLE] arm64: dts: mediatek: ciri: Drop SKU-specific overlays
.../devicetree/bindings/arm/mediatek.yaml | 4 +
arch/arm64/boot/dts/mediatek/Makefile | 26 ++++++
...88-geralt-ciri-audio-max98390-es8326.dtso} | 40 ++++++---
...88-geralt-ciri-audio-max98390-rt5682s.dtso | 81 +++++++++++++++++++
...188-geralt-ciri-audio-tas2563-es8326.dtso} | 18 ++---
...88-geralt-ciri-audio-tas2563-rt5682s.dtso} | 46 +++++------
.../mt8188-geralt-ciri-panel-boe.dtso | 10 +++
.../mt8188-geralt-ciri-panel-ivo.dtso | 10 +++
.../dts/mediatek/mt8188-geralt-ciri-sku0.dts | 32 --------
.../dts/mediatek/mt8188-geralt-ciri-sku2.dts | 59 --------------
.../dts/mediatek/mt8188-geralt-ciri-sku3.dts | 32 --------
.../dts/mediatek/mt8188-geralt-ciri-sku4.dts | 48 -----------
.../dts/mediatek/mt8188-geralt-ciri-sku7.dts | 48 -----------
...eralt-ciri.dtsi => mt8188-geralt-ciri.dts} | 54 ++-----------
arch/arm64/boot/dts/mediatek/mt8188.yaml | 51 ++++++++++++
15 files changed, 244 insertions(+), 315 deletions(-)
rename arch/arm64/boot/dts/mediatek/{mt8188-geralt-ciri-sku1.dts => mt8188-geralt-ciri-audio-max98390-es8326.dtso} (59%)
create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-audio-max98390-rt5682s.dtso
rename arch/arm64/boot/dts/mediatek/{mt8188-geralt-ciri-sku5.dts => mt8188-geralt-ciri-audio-tas2563-es8326.dtso} (78%)
rename arch/arm64/boot/dts/mediatek/{mt8188-geralt-ciri-sku6.dts => mt8188-geralt-ciri-audio-tas2563-rt5682s.dtso} (52%)
create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-panel-boe.dtso
create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-panel-ivo.dtso
delete mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku0.dts
delete mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku2.dts
delete mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku3.dts
delete mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku4.dts
delete mode 100644 arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku7.dts
rename arch/arm64/boot/dts/mediatek/{mt8188-geralt-ciri.dtsi => mt8188-geralt-ciri.dts} (81%)
create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.yaml
--
2.52.0.223.gf5cc29aaa4-goog
Powered by blists - more mailing lists