From: Yao Zi <me@ziyao.cc>
To: Vincent Legoll <legoll@online.fr>,
Guodong Xu <guodong@riscstar.com>,
u-boot@lists.denx.de
Cc: Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Michal Simek <michal.simek@amd.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Peter Korsgaard <peter@korsgaard.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Gabriel Fernandez <gabriel.fernandez@foss.st.com>,
Kever Yang <kever.yang@rock-chips.com>,
Finley Xiao <finley.xiao@rock-chips.com>,
Rick Chen <rick@andestech.com>,
Conor Dooley <conor.dooley@microchip.com>,
u-boot-spacemit@groups.io,
Heinrich Schuchardt <xypron.glpk@gmx.de>
Subject: Re: [PATCH 0/8] riscv: spacemit: k1: add clock reset drivers, switch to upstream DT
Date: Mon, 11 May 2026 04:52:49 +0000 [thread overview]
Message-ID: <agFgoT-HbPfzgVWT@pie> (raw)
In-Reply-To: <3fe472bc-b9aa-49f6-ab75-a45547815c28@online.fr>
On Sun, May 10, 2026 at 09:44:14PM +0200, Vincent Legoll wrote:
> Hello Guodong Xu,
>
> On 5/10/26 14:06, Guodong Xu wrote:
> > Currently U-Boot's SpacemiT K1 ships its own arch/riscv/dts/k1.dtsi and a
> > spacemit,k1-reset binding that has no node in the upstream
> > (kernel-mainline) K1 dts. After list discussion [1], this series
> > moves U-Boot to the upstream DT before further K1 work lands.
> >
> > In the upstream DT, each K1 syscon provides both clocks and resets.
> > The kernel's clock driver spawns the reset child via the auxiliary
> > bus. This patchset does the same in U-Boot: each clock driver
> > spawns a UCLASS_RESET sibling on the same ofnode.
> >
> > Patch 1/8 adds the K1 clock driver.
> > Patch 2/8 adds a new syscon-bound reset driver with no DT of_match. At this
> > point, the legacy reset driver and local dts are still there.
> > Patch 3/8 has each per-syscon clock driver spawn the reset child on the
> > same ofnode, the way the kernel uses auxiliary devices.
> > Patch 4/8 enables the clock driver.
> > Patch 5/8 switches BPI-F3 to dts/upstream/.
> > Patch 6/8, 7/8 and 8/8 clean up the legacy reset driver and local dts files.
> >
> > Old and new reset drivers coexist from 2/8 through 6/8 so the series
> > is bisectable.
> >
> > The K1 SPL bring-up [2] and PIN/SPI [3] series will be rebased on
> > this and resent once it lands.
> >
> > Link: https://lore.kernel.org/u-boot/20260507140558.GU1614990@bill-the-cat/ [1]
> > Link: https://lore.kernel.org/u-boot/20260325223232.1553212-1-raymondmaoca@gmail.com/ [2]
> > Link: https://lore.kernel.org/u-boot/20260422143112.1329478-1-raymondmaoca@gmail.com/ [3]
> >
> > [...]
> >
> > ---
> > base-commit: 24db98cdf911b6ca362209e674bf9412441c1095
> > change-id: 20260510-b4-k1-clk-reset-upstream-dts-cbf1f3a79cfb
>
>
> I tried to apply this locally but failed:
>
> $ git log --oneline -1
> 24db98cdf91 (HEAD -> test) Merge tag 'u-boot-imx-next-20260318' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx into next
>
> $ git status
> On branch test
> nothing to commit, working tree clean
>
> $ wget https://lore.kernel.org/u-boot/20260510-b4-k1-clk-reset-upstream-dts-v1-0-db0b0503ee44@riscstar.com/t.mbox.gz
> \
>
> -O ~/Downloads/PATCH-0-8-riscv-spacemit-k1-add-clock-reset-drivers-switch-to-upstream-DT.mbox.gz
>
>
> $ gzip -dc ~/Downloads/PATCH-0-8-riscv-spacemit-k1-add-clock-reset-drivers-switch-to-upstream-DT.mbox.gz
> | git am
> Applying: riscv: spacemit: k1: add clock reset drivers, switch to upstream
> DT
> error: No valid patches in input (allow with "--allow-empty")
> Patch failed at 0001 riscv: spacemit: k1: add clock reset drivers, switch to
> upstream DT
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
> hint: When you have resolved this problem, run "git am --continue".
> hint: If you prefer to skip this patch, run "git am --skip" instead.
> hint: To restore the original branch and stop patching, run "git am
> --abort".
> hint: Disable this message with "git config set advice.mergeConflict false"
>
> I had a similar failure with the mbox downloaded with:
Because the first mail in the mbox file is the cover letter, not a real
patch, thus contains no code changes and couldn't be applied by default.
Try
b4 shazam 20260510-b4-k1-clk-reset-upstream-dts-v1-0-db0b0503ee44@riscstar.com
instead, which applies the series cleanly at least on my side. With
git am you might skip application of the first mail manually by
git am --skip
and continue with rest of the series.
> $ b4 mbox https://lore.kernel.org/u-boot/20260510-b4-k1-clk-reset-upstream-dts-v1-0-db0b0503ee44@riscstar.com/T/#t
>
>
> I also tried to apply to master branch without success
>
> Is there something I'm doing wrong ?
>
> Regards
>
Regards,
Yao Zi
next prev parent reply other threads:[~2026-05-11 4:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 12:06 [PATCH 0/8] riscv: spacemit: k1: add clock reset drivers, switch to upstream DT Guodong Xu
2026-05-10 12:06 ` [PATCH 1/8] clk: spacemit: Add support for K1 SoC Guodong Xu
2026-05-22 16:09 ` Yao Zi
2026-05-23 13:11 ` Guodong Xu
2026-05-10 12:06 ` [PATCH 2/8] reset: spacemit: k1: introduce syscon-bound reset driver Guodong Xu
2026-05-10 12:06 ` [PATCH 3/8] clk: spacemit: k1: spawn reset device from per-syscon clock drivers Guodong Xu
2026-05-10 12:06 ` [PATCH 4/8] configs: bananapi-f3: enable Spacemit K1 clock driver Guodong Xu
2026-05-10 12:06 ` [PATCH 5/8] dts: k1: switch BPI-F3 build to upstream DT Guodong Xu
2026-05-10 12:06 ` [PATCH 6/8] dts: k1: drop legacy local DT files Guodong Xu
2026-05-10 12:06 ` [PATCH 7/8] reset: spacemit: k1: drop legacy spacemit,k1-reset driver Guodong Xu
2026-05-10 12:06 ` [PATCH 8/8] dt-bindings: reset: drop spacemit-k1-reset.h Guodong Xu
2026-05-10 19:44 ` [PATCH 0/8] riscv: spacemit: k1: add clock reset drivers, switch to upstream DT Vincent Legoll
2026-05-11 4:52 ` Yao Zi [this message]
2026-05-11 6:51 ` Vincent Legoll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=agFgoT-HbPfzgVWT@pie \
--to=me@ziyao.cc \
--cc=conor.dooley@microchip.com \
--cc=finley.xiao@rock-chips.com \
--cc=gabriel.fernandez@foss.st.com \
--cc=guodong@riscstar.com \
--cc=junhui.liu@pigmoral.tech \
--cc=kever.yang@rock-chips.com \
--cc=legoll@online.fr \
--cc=lukma@denx.de \
--cc=michal.simek@amd.com \
--cc=patrice.chotard@foss.st.com \
--cc=patrick.delaunay@foss.st.com \
--cc=peter@korsgaard.com \
--cc=quentin.schulz@cherry.de \
--cc=raymond.mao@riscstar.com \
--cc=rick@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.