| Message ID | 20261203171852.62649-26-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBLWJY3MAMGQELHVXDYY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 19F043F3B1
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 3 Dec 2026 18:19:43 +0100 (CET)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-4bb68d624basf108714265e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 03 Dec 2026 09:19:43 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1796318382; cv=pass;
d=google.com; s=arc-20260327;
b=PXBFIU8wJHvPwrXHMpUcQ4noE37P7iZ57b/Avq9ytT5ERJd82FZ/baNU4eCKDG6MF7
w4FkMaJIDaFq3syX9xVJUqvfIlGStOp0bICX+OrGec0s0dihwUY5BJ1P3LZuC2BPjV0O
qu2EUjgDNOytLXPybFxuliyLDowPK640wMSpy3pdiATOfqqQ/mYuUWhKHBrkwpUgF8UU
73qiOCvCZEBq1BDHhgzeVoA8Zv8eCSPOk8VhLsL57BcIJHGH9NaEIC0QvDHxKUP+/t1V
nDcKF0oazt/7BVGb+8qLfcn7cRJ6//0kx9LBj7DBQIEEeQgOZHCrmCRbdHvi70cOlGHx
w12Q==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=QR4lwk5daEBerCR9k/++aOCiebFk3baAu/5Onb0GaUM=;
fh=lQrdbRDZeBH9hf88+d4ullen2mhAVtyjeJ7NcXLDaCs=;
b=gwen3GEJdLhPucEBL1v1UZHVyFkRrNktOzDN13xThd7VUYxFOAfBDi6W843bBqjkk9
+M5+Qusd1jLzeCwSZLhuFA9WqvmEXXoLgJXNbVYo88WNvIyiC74J7dHeFxT3qWnwC+Yw
omRx7bXw2zntbuD4GJKaON993d8K3owzfDu1PKmgRuAaTNSIq+7SoGAsSlmz4FGOqKOD
H19gz58yiHmjpK7ZmI6ZB7KCCGxuAQeiQ6vLE9fDC8CQ130drVSSYwCKjFnRGArtH+Ys
TJTfdvk2DwBAfG/GS6+723LoMfeXwJsjJzHbsZGcUE+GQIyl7719whjBGLbzkFmxRPo3
aiTA==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=Zni9Ot3f;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1796318382; x=1796923182;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=QR4lwk5daEBerCR9k/++aOCiebFk3baAu/5Onb0GaUM=;
b=MG5Df1z/NwUWBWPVOJXKCntwPtPmxdVi4+PhSQopDsJo5eTO3geGfVHhGPm32XOBAp
kaXGLlTbCc9efFKd1VPgP3ChL1xhL3raDcunybDNVhJREYgp+U+yzOG37s3N+EmeQu58
UDLkRj0vIBz/ubHG2QsLzT0UQjsuC4AiB4UIQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796318382; x=1796923182;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:references:in-reply-to:message-id:date:subject:cc:to
:from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=QR4lwk5daEBerCR9k/++aOCiebFk3baAu/5Onb0GaUM=;
b=ZM//IHM5628UVRfGs9x6Gs5al7C60hqaVqkRmE+5X+685OQu0bLIGT22SfT+aozHcJ
SqvOW9S82dOtCci5qCQDYjojF5NUTu/GtTBXczoScNo8YeNKAlkt2jpB21SLOQ1k8CWC
U4u6aD9TfitRKpPuQq57kOJnEOy5mRNigkaO0n63Kf4PuIkdicysHRK7ELslBkbjGG/9
KHnEIotB9qbSpB27d+uOIRyb+Ra4bdYqUz8sriUQNJo7y+7NDxqVyDit+Cm+ug/h7sYa
foOilt8BDWqTU7o/E5VChPe8P2u0a+TQSWZonByXQOBVaU5AS8OFtQYolgaVi4eJNGVQ
ISJw==
X-Forwarded-Encrypted: i=2;
AL+hErG6UoKYf/O4xcZ5aEEnVfZ8yXQ0wFQElbaHrRNsKVFKLzs4rVmos3wgTLR75pnDo7AQIm72QqNZ3DLH8Abm@patchwork.amarulasolutions.com
X-Gm-Message-State: APuU4Z8k0teJlU5nRXEa9vB8wiJ0f2cXGg2cs8HSZa6r8S/vL7d9nuzi
QTcrEZY/WxnCeJwglkzWbJ3b1u+/nhcJ4R6Yz0GBfuPdr8/gjz4lrR6GzfEJELPFNaonFw==
X-Received: by 2002:a05:600c:4e02:b0:4a4:4d57:8462 with SMTP id
5b1f17b1804b1-4bb88812b1cmr859228385e9.24.1796318382738;
Thu, 03 Dec 2026 09:19:42 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="ATskLddzrO33nuCNSS6/Q7roBWXCZFftBxRo/qNA9PXS0wOsvw=="
Received: by 2002:a05:600c:3b85:b0:4a7:a5ad:69e0 with SMTP id
5b1f17b1804b1-4bb88f1afe8ls6514855e9.0.-pod-prod-02-eu; Thu, 03 Dec 2026
09:19:41 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErEAu4OnudzBFVVn01LZW6wWYQ3WSA11BKvbo8dcP5R7pD3Z62Z34pnbeq2TFmbVKK1YR88nVIwUgC2bHvVH@amarulasolutions.com
X-Received: by 2002:a05:600c:8486:b0:4a6:4d6b:a840 with SMTP id
5b1f17b1804b1-4bb88819468mr876955285e9.31.1796318381483;
Thu, 03 Dec 2026 09:19:41 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796318381; cv=none;
d=google.com; s=arc-20260327;
b=slGLunsBTRZynMTsLzOmeEKHWAJ1H9KnNj9vl97gF6d6axoBYWrpFMW7bKFfqJC/Sj
YwRvvDS4qodqyLXsNNCIc+bahmlyMqbILXUHt6MVLB+tkG11Z/ebEn5VKQPHgY81+Vl4
vwi6X6PCDRUBU32r8HjnFFNosKp+hlTzzUp8r0e0LWdcqYi8lXwa2M0jWE3cRD+e1qI3
z8+TqUgv85dXlhOnj8qhT/Vudk6H0S3O9yRMYNBfAaG4Dse6tVsxFqu30RIecrm+v22x
OAMakYxpIqyrNhhe38npj/CYxYvNkrzRzEVmMkNGC6e7PXRdCC1P0r7fqTvdcXzaBYYu
SwjQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=Zpi2Ao3+FHc8t0asL052VCpTY7Wyen5k2Q/KCzvXYMc=;
fh=h7ZcvA+/cz/b2A1xJM3fBb6pXbw2CLYk3qozWFEZ/tc=;
b=D4zBqHEtcn3sdoahaYXtXg0UDVojHpyVRrccBqUVnsBCnqME0cempqem9zxazyJIaw
lci2z5Q13CHDje9IYCwFY/J9uVG7sWylcFPE7MxxMOZ6njEGWoFEUyx1iXmNAE5stbO5
fe6PH9KLrQHv9ucTqMUj9KKblMfYruAadk0UAU2EGKorZinmsFZUk0M51yOvpjeZ5DG5
fL56d9qtmppfMIveee+EWjsT02Lxikj3OPm2jh2u6BpuZuxgloTClcAslBWuFSo4N4Mm
rrg+gosZI/n5ofwfgVR0nXIpVaojIO8hPeaOxE9gu2XhTwcmN+50/QjXwK6441JpINfF
zGMQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=Zni9Ot3f;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-4ab5f72e664sor9340823f8f.6.2026.12.03.09.19.41
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 03 Dec 2026 09:19:41 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AL+hErEoYVKcs1CzXASyi0la4AuP+zlYJ7ybau6NFzoIsvjsr2Kc+iXqRbWLP4HRcdxmn+wiOP5jzOwVBjFmso+e@amarulasolutions.com
X-Gm-Gg: AZFdTZf7YS9IUqpRaN8qmrkQFSOLtrUiqjB1m9jFrnh/As2mQJ4+kP1Q3XWy8aLKdRy
wll9GZV15z4JoG5lIxZd/sh9s6LmLxt6+8mUOXWtwWRUHLR2ZtVCEOInMla/mCj1tp4sX9HSBke
tXExOgJX8KpZFaYwKZBaB8+p5olFTWr7mFZejZf/W9fU0NxPR7S67TFpLLCC/V/544kp9zSX9Nk
VgonQ8yroJbFPue3U9+X3ibDAvx1gqapNap0PPhsxUPSoCCnLrz3yWm5pu82M3nhmBAyEG9Btoh
KmQ556isc5AJClxwzPEPnwH87MHFuDNxynTtUNgtDum1lqLQEVWxdpI4P5l0U63bm6EB20XN6Be
jGKgydehoVh1w4Jx2qhT8nIwehpdWTa3/+5suRLODWkd/gRkTpybLOAUtY63k8x8CvdLV2K6O/9
J8AX1lHwMleUYHrHOq9c2tJYOayFajd8gc3/vKvvLEUuHCfogiACDhE7Gq6xz8I3h98FvrYps13
62ljE+1QGWIYp8u3SevjLdbNTZ+MEH8R1XvP48U4vjOOHiiUU18jBAWPyM56twuHT0+mV6F/1fX
lUUzc+31yrNnCVPy+4gAAJu0h6XS7ws3Owp62L57b6wyjI2mOeCvqexYXz1BlEIisTlANaiw4em
B3huBExXQ1I3y9B9hA1zbOzaUW5IkhskdvCd/jXK+H4+XkcJhoMiLn89zgGBDZZLOTAFaIJYJ4w
i12rioRYZtZogvgA1dSHgXzHzjIF9oq5uRGrSsu8Ymy4YG+LU=
X-Received: by 2002:a05:6000:2489:b0:48e:2108:4d28 with SMTP id
ffacd0b85a97d-4abb1baaa3emr87194420f8f.13.1796318381018;
Thu, 03 Dec 2026 09:19:41 -0800 (PST)
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-79-14-29-58.business.telecomitalia.it. [79.14.29.58])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-4d173ab8e3fsm329012f8f.42.2026.12.03.09.19.39
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 03 Dec 2026 09:19:40 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: michael@amarulasolutions.com,
Yannick Fertre <yannick.fertre@foss.st.com>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Tom Rini <trini@konsulko.com>,
Andrew Goodbody <andrew.goodbody@linaro.org>,
Casey Connolly <casey.connolly@linaro.org>,
Johan Jonker <jbx6244@gmail.com>,
Yao Zi <me@ziyao.cc>,
u-boot@lists.u-boot-project.org (open list)
Subject: [PATCH v4 25/29] dts: support applying DT overlays to the control DT
with OF_UPSTREAM
Date: Thu, 3 Dec 2026 18:18:10 +0100
Message-ID: <20261203171852.62649-26-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com>
References: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=Zni9Ot3f;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Add Engicam MicroGEA-STM32MP257D-RMM board support
|
|
Commit Message
Dario Binacchi
Dec. 3, 2026, 5:18 p.m. UTC
Extend to OF_UPSTREAM the support for building the control DT by applying DT overlays to a base DT, so far available for the DTs in arch/$(ARCH)/dts only. The upstream DT overlays to apply are listed in CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Tom Rini <trini@konsulko.com> --- (no changes since v3) Changes in v3: - Add Reviewed-by tag Changes in v2: - New patch dts/Kconfig | 10 ++++++++++ dts/Makefile | 2 ++ scripts/Makefile.dts | 7 +++++++ 3 files changed, 19 insertions(+)
diff --git a/dts/Kconfig b/dts/Kconfig index a2973ef40860..f8cc3b26b10f 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -137,6 +137,16 @@ config OF_UPSTREAM_VENDOR help Select the vendor to build all devicetree files for. +config OF_UPSTREAM_CONTROL_DT_OVERLAYS + string "List of upstream device tree overlays to apply for DT control" + depends on OF_UPSTREAM + help + This option specifies a list of device tree overlays to apply at + build time to the device tree used for DT control, so that the + board can select at run-time the hardware they describe. This is + a list of device tree overlays (without the .dtbo suffix) + separated by <space>. + config OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS bool "Build local DTBOs as fallback for DTBOs missing upstream" default n diff --git a/dts/Makefile b/dts/Makefile index befc6de18056..3fee5a0515c0 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -32,6 +32,8 @@ endif ifneq ($(EXT_DTB),) DTB := $(EXT_DTB) +else ifneq ($(subst ",,$(CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS)),) +DTB := $(dt_dir)/$(DEVICE_TREE)-overlays.dtb else DTB := $(dt_dir)/$(DEVICE_TREE).dtb endif diff --git a/scripts/Makefile.dts b/scripts/Makefile.dts index 3871a4ad4123..5067f6ea2daf 100644 --- a/scripts/Makefile.dts +++ b/scripts/Makefile.dts @@ -16,6 +16,13 @@ dtb-y += $(subst $(dt_dir)/,,$(dtb-vendor_dts)) endif +ifneq ($(subst ",,$(CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS)),) +control-dt := $(if $(DEVICE_TREE),$(DEVICE_TREE),$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE))) +$(control-dt)-overlays-dtbs := $(control-dt).dtb \ + $(patsubst %,%.dtbo,$(subst ",,$(CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS))) +dtb-y += $(control-dt)-overlays.dtb +endif + ifneq ($(CONFIG_SYS_DTC_PAD_BYTES),0) DTC_FLAGS += -p $(CONFIG_SYS_DTC_PAD_BYTES) endif