spi: fsl_qspi: add clock handling #1

Closed
ChuanN-sudo wants to merge 1 commits from ChuanN-sudo/u-boot:k3-dev into dev
Member

Add QSPI support for K3 in DT and board config, and update
fsl_qspi to handle the clocks required by the controller.

Please do not submit a Pull Request via github. Our project makes use of
mailing lists for patch submission and review. For more details please
see https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html

The only exception to this is in order to trigger a CI loop on Azure prior
to posting of patches.

Add QSPI support for K3 in DT and board config, and update fsl_qspi to handle the clocks required by the controller. Please do not submit a Pull Request via github. Our project makes use of mailing lists for patch submission and review. For more details please see https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html The only exception to this is in order to trigger a CI loop on Azure prior to posting of patches.
Owner

还需要拆分patch,只提交fsl改动。k3使能的部分不需要推PR

还需要拆分patch,只提交fsl改动。k3使能的部分不需要推PR
SalimTerryLi reviewed 2026-04-30 08:40:07 +00:00
@@ -272,2 +279,4 @@
void __iomem *iobase;
void __iomem *ahb_addr;
#if CONFIG_IS_ENABLED(CLK)
struct clk clk_en, clk;
Owner

拆多行

拆多行
Author
Member

已修改

已修改
SalimTerryLi marked this conversation as resolved
SalimTerryLi reviewed 2026-04-30 08:40:36 +00:00
@@ -821,2 +831,4 @@
dm_bus->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency",
66000000);
#if CONFIG_IS_ENABLED(CLK)
ret = clk_get_by_index(bus, 0, &q->clk_en);
Owner

用name别用写死的index,name从dt拿

参考 Linux 的流程

用name别用写死的index,name从dt拿 参考 Linux 的流程
Author
Member

已经改成通过name拿clocks

已经改成通过name拿clocks
SalimTerryLi marked this conversation as resolved
ChuanN-sudo changed title from riscv: dts: k3: add QSPI support with fsl_qspi clocks to spi: fsl_qspi: add clock support for SpacemiT K3 2026-05-07 08:35:41 +00:00
SalimTerryLi reviewed 2026-05-08 08:52:07 +00:00
@@ -267,3 +268,3 @@
.little_endian = true,
};
static const struct fsl_qspi_devtype_data spacemit_k3_data = {
Owner

K3 部分移出 fsl patch,还有底部的 compatible

K3 部分移出 fsl patch,还有底部的 compatible
Author
Member

已完成修改

已完成修改
ChuanN-sudo changed title from spi: fsl_qspi: add clock support for SpacemiT K3 to spi: fsl_qspi: add clock handling 2026-05-09 02:45:13 +00:00
SalimTerryLi changed target branch from k3-dev to dev 2026-05-09 08:49:08 +00:00
SalimTerryLi added 8 commits 2026-05-09 08:49:08 +00:00
bootinfo.bin generation is added but not implemented
First usable state reached: SPL booted and console printed
Add support for the clocks used by the SpacemiT K3 QSPI
controller by retrieving and enabling the qspi_en and qspi
clocks during probe.

Signed-off-by: Jichuan Feng<jichuan.or@isrc.iscas.ac.cn>
ChuanN-sudo force-pushed k3-dev from 85d927d2bd to 037ffcf5e5 2026-05-09 09:00:16 +00:00 Compare
ChuanN-sudo force-pushed k3-dev from 037ffcf5e5 to 6c470cd980 2026-05-09 09:06:53 +00:00 Compare
SalimTerryLi closed this pull request 2026-05-09 19:48:21 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OERV-BSP/u-boot#1