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

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue Jun 2 13:20:14 CEST 2026


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

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
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/20260527-devfdt-spi-v1-0-37db1f6c168a@nxp.com

---
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,
-- 
Peng Fan <peng.fan at nxp.com>



More information about the U-Boot mailing list