| Message ID | 20250607093730.2249536-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBX4QSDBAMGQEQEEE6II@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com
[209.85.208.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AE9033F13D
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 7 Jun 2025 11:37:36 +0200 (CEST)
Received: by mail-ed1-f70.google.com with SMTP id
4fb4d7f45d1cf-6077fca92ddsf917037a12.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 07 Jun 2025 02:37:36 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1749289056; cv=pass;
d=google.com; s=arc-20240605;
b=Dr0wTiMVNEo4b3eK9Gr8QRuKXS2I6sz0L3fRHcGFXCPFSebGwAV1bxjMKV89jr+tkJ
DjPz3yLj21JfT+RxXPADCFfBwSuxP0lBfIVww5Z0F9X+7CKprSIBNK2R/yn1FLgcsZ1y
S7UdxbMhaXXUPsz2+LKctXd5HX/l7WfzXZ7NKrKSgvG3wQsbDV4WddDK+vwkZhJvH/s9
GzvSECsCfGA7sXz8pdxN5atckFF4b7idHanDyKmQ9EGk3Wjf7YLnztIS0k1evHnG1YSw
H1dgbgGCxc55XFfahNKHCH7+2w7oJCT7UmUcdswBaqL2R6reuIlw4xmWELvIixh4dWw9
xk6g==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=n7puYFSgXmMOJ4a6UhAMLhVzJUK7LuLy5wWiLbTKZnM=;
fh=BM3fV2VkYErhk80DKstpSYDsL17Pa2u98wvz+bRQCss=;
b=Of4g5CrW71z7sJgeZxtK8HEWiDJ3OaOXQ91p46XA2qbdaWlC5DnjuQeAT60u5Up3Y4
KNuYgnlq2ecoNvCdGK1CWzD81kM6KOEMBeJIQoTMbImeSmA4jGGaUjkOFNz++F+f1hTa
DQcgHNbAk6/kpZOuA+c919G1I20zkRouFX+WvaZFf/rIQ69BRtDMqa5oehoCqW4SX/EQ
lonHOCVpKautDli81szIkJeepfZUkFuDF8m0tkGljHezrvuu4E1uS/WTN6bBNl4X66PR
8UUF2KcQWpsEOcWoM9lLkiTmmQGkKncHgfl+6bEg3iDBw90+0fzgUGK2QRcxWop+nnpZ
kOkQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="GUbGk/8u";
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=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1749289056; x=1749893856;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=n7puYFSgXmMOJ4a6UhAMLhVzJUK7LuLy5wWiLbTKZnM=;
b=X2PRMxM4p26zTpom0p2Vbc0ZPWPyQQDvCeq7dlisUua0wVHsgKJHJXXLBQzKb/FxLo
3X2RTmXVp2pnhr3WV8cq7jOl0XRxyMsHYdfZmKxpeK4opH1n1+TsP7G58J2O2tqgz9Jq
Tkv9iew0pylTBo8Z3wia2PpOnPBH0etW3fHU0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749289056; x=1749893856;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=n7puYFSgXmMOJ4a6UhAMLhVzJUK7LuLy5wWiLbTKZnM=;
b=wyeqkDUKJqFzhwbdyXj2tttt6SNaRbcsH59GoOT1X/uZ5H+1/L8dvknoHS6u3Azj7J
/mS2AT2mo0Gb920qbGkGu0ytW/f8iowbtpYCfA023y6YVh5kXz7gmiA+6fpVv3Tq2Crt
dBAWOaFTHH3au+fzPWrAZ5T5Ljr28R29OCbaF8X7qRR9iKeKnSbVSO433oMoCEU342Cp
ayK3wJsZ8i3+OOEDTZEm8yFU538oOSldPoA43rSPqFGn7mgIfDirdOra/gbsQPq0wqQ2
teC1s/CqLphHZZA/bATk4oPQObrLnS9p0JNarZJypFKC9za4KKPNxpxcxEedwrYDRkZZ
I/hg==
X-Forwarded-Encrypted: i=2;
AJvYcCV4KVHWAxfpEBUezIDfyRkzCwpkCCAZ/DO0wL/C7Z6jjNeAK3mQ5rv75UyIf3f/hCk0e5ynnN4a+r8259Y0@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyW6RuJD8gs5CRBvSyg+NTDLrz9S7aTqkbkC6/h5ID3VfnLVgAE
eIOoT5jjpPX9uy3IthESWwPe7BT5jr8BPbkbHoSmlOWizBNA4cBBCu77HfUHdf0HFIlxoA==
X-Google-Smtp-Source:
AGHT+IFhTu5ILy1rEUn8BS3az5JqnC4O0oF1Gyy1GZ/iCO1OskJqsVfRfCuSWlUdUlmQ3scf2tWeqg==
X-Received: by 2002:a05:6402:35d2:b0:606:fef3:7c3e with SMTP id
4fb4d7f45d1cf-60773ecb498mr5730646a12.3.1749289056186;
Sat, 07 Jun 2025 02:37:36 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AZMbMZd5acEY5MvM/tPHgWzP9s640WhAvKXmvCDizc01wz8RLQ==
Received: by 2002:a05:6402:26c6:b0:606:f779:31a7 with SMTP id
4fb4d7f45d1cf-607244c9b85ls2270575a12.2.-pod-prod-09-eu; Sat, 07 Jun 2025
02:37:34 -0700 (PDT)
X-Received: by 2002:a17:907:3da3:b0:ad8:a512:a9fc with SMTP id
a640c23a62f3a-ade1a9fd897mr517458666b.42.1749289054000;
Sat, 07 Jun 2025 02:37:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1749289053; cv=none;
d=google.com; s=arc-20240605;
b=TnspLPk3J55wSn1CLErq4h2UoYdSIpd1/diTcSM2XbvTqf/TQhSoP0PMsjNZcKPSAg
oduTMnOkfR6BexqN4WUuwRGu7rL41YdYOMg1PwlpeRylPs6WpdgZAMC+8lw85/il2jtB
7WuCWRjnGKEk5rc9vDa2zmVei7PhPHkbREVaKuBxr6etfNociIzlloGgBN9qnAo64y6y
m5+De4eE1u+eyuSCLfS//BlMKHXGkCjuXbY4Utsj6XLxEC4cZdHEZ3JjXbL/YD0RqEjx
IX4deZ1/YbkYYvaoiXVpq8jkS2LW3eF/Q14wAFSffJUxLcaCnKnxGm0otBSK6aw421pA
g53w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=Q7iZhfZu/6LdWUyPZRXqfVRj8cwkrg8FELa16XUwObA=;
fh=ScjGjwzF2Nz8t3fnHYFOeHdx+WfxPVVeaqbXa5RzuYk=;
b=RwLMlFONhFIc7EcLeiVayzCo0rFraBbdck9VpKWQ3E1Eu9qoPGamNx78W+M2zM1dus
A7LJ8ghzx3zsxpXyQHzzWcubhs4Z/Au3ZAOnyo+M2BaE6WgyYiAliEk+oYem2vhbuwKM
SR/S10BdlcOfplPAzPMJmE9aDxeSuP5guHebqwfCg45wU3wKKzvuTqsHXVOS1NRTYNOz
dZudDiwLLPh3VxLqWlzTCdnr0GrGb9/+zN6cyoAYCWlGhC3pQqj1ofHzWbDWXGlJVYq+
rnavuJ5sK5/kpQDQTJdVPNiKDZRyWwtXpCJWvCDDs11YclexPwOIpYT479pdY59OUojv
bdQg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="GUbGk/8u";
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=pass 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
a640c23a62f3a-ade1db72314sor133035266b.6.2025.06.07.02.37.33
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 07 Jun 2025 02:37:33 -0700 (PDT)
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-Gm-Gg: ASbGncsXsrJYWqdfVw1ISEYIi7tOii8o1C1U9AW1RSWHtND5+x+BKh2LxtsM7MiJCWD
XiJDmGnguMbDa+H0fw8DAZ1dMLKvEhg5M0b4XFbBUBiwRhIi2oTVpm17Ge1KxkYMn+qxTzvpG8I
vKMndS+7Ynb/32bDbeoIctL9XJRKKa5DC6/LuU63zNY11vPT408727ZpEUCRaX+fCaNb3Sji4jf
Jgny9uJtK5E+v3GUwvl2nImflabty0PCUCYHwkGY3Os3sUzVBR+4WZAvWa28+bOuR0n9zjORYBa
Dq97tqYjUpvwzjRa2DBjHUB23wDiZJDcgSouRNYH/DaKOF37hmDPxL8ZEENOig2+0tCxgENk8sX
+BM9uZrecSa9AFGcXqrJTc5ijPScdc4Qu7vThGb/+AfUuuTizQv6hEumMYjj0fbeaZZ1hVPV2IL
280tXnlfSR/n8o
X-Received: by 2002:a17:907:8687:b0:ad8:9257:573f with SMTP id
a640c23a62f3a-ade1a916fd8mr516661766b.7.1749289053553;
Sat, 07 Jun 2025 02:37:33 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it
(host-87-5-95-99.retail.telecomitalia.it. [87.5.95.99])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-ade1dc38cffsm246524966b.124.2025.06.07.02.37.32
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 07 Jun 2025 02:37:33 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Dillon Min <dillon.minfei@gmail.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jerome Forissier <jerome.forissier@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Lukasz Majewski <lukma@denx.de>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Sean Anderson <seanga2@gmail.com>,
Sumit Garg <sumit.garg@kernel.org>,
Tom Rini <trini@konsulko.com>,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH 0/9] Support stm32h747-discovery board
Date: Sat, 7 Jun 2025 11:37:08 +0200
Message-ID: <20250607093730.2249536-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
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="GUbGk/8u";
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=pass 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 |
Support stm32h747-discovery board
|
|
Message
Dario Binacchi
June 7, 2025, 9:37 a.m. UTC
The series adds support for stm32h747-discovery board.
Detailed information can be found at:
https://www.st.com/en/evaluation-tools/stm32h747i-disco.html
Dario Binacchi (9):
ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles
dt-bindings: arm: stm32: add compatible for stm32h747i-disco board
dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK
ARM: dts: stm32: add uart8 node for stm32h743 MCU
ARM: dts: stm32: add pin map for UART8 controller on stm32h743
ARM: dts: stm32: add an extra pin map for USART1 on stm32h743
ARM: dts: stm32: support STM32h747i-disco board
ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file
board: stm32: add stm32h747-discovery board support
arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 104 ++++++++++++++
arch/arm/mach-stm32/stm32h7/Kconfig | 4 +
board/st/stm32h747-disco/Kconfig | 15 ++
board/st/stm32h747-disco/MAINTAINERS | 7 +
board/st/stm32h747-disco/Makefile | 6 +
board/st/stm32h747-disco/stm32h747-disco.c | 42 ++++++
configs/stm32h747-disco_defconfig | 35 +++++
drivers/clk/stm32/clk-stm32h7.c | 5 +
dts/upstream/Bindings/arm/stm32/stm32.yaml | 4 +
.../include/dt-bindings/clock/stm32h7-clks.h | 4 +-
dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 34 ++++-
dts/upstream/src/arm/st/stm32h743.dtsi | 8 ++
dts/upstream/src/arm/st/stm32h743i-disco.dts | 2 +-
dts/upstream/src/arm/st/stm32h743i-eval.dts | 2 +-
dts/upstream/src/arm/st/stm32h747i-disco.dts | 136 ++++++++++++++++++
dts/upstream/src/arm/st/stm32h750i-art-pi.dts | 6 +-
include/configs/stm32h747-disco.h | 32 +++++
17 files changed, 435 insertions(+), 11 deletions(-)
create mode 100644 arch/arm/dts/stm32h747i-disco-u-boot.dtsi
create mode 100644 board/st/stm32h747-disco/Kconfig
create mode 100644 board/st/stm32h747-disco/MAINTAINERS
create mode 100644 board/st/stm32h747-disco/Makefile
create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c
create mode 100644 configs/stm32h747-disco_defconfig
create mode 100644 dts/upstream/src/arm/st/stm32h747i-disco.dts
create mode 100644 include/configs/stm32h747-disco.h
Comments
On 6/7/25 11:37, Dario Binacchi wrote: > The series adds support for stm32h747-discovery board. > > Detailed information can be found at: > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > Dario Binacchi (9): > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > ARM: dts: stm32: add uart8 node for stm32h743 MCU > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > ARM: dts: stm32: support STM32h747i-disco board > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > board: stm32: add stm32h747-discovery board support Hi Dario For the whole series Applied to u-boot-stm32/next Thanks Patrice > > arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 104 ++++++++++++++ > arch/arm/mach-stm32/stm32h7/Kconfig | 4 + > board/st/stm32h747-disco/Kconfig | 15 ++ > board/st/stm32h747-disco/MAINTAINERS | 7 + > board/st/stm32h747-disco/Makefile | 6 + > board/st/stm32h747-disco/stm32h747-disco.c | 42 ++++++ > configs/stm32h747-disco_defconfig | 35 +++++ > drivers/clk/stm32/clk-stm32h7.c | 5 + > dts/upstream/Bindings/arm/stm32/stm32.yaml | 4 + > .../include/dt-bindings/clock/stm32h7-clks.h | 4 +- > dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 34 ++++- > dts/upstream/src/arm/st/stm32h743.dtsi | 8 ++ > dts/upstream/src/arm/st/stm32h743i-disco.dts | 2 +- > dts/upstream/src/arm/st/stm32h743i-eval.dts | 2 +- > dts/upstream/src/arm/st/stm32h747i-disco.dts | 136 ++++++++++++++++++ > dts/upstream/src/arm/st/stm32h750i-art-pi.dts | 6 +- > include/configs/stm32h747-disco.h | 32 +++++ > 17 files changed, 435 insertions(+), 11 deletions(-) > create mode 100644 arch/arm/dts/stm32h747i-disco-u-boot.dtsi > create mode 100644 board/st/stm32h747-disco/Kconfig > create mode 100644 board/st/stm32h747-disco/MAINTAINERS > create mode 100644 board/st/stm32h747-disco/Makefile > create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c > create mode 100644 configs/stm32h747-disco_defconfig > create mode 100644 dts/upstream/src/arm/st/stm32h747i-disco.dts > create mode 100644 include/configs/stm32h747-disco.h > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Patrice, On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > On 6/7/25 11:37, Dario Binacchi wrote: > > The series adds support for stm32h747-discovery board. > > > > Detailed information can be found at: > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > Dario Binacchi (9): > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > ARM: dts: stm32: support STM32h747i-disco board > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > board: stm32: add stm32h747-discovery board support > > > Hi Dario > > For the whole series > Applied to u-boot-stm32/next Please give some time for other maintainers to review this patch-set. The dts/upstream patches in this series aren't clean cherry pick from upstream. This has to be fixed as otherwise random patches are going to cause DT sync issues. -Sumit > > Thanks > Patrice > > > > > arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 104 ++++++++++++++ > > arch/arm/mach-stm32/stm32h7/Kconfig | 4 + > > board/st/stm32h747-disco/Kconfig | 15 ++ > > board/st/stm32h747-disco/MAINTAINERS | 7 + > > board/st/stm32h747-disco/Makefile | 6 + > > board/st/stm32h747-disco/stm32h747-disco.c | 42 ++++++ > > configs/stm32h747-disco_defconfig | 35 +++++ > > drivers/clk/stm32/clk-stm32h7.c | 5 + > > dts/upstream/Bindings/arm/stm32/stm32.yaml | 4 + > > .../include/dt-bindings/clock/stm32h7-clks.h | 4 +- > > dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 34 ++++- > > dts/upstream/src/arm/st/stm32h743.dtsi | 8 ++ > > dts/upstream/src/arm/st/stm32h743i-disco.dts | 2 +- > > dts/upstream/src/arm/st/stm32h743i-eval.dts | 2 +- > > dts/upstream/src/arm/st/stm32h747i-disco.dts | 136 ++++++++++++++++++ > > dts/upstream/src/arm/st/stm32h750i-art-pi.dts | 6 +- > > include/configs/stm32h747-disco.h | 32 +++++ > > 17 files changed, 435 insertions(+), 11 deletions(-) > > create mode 100644 arch/arm/dts/stm32h747i-disco-u-boot.dtsi > > create mode 100644 board/st/stm32h747-disco/Kconfig > > create mode 100644 board/st/stm32h747-disco/MAINTAINERS > > create mode 100644 board/st/stm32h747-disco/Makefile > > create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c > > create mode 100644 configs/stm32h747-disco_defconfig > > create mode 100644 dts/upstream/src/arm/st/stm32h747i-disco.dts > > create mode 100644 include/configs/stm32h747-disco.h > > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Sumit, On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > Hi Patrice, > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > The series adds support for stm32h747-discovery board. > > > > > > Detailed information can be found at: > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > Dario Binacchi (9): > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > ARM: dts: stm32: support STM32h747i-disco board > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > board: stm32: add stm32h747-discovery board support > > > > > > Hi Dario > > > > For the whole series > > Applied to u-boot-stm32/next > > Please give some time for other maintainers to review this patch-set. > The dts/upstream patches in this series aren't clean cherry pick from > upstream. All the commits are already in the mainline Linux kernel, specifically in v6.16-rc1. If you're referring to the fact that the patches can't be applied cleanly, I believe it's because the target path in the Linux kernel doesn't match the one in U-Boot. In fact, the DTS files are located in two different relative paths. Thanks and regards, Dario > This has to be fixed as otherwise random patches are going to > cause DT sync issues. > > -Sumit > > > > > Thanks > > Patrice > > > > > > > > arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 104 ++++++++++++++ > > > arch/arm/mach-stm32/stm32h7/Kconfig | 4 + > > > board/st/stm32h747-disco/Kconfig | 15 ++ > > > board/st/stm32h747-disco/MAINTAINERS | 7 + > > > board/st/stm32h747-disco/Makefile | 6 + > > > board/st/stm32h747-disco/stm32h747-disco.c | 42 ++++++ > > > configs/stm32h747-disco_defconfig | 35 +++++ > > > drivers/clk/stm32/clk-stm32h7.c | 5 + > > > dts/upstream/Bindings/arm/stm32/stm32.yaml | 4 + > > > .../include/dt-bindings/clock/stm32h7-clks.h | 4 +- > > > dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 34 ++++- > > > dts/upstream/src/arm/st/stm32h743.dtsi | 8 ++ > > > dts/upstream/src/arm/st/stm32h743i-disco.dts | 2 +- > > > dts/upstream/src/arm/st/stm32h743i-eval.dts | 2 +- > > > dts/upstream/src/arm/st/stm32h747i-disco.dts | 136 ++++++++++++++++++ > > > dts/upstream/src/arm/st/stm32h750i-art-pi.dts | 6 +- > > > include/configs/stm32h747-disco.h | 32 +++++ > > > 17 files changed, 435 insertions(+), 11 deletions(-) > > > create mode 100644 arch/arm/dts/stm32h747i-disco-u-boot.dtsi > > > create mode 100644 board/st/stm32h747-disco/Kconfig > > > create mode 100644 board/st/stm32h747-disco/MAINTAINERS > > > create mode 100644 board/st/stm32h747-disco/Makefile > > > create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c > > > create mode 100644 configs/stm32h747-disco_defconfig > > > create mode 100644 dts/upstream/src/arm/st/stm32h747i-disco.dts > > > create mode 100644 include/configs/stm32h747-disco.h > > >
On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > Hi Sumit, > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > Hi Patrice, > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > The series adds support for stm32h747-discovery board. > > > > > > > > Detailed information can be found at: > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > Dario Binacchi (9): > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > Hi Dario > > > > > > For the whole series > > > Applied to u-boot-stm32/next > > > > Please give some time for other maintainers to review this patch-set. > > The dts/upstream patches in this series aren't clean cherry pick from > > upstream. > > All the commits are already in the mainline Linux kernel, specifically > in v6.16-rc1. > If you're referring to the fact that the patches can't be applied > cleanly, I believe it's > because the target path in the Linux kernel doesn't match the one in U-Boot. > In fact, the DTS files are located in two different relative paths. That's exactly why we have (refer here [1]): ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> You should have waited v6.16-rc1 tag to be synced into devicetree-rebasing [2] for the cherry-picks to work. This way of manually patching dts/upstream is not allowed since it is going to break DT syncs in one way or another. So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree and then send v2 with proper cherry picked patches. [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git -Sumit > > Thanks and regards, > Dario > > > This has to be fixed as otherwise random patches are going to > > cause DT sync issues. > > > > -Sumit > > > > > > > > Thanks > > > Patrice > > > > > > > > > > > arch/arm/dts/stm32h747i-disco-u-boot.dtsi | 104 ++++++++++++++ > > > > arch/arm/mach-stm32/stm32h7/Kconfig | 4 + > > > > board/st/stm32h747-disco/Kconfig | 15 ++ > > > > board/st/stm32h747-disco/MAINTAINERS | 7 + > > > > board/st/stm32h747-disco/Makefile | 6 + > > > > board/st/stm32h747-disco/stm32h747-disco.c | 42 ++++++ > > > > configs/stm32h747-disco_defconfig | 35 +++++ > > > > drivers/clk/stm32/clk-stm32h7.c | 5 + > > > > dts/upstream/Bindings/arm/stm32/stm32.yaml | 4 + > > > > .../include/dt-bindings/clock/stm32h7-clks.h | 4 +- > > > > dts/upstream/src/arm/st/stm32h7-pinctrl.dtsi | 34 ++++- > > > > dts/upstream/src/arm/st/stm32h743.dtsi | 8 ++ > > > > dts/upstream/src/arm/st/stm32h743i-disco.dts | 2 +- > > > > dts/upstream/src/arm/st/stm32h743i-eval.dts | 2 +- > > > > dts/upstream/src/arm/st/stm32h747i-disco.dts | 136 ++++++++++++++++++ > > > > dts/upstream/src/arm/st/stm32h750i-art-pi.dts | 6 +- > > > > include/configs/stm32h747-disco.h | 32 +++++ > > > > 17 files changed, 435 insertions(+), 11 deletions(-) > > > > create mode 100644 arch/arm/dts/stm32h747i-disco-u-boot.dtsi > > > > create mode 100644 board/st/stm32h747-disco/Kconfig > > > > create mode 100644 board/st/stm32h747-disco/MAINTAINERS > > > > create mode 100644 board/st/stm32h747-disco/Makefile > > > > create mode 100644 board/st/stm32h747-disco/stm32h747-disco.c > > > > create mode 100644 configs/stm32h747-disco_defconfig > > > > create mode 100644 dts/upstream/src/arm/st/stm32h747i-disco.dts > > > > create mode 100644 include/configs/stm32h747-disco.h > > > > > > > > -- > > Dario Binacchi > > Senior Embedded Linux Developer > > dario.binacchi@amarulasolutions.com > > __________________________________ > > > Amarula Solutions SRL > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > T. +39 042 243 5310 > info@amarulasolutions.com > > www.amarulasolutions.com To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > Hi Sumit, > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > Hi Patrice, > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > Detailed information can be found at: > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > Hi Dario > > > > > > > > For the whole series > > > > Applied to u-boot-stm32/next > > > > > > Please give some time for other maintainers to review this patch-set. > > > The dts/upstream patches in this series aren't clean cherry pick from > > > upstream. > > > > All the commits are already in the mainline Linux kernel, specifically > > in v6.16-rc1. > > If you're referring to the fact that the patches can't be applied > > cleanly, I believe it's > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > In fact, the DTS files are located in two different relative paths. > > That's exactly why we have (refer here [1]): > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > You should have waited v6.16-rc1 tag to be synced into > devicetree-rebasing [2] for the cherry-picks to work. This way of > manually patching dts/upstream is not allowed since it is going to break > DT syncs in one way or another. > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > and then send v2 with proper cherry picked patches. > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git To be honest, I don't think this is a big deal. Git will be merging based on content and not specific hashes. And in the case of conflicts I just copy the file from the tag to our tree.
On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > Hi Sumit, > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > Hi Patrice, > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > Detailed information can be found at: > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > For the whole series > > > > > Applied to u-boot-stm32/next > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > upstream. > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > in v6.16-rc1. > > > If you're referring to the fact that the patches can't be applied > > > cleanly, I believe it's > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > In fact, the DTS files are located in two different relative paths. > > > > That's exactly why we have (refer here [1]): > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > You should have waited v6.16-rc1 tag to be synced into > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > manually patching dts/upstream is not allowed since it is going to break > > DT syncs in one way or another. > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > and then send v2 with proper cherry picked patches. > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > To be honest, I don't think this is a big deal. Git will be merging > based on content and not specific hashes. And in the case of conflicts I > just copy the file from the tag to our tree. The essential problem here to me is we are going to allow manual patching of dts/upstream tree given this example? How do we keep track if all that manual patching landed in Linux DT mainline? The cherry picks ensured that we always keep in sync with mainline. Lets take an example what if Git automatically resolved a merge conflict for you with duplicated content or if manually patching a DTS file diverged from upstream and get unnoticed during DT syncs? IMHO, we should try to avoid manual patching of DT subtree otherwise it is hard to set a policy as to what level of manual patching is allowed or not. -Sumit To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: > On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > > Hi Sumit, > > > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > > > Hi Patrice, > > > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > > > Detailed information can be found at: > > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > > > For the whole series > > > > > > Applied to u-boot-stm32/next > > > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > > upstream. > > > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > > in v6.16-rc1. > > > > If you're referring to the fact that the patches can't be applied > > > > cleanly, I believe it's > > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > > In fact, the DTS files are located in two different relative paths. > > > > > > That's exactly why we have (refer here [1]): > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > You should have waited v6.16-rc1 tag to be synced into > > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > > manually patching dts/upstream is not allowed since it is going to break > > > DT syncs in one way or another. > > > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > > and then send v2 with proper cherry picked patches. > > > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > > > To be honest, I don't think this is a big deal. Git will be merging > > based on content and not specific hashes. And in the case of conflicts I > > just copy the file from the tag to our tree. > > The essential problem here to me is we are going to allow manual > patching of dts/upstream tree given this example? How do we keep track > if all that manual patching landed in Linux DT mainline? The cherry > picks ensured that we always keep in sync with mainline. > > Lets take an example what if Git automatically resolved a merge conflict > for you with duplicated content or if manually patching a DTS file > diverged from upstream and get unnoticed during DT syncs? > > IMHO, we should try to avoid manual patching of DT subtree otherwise it > is hard to set a policy as to what level of manual patching is allowed > or not. Part of the problem here is that from the standpoint of applying posted patches there's no functional difference between what Dario did here and what could be done once v6.16-rc1-dts is tagged (if it's not already). It's essentially a "manual patch" either way. We make it clear that dts/upstream/ *only* gets changes that are in Linus' tree. If someone tries to be sneaky and push something in that's not quite what's upstream, it will get stomped on later and there's not going to be any sympathy for the now broken platform. Yes, we document saying to use the cherry-pick script, and that's what people should do in general. But I don't think there's value in adding a further delay between "in Linus' tree" and "in devicetree-rebasing". In the linux kernel, there's thousands of people working on things and so strict rules can be understandable (someone will be running a bot to look for "(cherry pick from commit $hash)" and fail things where $hash doesn't exist, makes sense). Here if the ST custodians are happy just verifying the kernel commit, OK, that's fine. Or if they want to wait, that's fine too. We can be a little relaxed and let custodians do what they see as best.
On Mon, Jun 09, 2025 at 10:22:39AM -0600, Tom Rini wrote: > On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: > > On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > > > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > > > Hi Sumit, > > > > > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > > > > > Hi Patrice, > > > > > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > > > > > Detailed information can be found at: > > > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > > > > > For the whole series > > > > > > > Applied to u-boot-stm32/next > > > > > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > > > upstream. > > > > > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > > > in v6.16-rc1. > > > > > If you're referring to the fact that the patches can't be applied > > > > > cleanly, I believe it's > > > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > > > In fact, the DTS files are located in two different relative paths. > > > > > > > > That's exactly why we have (refer here [1]): > > > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > > > You should have waited v6.16-rc1 tag to be synced into > > > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > > > manually patching dts/upstream is not allowed since it is going to break > > > > DT syncs in one way or another. > > > > > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > > > and then send v2 with proper cherry picked patches. > > > > > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > > > > > To be honest, I don't think this is a big deal. Git will be merging > > > based on content and not specific hashes. And in the case of conflicts I > > > just copy the file from the tag to our tree. > > > > The essential problem here to me is we are going to allow manual > > patching of dts/upstream tree given this example? How do we keep track > > if all that manual patching landed in Linux DT mainline? The cherry > > picks ensured that we always keep in sync with mainline. > > > > Lets take an example what if Git automatically resolved a merge conflict > > for you with duplicated content or if manually patching a DTS file > > diverged from upstream and get unnoticed during DT syncs? > > > > IMHO, we should try to avoid manual patching of DT subtree otherwise it > > is hard to set a policy as to what level of manual patching is allowed > > or not. > > Part of the problem here is that from the standpoint of applying posted > patches there's no functional difference between what Dario did here and > what could be done once v6.16-rc1-dts is tagged (if it's not already). > It's essentially a "manual patch" either way. Nope, there is a difference here. The cherry-pick from DT rebasing allows the custodian to rather just cherry pick corresponding DT patches rather than applying patches posted on mailing list. I usually do that when reviewing dts/upstream patches if they can be cherry-picked cleanly or not. So there won't be manual patching in that process. ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > We make it clear that > dts/upstream/ *only* gets changes that are in Linus' tree. If someone > tries to be sneaky and push something in that's not quite what's > upstream, it will get stomped on later and there's not going to be any > sympathy for the now broken platform. For us the upstream sync path is via DT rebasing tree only. It usually lags behind Linus' tree by maximum 1 week candence what I have noticed. > > Yes, we document saying to use the cherry-pick script, and that's what > people should do in general. But I don't think there's value in adding a > further delay between "in Linus' tree" and "in devicetree-rebasing". In > the linux kernel, there's thousands of people working on things and so > strict rules can be understandable (someone will be running a bot to > look for "(cherry pick from commit $hash)" and fail things where $hash > doesn't exist, makes sense). Here if the ST custodians are happy just > verifying the kernel commit, OK, that's fine. Or if they want to wait, > that's fine too. We can be a little relaxed and let custodians do what > they see as best. The reason we adopted OF_UPSTREAM was just to get rid of the manual DT patching and the syncs. So is it really that few days lag of DT rebasing tree which is again pushing us towards manual DT patching? I am just trying to understand the shortcomings that DT rebasing tree puts in front of us. -Sumit To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Tue, Jun 10, 2025 at 02:22:49PM +0530, Sumit Garg wrote: > On Mon, Jun 09, 2025 at 10:22:39AM -0600, Tom Rini wrote: > > On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: > > > On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > > > > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > > > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > > > > Hi Sumit, > > > > > > > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > > > > > > > Hi Patrice, > > > > > > > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > > > > > > > Detailed information can be found at: > > > > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > > > > > > > For the whole series > > > > > > > > Applied to u-boot-stm32/next > > > > > > > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > > > > upstream. > > > > > > > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > > > > in v6.16-rc1. > > > > > > If you're referring to the fact that the patches can't be applied > > > > > > cleanly, I believe it's > > > > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > > > > In fact, the DTS files are located in two different relative paths. > > > > > > > > > > That's exactly why we have (refer here [1]): > > > > > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > > > > > You should have waited v6.16-rc1 tag to be synced into > > > > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > > > > manually patching dts/upstream is not allowed since it is going to break > > > > > DT syncs in one way or another. > > > > > > > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > > > > and then send v2 with proper cherry picked patches. > > > > > > > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > > > > > > > To be honest, I don't think this is a big deal. Git will be merging > > > > based on content and not specific hashes. And in the case of conflicts I > > > > just copy the file from the tag to our tree. > > > > > > The essential problem here to me is we are going to allow manual > > > patching of dts/upstream tree given this example? How do we keep track > > > if all that manual patching landed in Linux DT mainline? The cherry > > > picks ensured that we always keep in sync with mainline. > > > > > > Lets take an example what if Git automatically resolved a merge conflict > > > for you with duplicated content or if manually patching a DTS file > > > diverged from upstream and get unnoticed during DT syncs? > > > > > > IMHO, we should try to avoid manual patching of DT subtree otherwise it > > > is hard to set a policy as to what level of manual patching is allowed > > > or not. > > > > Part of the problem here is that from the standpoint of applying posted > > patches there's no functional difference between what Dario did here and > > what could be done once v6.16-rc1-dts is tagged (if it's not already). > > It's essentially a "manual patch" either way. > > Nope, there is a difference here. The cherry-pick from DT rebasing > allows the custodian to rather just cherry pick corresponding DT patches > rather than applying patches posted on mailing list. I usually do that > when reviewing dts/upstream patches if they can be cherry-picked cleanly > or not. So there won't be manual patching in that process. > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> Alright. I hadn't foreseen anyone doing that rather than "b4 {am,shazam} msg-id" to grab the series. > > We make it clear that > > dts/upstream/ *only* gets changes that are in Linus' tree. If someone > > tries to be sneaky and push something in that's not quite what's > > upstream, it will get stomped on later and there's not going to be any > > sympathy for the now broken platform. > > For us the upstream sync path is via DT rebasing tree only. It usually > lags behind Linus' tree by maximum 1 week candence what I have noticed. > > > > > Yes, we document saying to use the cherry-pick script, and that's what > > people should do in general. But I don't think there's value in adding a > > further delay between "in Linus' tree" and "in devicetree-rebasing". In > > the linux kernel, there's thousands of people working on things and so > > strict rules can be understandable (someone will be running a bot to > > look for "(cherry pick from commit $hash)" and fail things where $hash > > doesn't exist, makes sense). Here if the ST custodians are happy just > > verifying the kernel commit, OK, that's fine. Or if they want to wait, > > that's fine too. We can be a little relaxed and let custodians do what > > they see as best. > > The reason we adopted OF_UPSTREAM was just to get rid of the manual DT > patching and the syncs. So is it really that few days lag of DT rebasing > tree which is again pushing us towards manual DT patching? I am just > trying to understand the shortcomings that DT rebasing tree puts in > front of us. It's mainly that I want to be flexible. So long as we don't violate the content rules (Linus' tree *only*) I don't want to hinder the people eager to now upstream U-Boot support for purely process reasons (which happens, E Shattow on IRC was asking how to at least locally point dts/upstream at something else, at least for local testing).
On Tue, Jun 10, 2025 at 10:04:54AM -0600, Tom Rini wrote: > On Tue, Jun 10, 2025 at 02:22:49PM +0530, Sumit Garg wrote: > > On Mon, Jun 09, 2025 at 10:22:39AM -0600, Tom Rini wrote: > > > On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: > > > > On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > > > > > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > > > > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > > > > > Hi Sumit, > > > > > > > > > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > > > > > > > > > Hi Patrice, > > > > > > > > > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > > > > > > > > > Detailed information can be found at: > > > > > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > > > > > > > > > For the whole series > > > > > > > > > Applied to u-boot-stm32/next > > > > > > > > > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > > > > > upstream. > > > > > > > > > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > > > > > in v6.16-rc1. > > > > > > > If you're referring to the fact that the patches can't be applied > > > > > > > cleanly, I believe it's > > > > > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > > > > > In fact, the DTS files are located in two different relative paths. > > > > > > > > > > > > That's exactly why we have (refer here [1]): > > > > > > > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > > > > > > > You should have waited v6.16-rc1 tag to be synced into > > > > > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > > > > > manually patching dts/upstream is not allowed since it is going to break > > > > > > DT syncs in one way or another. > > > > > > > > > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > > > > > and then send v2 with proper cherry picked patches. > > > > > > > > > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > > > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > > > > > > > > > To be honest, I don't think this is a big deal. Git will be merging > > > > > based on content and not specific hashes. And in the case of conflicts I > > > > > just copy the file from the tag to our tree. > > > > > > > > The essential problem here to me is we are going to allow manual > > > > patching of dts/upstream tree given this example? How do we keep track > > > > if all that manual patching landed in Linux DT mainline? The cherry > > > > picks ensured that we always keep in sync with mainline. > > > > > > > > Lets take an example what if Git automatically resolved a merge conflict > > > > for you with duplicated content or if manually patching a DTS file > > > > diverged from upstream and get unnoticed during DT syncs? > > > > > > > > IMHO, we should try to avoid manual patching of DT subtree otherwise it > > > > is hard to set a policy as to what level of manual patching is allowed > > > > or not. > > > > > > Part of the problem here is that from the standpoint of applying posted > > > patches there's no functional difference between what Dario did here and > > > what could be done once v6.16-rc1-dts is tagged (if it's not already). > > > It's essentially a "manual patch" either way. > > > > Nope, there is a difference here. The cherry-pick from DT rebasing > > allows the custodian to rather just cherry pick corresponding DT patches > > rather than applying patches posted on mailing list. I usually do that > > when reviewing dts/upstream patches if they can be cherry-picked cleanly > > or not. So there won't be manual patching in that process. > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > Alright. I hadn't foreseen anyone doing that rather than "b4 {am,shazam} > msg-id" to grab the series. Maybe we need to have some custodian specific docs listing best practices. > > > > We make it clear that > > > dts/upstream/ *only* gets changes that are in Linus' tree. If someone > > > tries to be sneaky and push something in that's not quite what's > > > upstream, it will get stomped on later and there's not going to be any > > > sympathy for the now broken platform. > > > > For us the upstream sync path is via DT rebasing tree only. It usually > > lags behind Linus' tree by maximum 1 week candence what I have noticed. > > > > > > > > Yes, we document saying to use the cherry-pick script, and that's what > > > people should do in general. But I don't think there's value in adding a > > > further delay between "in Linus' tree" and "in devicetree-rebasing". In > > > the linux kernel, there's thousands of people working on things and so > > > strict rules can be understandable (someone will be running a bot to > > > look for "(cherry pick from commit $hash)" and fail things where $hash > > > doesn't exist, makes sense). Here if the ST custodians are happy just > > > verifying the kernel commit, OK, that's fine. Or if they want to wait, > > > that's fine too. We can be a little relaxed and let custodians do what > > > they see as best. > > > > The reason we adopted OF_UPSTREAM was just to get rid of the manual DT > > patching and the syncs. So is it really that few days lag of DT rebasing > > tree which is again pushing us towards manual DT patching? I am just > > trying to understand the shortcomings that DT rebasing tree puts in > > front of us. > > It's mainly that I want to be flexible. So long as we don't violate the > content rules (Linus' tree *only*) I don't want to hinder the people > eager to now upstream U-Boot support for purely process reasons This flexibility has a cost associated to it which I hopefully was able to clarify above. But finally it's your decision which prevails. BTW, DT rebasing has already got the v6.16-rc1 tag, so it was really just 3 days gap. Quentin (CCed) has already done some proper cherry picking from there [1]. [1] https://patchwork.ozlabs.org/project/uboot/list/?series=460450 > (which > happens, E Shattow on IRC was asking how to at least locally point > dts/upstream at something else, at least for local testing). > I would love to hear problems from people if that's for downstream development too. -Sumit To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi all, On 6/11/25 2:08 PM, Sumit Garg wrote: > On Tue, Jun 10, 2025 at 10:04:54AM -0600, Tom Rini wrote: >> On Tue, Jun 10, 2025 at 02:22:49PM +0530, Sumit Garg wrote: >>> On Mon, Jun 09, 2025 at 10:22:39AM -0600, Tom Rini wrote: >>>> On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: >>>>> On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: >>>>>> On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: >>>>>>> On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: >>>>>>>> Hi Sumit, >>>>>>>> >>>>>>>> On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: >>>>>>>>> >>>>>>>>> Hi Patrice, >>>>>>>>> >>>>>>>>> On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 6/7/25 11:37, Dario Binacchi wrote: >>>>>>>>>>> The series adds support for stm32h747-discovery board. >>>>>>>>>>> >>>>>>>>>>> Detailed information can be found at: >>>>>>>>>>> https://www.st.com/en/evaluation-tools/stm32h747i-disco.html >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Dario Binacchi (9): >>>>>>>>>>> ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles >>>>>>>>>>> dt-bindings: arm: stm32: add compatible for stm32h747i-disco board >>>>>>>>>>> dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK >>>>>>>>>>> ARM: dts: stm32: add uart8 node for stm32h743 MCU >>>>>>>>>>> ARM: dts: stm32: add pin map for UART8 controller on stm32h743 >>>>>>>>>>> ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 >>>>>>>>>>> ARM: dts: stm32: support STM32h747i-disco board >>>>>>>>>>> ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file >>>>>>>>>>> board: stm32: add stm32h747-discovery board support >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hi Dario >>>>>>>>>> >>>>>>>>>> For the whole series >>>>>>>>>> Applied to u-boot-stm32/next >>>>>>>>> >>>>>>>>> Please give some time for other maintainers to review this patch-set. >>>>>>>>> The dts/upstream patches in this series aren't clean cherry pick from >>>>>>>>> upstream. >>>>>>>> >>>>>>>> All the commits are already in the mainline Linux kernel, specifically >>>>>>>> in v6.16-rc1. >>>>>>>> If you're referring to the fact that the patches can't be applied >>>>>>>> cleanly, I believe it's >>>>>>>> because the target path in the Linux kernel doesn't match the one in U-Boot. >>>>>>>> In fact, the DTS files are located in two different relative paths. >>>>>>> >>>>>>> That's exactly why we have (refer here [1]): >>>>>>> >>>>>>> ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> >>>>>>> >>>>>>> You should have waited v6.16-rc1 tag to be synced into >>>>>>> devicetree-rebasing [2] for the cherry-picks to work. This way of >>>>>>> manually patching dts/upstream is not allowed since it is going to break >>>>>>> DT syncs in one way or another. >>>>>>> >>>>>>> So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree >>>>>>> and then send v2 with proper cherry picked patches. >>>>>>> >>>>>>> [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing >>>>>>> [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git >>>>>> >>>>>> To be honest, I don't think this is a big deal. Git will be merging >>>>>> based on content and not specific hashes. And in the case of conflicts I >>>>>> just copy the file from the tag to our tree. >>>>> >>>>> The essential problem here to me is we are going to allow manual >>>>> patching of dts/upstream tree given this example? How do we keep track >>>>> if all that manual patching landed in Linux DT mainline? The cherry >>>>> picks ensured that we always keep in sync with mainline. >>>>> >>>>> Lets take an example what if Git automatically resolved a merge conflict >>>>> for you with duplicated content or if manually patching a DTS file >>>>> diverged from upstream and get unnoticed during DT syncs? >>>>> >>>>> IMHO, we should try to avoid manual patching of DT subtree otherwise it >>>>> is hard to set a policy as to what level of manual patching is allowed >>>>> or not. >>>> >>>> Part of the problem here is that from the standpoint of applying posted >>>> patches there's no functional difference between what Dario did here and >>>> what could be done once v6.16-rc1-dts is tagged (if it's not already). >>>> It's essentially a "manual patch" either way. >>> >>> Nope, there is a difference here. The cherry-pick from DT rebasing >>> allows the custodian to rather just cherry pick corresponding DT patches >>> rather than applying patches posted on mailing list. I usually do that >>> when reviewing dts/upstream patches if they can be cherry-picked cleanly >>> or not. So there won't be manual patching in that process. >>> >>> ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> >> >> Alright. I hadn't foreseen anyone doing that rather than "b4 {am,shazam} >> msg-id" to grab the series. > > Maybe we need to have some custodian specific docs listing best > practices. > Or extend https://docs.u-boot.org/en/latest/develop/devicetree/control.html#where-do-i-get-a-devicetree-file-for-my-board https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing ? >> >>>> We make it clear that >>>> dts/upstream/ *only* gets changes that are in Linus' tree. If someone >>>> tries to be sneaky and push something in that's not quite what's >>>> upstream, it will get stomped on later and there's not going to be any >>>> sympathy for the now broken platform. >>> >>> For us the upstream sync path is via DT rebasing tree only. It usually >>> lags behind Linus' tree by maximum 1 week candence what I have noticed. >>> >>>> >>>> Yes, we document saying to use the cherry-pick script, and that's what >>>> people should do in general. But I don't think there's value in adding a >>>> further delay between "in Linus' tree" and "in devicetree-rebasing". In >>>> the linux kernel, there's thousands of people working on things and so >>>> strict rules can be understandable (someone will be running a bot to >>>> look for "(cherry pick from commit $hash)" and fail things where $hash >>>> doesn't exist, makes sense). Here if the ST custodians are happy just >>>> verifying the kernel commit, OK, that's fine. Or if they want to wait, >>>> that's fine too. We can be a little relaxed and let custodians do what >>>> they see as best. >>> >>> The reason we adopted OF_UPSTREAM was just to get rid of the manual DT >>> patching and the syncs. So is it really that few days lag of DT rebasing >>> tree which is again pushing us towards manual DT patching? I am just >>> trying to understand the shortcomings that DT rebasing tree puts in >>> front of us. >> >> It's mainly that I want to be flexible. So long as we don't violate the >> content rules (Linus' tree *only*) I don't want to hinder the people >> eager to now upstream U-Boot support for purely process reasons > > This flexibility has a cost associated to it which I hopefully was able > to clarify above. But finally it's your decision which prevails. > > BTW, DT rebasing has already got the v6.16-rc1 tag, so it was really > just 3 days gap. Quentin (CCed) has already done some proper cherry > picking from there [1]. > Not sure why I was summoned here but I can give my (maybe undesired) 2 cents :) I (a contributor) **really** do not want to have hand-crafted patches in dts/upstream. Use tools/update-subtree.sh for patches in that tree. Only Tom is allowed to use pull because it's a mess to send a patch for it and he usually announces he's doing it and then pushes to the next branch directly, contributors can use pick instead. If a pick fails, backport everything needed for it to apply cleanly. Yes, this may be tedious. Make sure you do not break any other board as well. I was already surprised we have U-Boot specific files in dts/upstream (e.g. Makefiles :) ). 1) Doing it manually doesn't enforce the addition of the commit hash used for the backport/cherry-pick in the commit log, which may be problematic (how to quickly check that the patch contains what it should contain and not more, or less?). How to verify it actually was merged? In that state and not after other changes? Let's imagine an upstream patch that changes the SoC.dtsi and associated boards dts, if backporting manually one could be tempted to skip a conflicting board dts (because another commit needs to be picked before for it to apply cleanly). Also, until it's merged in master (which can take a long time depending where you are in the release cycle) there's no guarantee the patch is actually going to make it as is to the tree (it isn't unheard of to have reverts or even rebases in maintainer trees before sending a merge request to Linus). 2) If there are manual changes made to the patch that aren't upstreamed in the kernel (or dependencies (git context) are missing), if we diverge too much from upstream, Tom will have git conflicts when pulling new versions. How to resolve those conflicts will be interesting. 3) Worse, if there are non-upstreamed changes that aren't inducing any git conflict (via git context for example), then the merge/pull may not say anything about it and we'll carry non-upstream patches in dts/upstream. Maybe we should not even do a subtree pull/merge but erase everything and reimport everything every time we bump, to make sure 2 or 3) cannot happen? For what it's worth, I've caught some (Rockchip) contributors sending patches to dts/upstream that weren't even sent to the kernel mailing list. That wasn't done on purpose but there are probably a few patches already that went through the cracks. I am not sure how we could enforce that (which needs to be done with maintainer tools as there are already too many ways to contribute to U-boot (patman, git-send-email, b4, etc...)) or even if we want to. But making dts/upstream the new arch/arm/dts/ (for ARM) directory doesn't make much sense to me. If you cannot wait for devicetree-rebasing to receive the new tag, do the changes in -u-boot.dtsi and revert the changes once we update dts/upstream to a newer tag (or cherry-pick once available)? v6.16-rc1 took a bit longer this time to reach devicetree-rebasing I think, but it landed this morning (UTC) so it isn't THAT long compared to the push in master. We could ask devicetree-rebasing people to push the master branch more often to avoid the up-to 2-week delay between v6.15 and v6.16-rc1 for example. I have read nothing in this thread so this is absolutely not a jab at some contributor or maintainer in this series. On a side-note, I think we should add -s to tools/update-subtree.sh's git cherry-pick call to know who contributed the change to U-Boot (as the commit author will be the same as in the kernel as far as I remember). To be fair, the whole process is a bit constraining, especially for new boards. You may have to wait up to ~2 months (a full kernel release cycle) to see a tag with the device tree for your board, and only then can you support the board in U-Boot with OF_UPSTREAM. In Rockchip we typically force OF_UPSTREAM for new boards, but we also typically do not accept hand-crafted git commits to dts/upstream. I don't know if it's deterring contributors but we are still getting some contributions here and there. Not sure how we should be handling that :/ > [1] https://patchwork.ozlabs.org/project/uboot/list/?series=460450 > >> (which >> happens, E Shattow on IRC was asking how to at least locally point >> dts/upstream at something else, at least for local testing). >> > > I would love to hear problems from people if that's for downstream > development too. > We can add things in https://docs.u-boot.org/en/latest/develop/devicetree/control.html#where-do-i-get-a-devicetree-file-for-my-board and https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing to be clearer on the limitations. Though til we enforce a check, this is just information. Cheers, Quentin To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Wed, Jun 11, 2025 at 03:25:18PM +0200, Quentin Schulz wrote: > Hi all, > > On 6/11/25 2:08 PM, Sumit Garg wrote: > > On Tue, Jun 10, 2025 at 10:04:54AM -0600, Tom Rini wrote: > > > On Tue, Jun 10, 2025 at 02:22:49PM +0530, Sumit Garg wrote: > > > > On Mon, Jun 09, 2025 at 10:22:39AM -0600, Tom Rini wrote: > > > > > On Mon, Jun 09, 2025 at 05:07:40PM +0100, Sumit Garg wrote: > > > > > > On Mon, Jun 09, 2025 at 09:50:19AM -0600, Tom Rini wrote: > > > > > > > On Mon, Jun 09, 2025 at 04:40:43PM +0100, Sumit Garg wrote: > > > > > > > > On Mon, Jun 09, 2025 at 03:46:27PM +0200, Dario Binacchi wrote: > > > > > > > > > Hi Sumit, > > > > > > > > > > > > > > > > > > On Mon, Jun 9, 2025 at 3:25 PM Sumit Garg <sumit.garg@kernel.org> wrote: > > > > > > > > > > > > > > > > > > > > Hi Patrice, > > > > > > > > > > > > > > > > > > > > On Mon, Jun 09, 2025 at 03:15:14PM +0200, Patrice CHOTARD wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 6/7/25 11:37, Dario Binacchi wrote: > > > > > > > > > > > > The series adds support for stm32h747-discovery board. > > > > > > > > > > > > > > > > > > > > > > > > Detailed information can be found at: > > > > > > > > > > > > https://www.st.com/en/evaluation-tools/stm32h747i-disco.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Dario Binacchi (9): > > > > > > > > > > > > ARM: dts: stm32h7-pinctrl: add _a suffix to u[s]art_pins phandles > > > > > > > > > > > > dt-bindings: arm: stm32: add compatible for stm32h747i-disco board > > > > > > > > > > > > dt-bindings: clock: stm32h7: rename USART{7,8}_CK to UART{7,8}_CK > > > > > > > > > > > > ARM: dts: stm32: add uart8 node for stm32h743 MCU > > > > > > > > > > > > ARM: dts: stm32: add pin map for UART8 controller on stm32h743 > > > > > > > > > > > > ARM: dts: stm32: add an extra pin map for USART1 on stm32h743 > > > > > > > > > > > > ARM: dts: stm32: support STM32h747i-disco board > > > > > > > > > > > > ARM: dts: stm32: add stm32h747i-disco-u-boot DTS file > > > > > > > > > > > > board: stm32: add stm32h747-discovery board support > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Dario > > > > > > > > > > > > > > > > > > > > > > For the whole series > > > > > > > > > > > Applied to u-boot-stm32/next > > > > > > > > > > > > > > > > > > > > Please give some time for other maintainers to review this patch-set. > > > > > > > > > > The dts/upstream patches in this series aren't clean cherry pick from > > > > > > > > > > upstream. > > > > > > > > > > > > > > > > > > All the commits are already in the mainline Linux kernel, specifically > > > > > > > > > in v6.16-rc1. > > > > > > > > > If you're referring to the fact that the patches can't be applied > > > > > > > > > cleanly, I believe it's > > > > > > > > > because the target path in the Linux kernel doesn't match the one in U-Boot. > > > > > > > > > In fact, the DTS files are located in two different relative paths. > > > > > > > > > > > > > > > > That's exactly why we have (refer here [1]): > > > > > > > > > > > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > > > > > > > > > > > You should have waited v6.16-rc1 tag to be synced into > > > > > > > > devicetree-rebasing [2] for the cherry-picks to work. This way of > > > > > > > > manually patching dts/upstream is not allowed since it is going to break > > > > > > > > DT syncs in one way or another. > > > > > > > > > > > > > > > > So I would suggest you to wait for v6.16-rc1 to land in DT rebasing tree > > > > > > > > and then send v2 with proper cherry picked patches. > > > > > > > > > > > > > > > > [1] https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > > > > > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git > > > > > > > > > > > > > > To be honest, I don't think this is a big deal. Git will be merging > > > > > > > based on content and not specific hashes. And in the case of conflicts I > > > > > > > just copy the file from the tag to our tree. > > > > > > > > > > > > The essential problem here to me is we are going to allow manual > > > > > > patching of dts/upstream tree given this example? How do we keep track > > > > > > if all that manual patching landed in Linux DT mainline? The cherry > > > > > > picks ensured that we always keep in sync with mainline. > > > > > > > > > > > > Lets take an example what if Git automatically resolved a merge conflict > > > > > > for you with duplicated content or if manually patching a DTS file > > > > > > diverged from upstream and get unnoticed during DT syncs? > > > > > > > > > > > > IMHO, we should try to avoid manual patching of DT subtree otherwise it > > > > > > is hard to set a policy as to what level of manual patching is allowed > > > > > > or not. > > > > > > > > > > Part of the problem here is that from the standpoint of applying posted > > > > > patches there's no functional difference between what Dario did here and > > > > > what could be done once v6.16-rc1-dts is tagged (if it's not already). > > > > > It's essentially a "manual patch" either way. > > > > > > > > Nope, there is a difference here. The cherry-pick from DT rebasing > > > > allows the custodian to rather just cherry pick corresponding DT patches > > > > rather than applying patches posted on mailing list. I usually do that > > > > when reviewing dts/upstream patches if they can be cherry-picked cleanly > > > > or not. So there won't be manual patching in that process. > > > > > > > > ./tools/update-subtree.sh pick dts <commit-id-to-be-picked> > > > > > > Alright. I hadn't foreseen anyone doing that rather than "b4 {am,shazam} > > > msg-id" to grab the series. > > > > Maybe we need to have some custodian specific docs listing best > > practices. > > > > Or extend > > https://docs.u-boot.org/en/latest/develop/devicetree/control.html#where-do-i-get-a-devicetree-file-for-my-board > https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > > ? > > > > > > > > > We make it clear that > > > > > dts/upstream/ *only* gets changes that are in Linus' tree. If someone > > > > > tries to be sneaky and push something in that's not quite what's > > > > > upstream, it will get stomped on later and there's not going to be any > > > > > sympathy for the now broken platform. > > > > > > > > For us the upstream sync path is via DT rebasing tree only. It usually > > > > lags behind Linus' tree by maximum 1 week candence what I have noticed. > > > > > > > > > > > > > > Yes, we document saying to use the cherry-pick script, and that's what > > > > > people should do in general. But I don't think there's value in adding a > > > > > further delay between "in Linus' tree" and "in devicetree-rebasing". In > > > > > the linux kernel, there's thousands of people working on things and so > > > > > strict rules can be understandable (someone will be running a bot to > > > > > look for "(cherry pick from commit $hash)" and fail things where $hash > > > > > doesn't exist, makes sense). Here if the ST custodians are happy just > > > > > verifying the kernel commit, OK, that's fine. Or if they want to wait, > > > > > that's fine too. We can be a little relaxed and let custodians do what > > > > > they see as best. > > > > > > > > The reason we adopted OF_UPSTREAM was just to get rid of the manual DT > > > > patching and the syncs. So is it really that few days lag of DT rebasing > > > > tree which is again pushing us towards manual DT patching? I am just > > > > trying to understand the shortcomings that DT rebasing tree puts in > > > > front of us. > > > > > > It's mainly that I want to be flexible. So long as we don't violate the > > > content rules (Linus' tree *only*) I don't want to hinder the people > > > eager to now upstream U-Boot support for purely process reasons > > > > This flexibility has a cost associated to it which I hopefully was able > > to clarify above. But finally it's your decision which prevails. > > > > BTW, DT rebasing has already got the v6.16-rc1 tag, so it was really > > just 3 days gap. Quentin (CCed) has already done some proper cherry > > picking from there [1]. > > > > Not sure why I was summoned here but I can give my (maybe undesired) 2 cents > :) > > I (a contributor) **really** do not want to have hand-crafted patches in > dts/upstream. Use tools/update-subtree.sh for patches in that tree. Only Tom > is allowed to use pull because it's a mess to send a patch for it and he > usually announces he's doing it and then pushes to the next branch directly, > contributors can use pick instead. If a pick fails, backport everything > needed for it to apply cleanly. Yes, this may be tedious. Make sure you do > not break any other board as well. > > I was already surprised we have U-Boot specific files in dts/upstream (e.g. > Makefiles :) ). > > 1) Doing it manually doesn't enforce the addition of the commit hash used > for the backport/cherry-pick in the commit log, which may be problematic > (how to quickly check that the patch contains what it should contain and not > more, or less?). How to verify it actually was merged? In that state and not > after other changes? Let's imagine an upstream patch that changes the > SoC.dtsi and associated boards dts, if backporting manually one could be > tempted to skip a conflicting board dts (because another commit needs to be > picked before for it to apply cleanly). Also, until it's merged in master > (which can take a long time depending where you are in the release cycle) > there's no guarantee the patch is actually going to make it as is to the > tree (it isn't unheard of to have reverts or even rebases in maintainer > trees before sending a merge request to Linus). > > 2) If there are manual changes made to the patch that aren't upstreamed in > the kernel (or dependencies (git context) are missing), if we diverge too > much from upstream, Tom will have git conflicts when pulling new versions. > How to resolve those conflicts will be interesting. > > 3) Worse, if there are non-upstreamed changes that aren't inducing any git > conflict (via git context for example), then the merge/pull may not say > anything about it and we'll carry non-upstream patches in dts/upstream. > > Maybe we should not even do a subtree pull/merge but erase everything and > reimport everything every time we bump, to make sure 2 or 3) cannot happen? > > For what it's worth, I've caught some (Rockchip) contributors sending > patches to dts/upstream that weren't even sent to the kernel mailing list. > That wasn't done on purpose but there are probably a few patches already > that went through the cracks. I am not sure how we could enforce that (which > needs to be done with maintainer tools as there are already too many ways to > contribute to U-boot (patman, git-send-email, b4, etc...)) or even if we > want to. But making dts/upstream the new arch/arm/dts/ (for ARM) directory > doesn't make much sense to me. > > If you cannot wait for devicetree-rebasing to receive the new tag, do the > changes in -u-boot.dtsi and revert the changes once we update dts/upstream > to a newer tag (or cherry-pick once available)? > > v6.16-rc1 took a bit longer this time to reach devicetree-rebasing I think, > but it landed this morning (UTC) so it isn't THAT long compared to the push > in master. We could ask devicetree-rebasing people to push the master branch > more often to avoid the up-to 2-week delay between v6.15 and v6.16-rc1 for > example. > > I have read nothing in this thread so this is absolutely not a jab at some > contributor or maintainer in this series. > > On a side-note, I think we should add -s to tools/update-subtree.sh's git > cherry-pick call to know who contributed the change to U-Boot (as the commit > author will be the same as in the kernel as far as I remember). > > To be fair, the whole process is a bit constraining, especially for new > boards. You may have to wait up to ~2 months (a full kernel release cycle) > to see a tag with the device tree for your board, and only then can you > support the board in U-Boot with OF_UPSTREAM. In Rockchip we typically force > OF_UPSTREAM for new boards, but we also typically do not accept hand-crafted > git commits to dts/upstream. I don't know if it's deterring contributors but > we are still getting some contributions here and there. Not sure how we > should be handling that :/ > > > [1] https://patchwork.ozlabs.org/project/uboot/list/?series=460450 > > > > > (which > > > happens, E Shattow on IRC was asking how to at least locally point > > > dts/upstream at something else, at least for local testing). > > > > > > > I would love to hear problems from people if that's for downstream > > development too. > > > > We can add things in https://docs.u-boot.org/en/latest/develop/devicetree/control.html#where-do-i-get-a-devicetree-file-for-my-board > and https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing > to be clearer on the limitations. Though til we enforce a check, this is > just information. Thank you for taking the time to provide your perspective on this Quentin. And while I had hoped to be able to look over the history of dts/upstream and see that it was just the Makefiles (which I don't think we can avoid) being the difference between devicetree-rebasing and us, that's not quite the case. So, yes, Sumit's opinion that we must cherry-pick seems best. The documentation needs to be updated a bit, and some more clear examples perhaps provided too. I've added some local scripting that will complain at me about changes that don't have the cherry-pick message or that the commit referenced doesn't exist. I may spend a little time figuring out how to dump each commit and make sure they're the same, but that too much get tricky.