* SpacemiT K1 SoC watchdog support
@ 2026-11-28 8:09 Dmitrii Vaniushin
2026-11-28 14:06 ` E Shattow
2026-11-29 1:13 ` Yixun Lan
0 siblings, 2 replies; 5+ messages in thread
From: Dmitrii Vaniushin @ 2026-11-28 8:09 UTC (permalink / raw)
To: u-boot; +Cc: u-boot-spacemit, eric.chung, alan.tseng.cs, dlan
Hello!
I would like to contribute to u-boot. As I have a Banana Pi BPI-F3
available, I was thinking about adding support for the SpacemiT K1 SoC
watchdog to mainline U-Boot, using the existing vendor implementation
as a reference.
https://github.com/spacemit-com/uboot-2022.10/blob/k1-bl-v2.2.y/drivers/watchdog/spacemit_wdt.c
Is anyone already working on upstream watchdog support for the K1 or
K3? Would such a contribution be welcome?
Would appreciate any feedback!
Thanks,
Dmitrii
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SpacemiT K1 SoC watchdog support
2026-11-28 8:09 SpacemiT K1 SoC watchdog support Dmitrii Vaniushin
@ 2026-11-28 14:06 ` E Shattow
2026-11-28 17:48 ` Dmitrii Vaniushin
2026-11-29 1:13 ` Yixun Lan
1 sibling, 1 reply; 5+ messages in thread
From: E Shattow @ 2026-11-28 14:06 UTC (permalink / raw)
To: Dmitrii Vaniushin, u-boot
Cc: u-boot-spacemit, eric.chung, alan.tseng.cs, dlan
Hi Dmitrii,
On 11/28/26 00:09, Dmitrii Vaniushin wrote:
> Hello!
>
> I would like to contribute to u-boot. As I have a Banana Pi BPI-F3
> available, I was thinking about adding support for the SpacemiT K1 SoC
> watchdog to mainline U-Boot, using the existing vendor implementation
> as a reference.
> https://github.com/spacemit-com/uboot-2022.10/blob/k1-bl-v2.2.y/drivers/watchdog/spacemit_wdt.c
>
> Is anyone already working on upstream watchdog support for the K1 or
> K3? Would such a contribution be welcome?
>
> Would appreciate any feedback!
>
> Thanks,
> Dmitrii
Yes, to get started look at "Guide to build reduced SpacemiT K3 vendor BSP":
https://lore.kernel.org/u-boot/20261029001555.1890775-1-e@freeshell.de/
There is concurrently development of DDR init and SPL for K1/K3 in
mainline U-Boot, however not yet ready for general use. Until then I
suggest the baseline at the moment is this guide (above) to reduce
vendor DDR init and SPL to the very minimum without clocks support and
boot mainline U-Boot main app u-boot.itb via UART YMODEM.
If the BootROM loader is in "UART" mode to boot SPL, and SPL does not
set any clocks, then any feature you author for mainline U-Boot main app
will ideally need to properly set clocks and peripheral configuration
instead of assumptions about BootROM and SPL.
You can write support for U-Boot main app and port drivers from mainline
Linux. It is preferred to borrow from Linux upstream first. If support
does not yet exist in mainline Linux please start there for SpacemiT K1/K3.
If I may suggest something the FSL QSPI driver needs a refresh in
U-Boot, and there are small changes to it in U-Boot that could be
upstreamed to Linux. It should be helpful to do this and become familiar
with U-Boot in this year (not 2022) :-)
https://git.u-boot-project.org/u-boot/u-boot/-/blob/main/drivers/spi/fsl_qspi.c
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spi-fsl-qspi.c
-E
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SpacemiT K1 SoC watchdog support
2026-11-28 14:06 ` E Shattow
@ 2026-11-28 17:48 ` Dmitrii Vaniushin
0 siblings, 0 replies; 5+ messages in thread
From: Dmitrii Vaniushin @ 2026-11-28 17:48 UTC (permalink / raw)
To: E Shattow; +Cc: u-boot, u-boot-spacemit, eric.chung, alan.tseng.cs, dlan
Hello, E!
Thank you for the pointers!
> If I may suggest something the FSL QSPI driver needs a refresh in
> U-Boot, and there are small changes to it in U-Boot that could be
> upstreamed to Linux. It should be helpful to do this and become familiar
> with U-Boot in this year (not 2022) :-)
I'll check what I can do in FSL QSPI driver.
Thank you very much,
Dmitrii
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SpacemiT K1 SoC watchdog support
2026-11-28 8:09 SpacemiT K1 SoC watchdog support Dmitrii Vaniushin
2026-11-28 14:06 ` E Shattow
@ 2026-11-29 1:13 ` Yixun Lan
2026-11-29 7:42 ` Dmitrii Vaniushin
1 sibling, 1 reply; 5+ messages in thread
From: Yixun Lan @ 2026-11-29 1:13 UTC (permalink / raw)
To: Dmitrii Vaniushin; +Cc: u-boot, u-boot-spacemit, eric.chung, alan.tseng.cs
Hi Dmitrii,
On 11:09 Sat 28 Nov , Dmitrii Vaniushin wrote:
> Hello!
>
> I would like to contribute to u-boot. As I have a Banana Pi BPI-F3
> available, I was thinking about adding support for the SpacemiT K1 SoC
> watchdog to mainline U-Boot, using the existing vendor implementation
> as a reference.
> https://github.com/spacemit-com/uboot-2022.10/blob/k1-bl-v2.2.y/drivers/watchdog/spacemit_wdt.c
>
> Is anyone already working on upstream watchdog support for the K1 or
> K3? Would such a contribution be welcome?
>
I haven't seen anyone working on this, so much welcome!
Also, I'm interested in adding reset support, so able to
execute 'reset' command in console. Last time I checked,
it didn't work..
You can check the reset function once you added the watchdog
driver. Another point, vendor implemented another reset driver
via the PMIC hardware reset functionality.
https://github.com/spacemit-com/uboot-2022.10/blob/c3b72c939319d1f379acfa7da13adbd331f83bdc/drivers/sysreset/sysreset_spacemit.c
--
Yixun Lan (dlan)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SpacemiT K1 SoC watchdog support
2026-11-29 1:13 ` Yixun Lan
@ 2026-11-29 7:42 ` Dmitrii Vaniushin
0 siblings, 0 replies; 5+ messages in thread
From: Dmitrii Vaniushin @ 2026-11-29 7:42 UTC (permalink / raw)
To: Yixun Lan; +Cc: u-boot, u-boot-spacemit, eric.chung, alan.tseng.cs
Hi Yixun,
Thank you!
It looks like SoC watchdog was not upstreamed to mainline Linux as
well, so I'll start from there.
And after it's approved in Linux, I'll port it to U-Boot.
>Also, I'm interested in adding reset support, so able to
>execute 'reset' command in console. Last time I checked,
>it didn't work..
I'll check the reset afterwards.
Regards,
Dmitrii
On Sun, Nov 29, 2026 at 4:13 AM Yixun Lan <dlan@kernel.org> wrote:
>
> Hi Dmitrii,
>
> On 11:09 Sat 28 Nov , Dmitrii Vaniushin wrote:
> > Hello!
> >
> > I would like to contribute to u-boot. As I have a Banana Pi BPI-F3
> > available, I was thinking about adding support for the SpacemiT K1 SoC
> > watchdog to mainline U-Boot, using the existing vendor implementation
> > as a reference.
> > https://github.com/spacemit-com/uboot-2022.10/blob/k1-bl-v2.2.y/drivers/watchdog/spacemit_wdt.c
> >
> > Is anyone already working on upstream watchdog support for the K1 or
> > K3? Would such a contribution be welcome?
> >
> I haven't seen anyone working on this, so much welcome!
>
> Also, I'm interested in adding reset support, so able to
> execute 'reset' command in console. Last time I checked,
> it didn't work..
>
> You can check the reset function once you added the watchdog
> driver. Another point, vendor implemented another reset driver
> via the PMIC hardware reset functionality.
>
> https://github.com/spacemit-com/uboot-2022.10/blob/c3b72c939319d1f379acfa7da13adbd331f83bdc/drivers/sysreset/sysreset_spacemit.c
>
> --
> Yixun Lan (dlan)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-29 7:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 8:09 SpacemiT K1 SoC watchdog support Dmitrii Vaniushin
2026-11-28 14:06 ` E Shattow
2026-11-28 17:48 ` Dmitrii Vaniushin
2026-11-29 1:13 ` Yixun Lan
2026-11-29 7:42 ` Dmitrii Vaniushin
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.