Skip to content

spi: Convert drivers to dev_read_* APIs

Peng Fan (OSS) u-boot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20260526-devfdt-spi-2911c7201281

Versions newest first

  1. v2 Latest5 patches 4 repliesIn review
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

Per Simon:
- Patch 4/6 (cadence_qspi): Update commit log to note the new NULL checks for regbase/ahbbase as a behavior improvement, not "no functional changes".
- Patch 6/6 (ti_qspi): Fix dev_read_phandle_with_args() call to use cell_count=1 instead of 0 so syscon-chipselects offset arg is parsed correctly. Wrap the call to 80 columns.
Add R-b from Simon.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: spi-aspeed-smc: Use dev_read_addr_index_ptr()drivers/spi/spi-aspeed-smc.c+2 -20 replies
2/5spi: cadence_qspi: Use dev_read_addr_index_ptr()drivers/spi/cadence_qspi.c+5 -20 replies
3/5spi: mtk_snor: Use dev_read_addr_ptr()drivers/spi/mtk_snor.c+1 -11 reply
4/5spi: nxp: Use dev_read_addr_size_name()drivers/spi/nxp_fspi.c drivers/spi/nxp_xspi.c+8 -80 replies
5/5spi: ti_qspi: Use device APIsdrivers/spi/ti_qspi.c+10 -121 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSimon GlassWeijie GaoDavid Lechner
1/5R-b
2/5R-b
3/5R-b R-b A-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] spi: Convert drivers to dev_read_* APIs

This series converts several SPI controller drivers to use the dev_read_* APIs instead of legacy devfdt_* and raw FDT helpers. The dev_read_* APIs provide a unified interface that works with both live device tree and flat device tree backends, avoiding direct dependencies on devfdt_* helpers

---
Changes in v2:
Per Simon:
- Patch 4/6 (cadence_qspi): Update commit log to note the new NULL checks for regbase/ahbbase as a behavior improvement, not "no functional changes".
- Patch 6/6 (ti_qspi): Fix dev_read_phandle_with_args() call to use cell_count=1 instead of 0 so syscon-chipselects offset arg is parsed correctly. Wrap the call to 80 columns.
Add R-b from Simon.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Peng Fan (5):
spi: spi-aspeed-smc: Use dev_read_addr_index_ptr()
spi: cadence_qspi: Use dev_read_addr_index_ptr()
spi: mtk_snor: Use dev_read_addr_ptr()
spi: nxp: Use dev_read_addr_size_name()
spi: ti_qspi: Use device APIs

 drivers/spi/cadence_qspi.c   |  7 +++++--
 drivers/spi/mtk_snor.c       |  2 +-
 drivers/spi/nxp_fspi.c       |  8 ++++----
 drivers/spi/nxp_xspi.c       |  8 ++++----
 drivers/spi/spi-aspeed-smc.c |  4 ++--
 drivers/spi/ti_qspi.c        | 22 ++++++++++------------
 6 files changed, 26 insertions(+), 25 deletions(-)

---
base-commit: 0a46055d96ac627c05180cdeaa187a9fdf6b7973
change-id: 20260526-devfdt-spi-2911c7201281

Best regards,

Signature · 1 line
Peng Fan <[email protected]>