From: Yixun Lan <dlan@kernel.org>
To: Tim Ouyang <tim609@andestech.com>
Cc: u-boot@lists.u-boot-project.org, spacemit@lists.linux.dev,
u-boot-spacemit@groups.io, Lukasz Majewski <lukma@denx.de>,
Tom Rini <trini@konsulko.com>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Raymond Mao <raymond.mao@riscstar.com>,
Guodong Xu <guodong.xu@oss.qualcomm.com>,
Peng Fan <peng.fan@nxp.com>, Torsten Duwe <duwe@suse.de>,
Ryan Chen <ryan_chen@aspeedtech.com>,
Jonas Karlman <jonas@kwiboo.se>,
Alexey Charkov <alchark@flipper.net>,
oyst.lnx@gmail.com
Subject: Re: [PATCH 6/8] clk: spacemit: k3: reduce clock tree for SPL build
Date: Fri, 4 Sep 2026 20:52:00 +0000 [thread overview]
Message-ID: <20260904205200-GKB53903@kernel.org> (raw)
In-Reply-To: <shthcaz5wjcp2vwd2c2i74axiayf4zhlgsoq5fbswofld5poq4@znfx5b2yby2t>
Hi Tim,
On 17:55 Wed 02 Sep , Tim Ouyang wrote:
> On Tue, Aug 25, 2026 at 04:24:16AM +0000, Yixun Lan wrote:
> > Due to SPL image running in a memory space constraint SRAM environment,
> > so reduce the whole clock tree a bit to make it fit for final runtime
> > requirement, only a subset clock tree is registered, which includes UART,
> > SDHCI, I2C (TWSI), and their PLL/MPMU/APMU/APBC ancestors; while the
> > full clock tree is retained in non-SPL build.
> >
> > Where surviving SPL CCU definitions reference parent clocks outside
> > that subset tree, it will use "clock-dummy" as name of clock parent to
> > ensure the framework still successfully resolves the parent clock lookup.
> >
> > Signed-off-by: Yixun Lan <dlan@kernel.org>
> > ---
>
> [...]
>
> > /* APMU clocks start */
> > +#if IS_ENABLED(CONFIG_SPL_BUILD)
> > +static const char * const axi_clk_parents[] = {
> > + "pll1_d8_307p2", "pll1_d6_409p6",
> > +};
> > +CCU_MUX_DIV_FC_DEFINE(CLK_APMU_AXICLK, axi_clk, axi_clk,
> > + axi_clk_parents, ARRAY_SIZE(axi_clk_parents),
> > + APMU_ACLK_CLK_CTRL, APMU_ACLK_CLK_CTRL, 1, 2,
> > + BIT(4), 0, 1, 0);
> > +#else
> > static const char * const axi_clk_parents[] = {
> > "pll1_d8_307p2", "pll1_d6_409p6",
> > };
>
> The SPL clock subset does not seem to include all the clocks described
> in the commit message. For example, the SDH0/1/2 clocks are excluded
> from the SPL build.
>
> Is this intentional?
You right, but I will update the commit message instead of changing the code.
The lastest dts in u-boot next branch just synced with upstream kernel v7.2
which doesn't include SDHCI support (need to wait for v7.3), also the SDHCI
for SPL support still needs some testing, so I will postpone it in later patches
--
Yixun Lan (dlan)
next prev parent reply other threads:[~2026-09-04 20:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 4:24 [PATCH 0/8] spacemit: k3: add clock and reset support Yixun Lan
2026-08-25 4:24 ` [PATCH 1/8] clk: spacemit: ccu_mix: fix inverted condition in ccu_mix_trigger_fc() Yixun Lan
2026-08-25 4:24 ` [PATCH 2/8] clk: spacemit: ccu_mix: add inverted enable gate clock Yixun Lan
2026-08-25 4:24 ` [PATCH 3/8] clk: spacemit: ccu_pll: add plla type clock Yixun Lan
2026-08-25 4:24 ` [PATCH 4/8] clk: spacemit: k3: extract common header Yixun Lan
2026-08-25 4:24 ` [PATCH 5/8] clk: spacemit: k3: add the clock tree Yixun Lan
2026-08-25 4:24 ` [PATCH 6/8] clk: spacemit: k3: reduce clock tree for SPL build Yixun Lan
2026-09-02 9:55 ` Tim Ouyang
2026-09-04 20:52 ` Yixun Lan [this message]
2026-08-25 4:24 ` [PATCH 7/8] reset: spacemit: Extract common K1 reset code Yixun Lan
2026-08-25 4:24 ` [PATCH 8/8] reset: spacemit: Add SpacemiT K3 reset driver Yixun Lan
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=20260904205200-GKB53903@kernel.org \
--to=dlan@kernel.org \
--cc=alchark@flipper.net \
--cc=duwe@suse.de \
--cc=guodong.xu@oss.qualcomm.com \
--cc=jonas@kwiboo.se \
--cc=junhui.liu@pigmoral.tech \
--cc=lukma@denx.de \
--cc=oyst.lnx@gmail.com \
--cc=peng.fan@nxp.com \
--cc=raymond.mao@riscstar.com \
--cc=ryan_chen@aspeedtech.com \
--cc=spacemit@lists.linux.dev \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox