[PATCH 00/11] mmc: power: convert ofnode API to dev_read API

Peng Fan (OSS) peng.fan at oss.nxp.com
Thu Jun 4 14:20:23 CEST 2026


Convert MMC and power drivers from using ofnode_read_*() /
ofnode_get_property() / ofnode_for_each_subnode() /
ofnode_find_subnode() to their dev_read_*() / dev_for_each_subnode() /
dev_read_subnode() equivalents. The dev_read_*() functions are thin
wrappers that internally call dev_ofnode(dev) and forward to the
corresponding ofnode_*() function, so there is no functional change.

For the Meson power domain drivers (meson-ee-pwrc and
meson-gx-pwrc-vpu), the manual ofnode_read_u32() +
ofnode_get_by_phandle() + ofnode_valid() phandle resolution sequence
is replaced with a single dev_read_phandle_with_args() call.

This cleanup removes intermediate 'ofnode node' local variables and
the now-unused host->node field in octeontx_hsmmc, making the code
more concise.

Drivers converted:
  - mmc: fsl_esdhc_imx, msm_sdhci, octeontx_hsmmc
  - power/domain: imx8m-power-domain, meson-ee-pwrc, meson-gx-pwrc-vpu
  - power/pmic: pca9450, pmic_qcom
  - power/regulator: anatop, qcom-rpmh, scmi

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
Peng Fan (11):
      mmc: fsl_esdhc_imx: convert ofnode API to dev_read API
      mmc: msm_sdhci: convert ofnode API to dev_read API
      mmc: octeontx_hsmmc: convert ofnode API to dev_read API
      power: domain: meson-ee-pwrc: use dev_read_phandle_with_args for ao-sysctrl
      power: domain: meson-gx-pwrc-vpu: use dev_read_phandle_with_args for hhi-sysctrl
      power: domain: imx8m: convert ofnode API to dev_read API
      power: pmic: pca9450: convert ofnode API to dev_read API
      power: pmic: qcom: convert ofnode API to dev_read API
      power: regulator: anatop: convert ofnode API to dev_read API
      power: regulator: qcom-rpmh: convert ofnode API to dev_read API
      power: regulator: scmi: convert ofnode API to dev_read API

 drivers/mmc/fsl_esdhc_imx.c                   | 14 +++--
 drivers/mmc/msm_sdhci.c                       |  7 ++-
 drivers/mmc/octeontx_hsmmc.c                  | 74 +++++++++++----------------
 drivers/mmc/octeontx_hsmmc.h                  |  1 -
 drivers/power/domain/imx8m-power-domain.c     |  4 +-
 drivers/power/domain/meson-ee-pwrc.c          | 13 ++---
 drivers/power/domain/meson-gx-pwrc-vpu.c      | 13 ++---
 drivers/power/pmic/pca9450.c                  |  2 +-
 drivers/power/pmic/pmic_qcom.c                |  2 +-
 drivers/power/regulator/anatop_regulator.c    |  3 +-
 drivers/power/regulator/qcom-rpmh-regulator.c |  7 +--
 drivers/power/regulator/scmi_regulator.c      |  2 +-
 12 files changed, 57 insertions(+), 85 deletions(-)
---
base-commit: 31af00bdc6a3ab5d4ada83e08407f2ce289f0ec6
change-id: 20260604-devapi-05f934cfcc04

Best regards,
-- 
Peng Fan <peng.fan at nxp.com>



More information about the U-Boot mailing list