All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	u-boot@lists.denx.de,  Sumit Garg <sumit.garg@kernel.org>,
	u-boot-qcom@groups.io,  u-boot-amlogic@groups.io
Cc: Stefano Babic <sbabic@nabladev.com>,
	Fabio Estevam <festevam@gmail.com>,
	 Jaehoon Chung <jh80.chung@samsung.com>,
	Tom Rini <trini@konsulko.com>,
	 Marek Vasut <marek.vasut+usb@mailbox.org>,
	Simon Glass <sjg@chromium.org>,
	 Kory Maincent <kory.maincent@bootlin.com>,
	 Andrew Goodbody <andrew.goodbody@linaro.org>,
	 Heiko Schocher <hs@nabladev.com>,
	 Casey Connolly <casey.connolly@linaro.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	 Loic Poulain <loic.poulain@oss.qualcomm.com>,
	 Patrice Chotard <patrice.chotard@foss.st.com>,
	 Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,
	 Marek Vasut <marek.vasut+renesas@mailbox.org>,
	 Frieder Schrempf <frieder.schrempf@kontron.de>,
	 Miquel Raynal <miquel.raynal@bootlin.com>,
	 Paul Geurts <paul.geurts@prodrive-technologies.com>,
	 Primoz Fiser <primoz.fiser@norik.com>, Yao Zi <me@ziyao.cc>,
	 Luca Weiss <luca.weiss@fairphone.com>,
	 Aswin Murugan <aswin.murugan@oss.qualcomm.com>,
	 Peter Robinson <pbrobinson@gmail.com>,
	Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 01/11] mmc: fsl_esdhc_imx: convert ofnode API to dev_read API
Date: Thu, 04 Jun 2026 20:20:24 +0800	[thread overview]
Message-ID: <20260604-devapi-v1-1-961aded05ff4@nxp.com> (raw)
In-Reply-To: <20260604-devapi-v1-0-961aded05ff4@nxp.com>

From: Peng Fan <peng.fan@nxp.com>

Replace ofnode_read_*() calls with their dev_read_*() equivalents in
fsl_esdhc_of_to_plat(). Remove the intermediate 'ofnode node' local
variable and the now-unnecessary <dm/ofnode.h> include.

No functional change.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/mmc/fsl_esdhc_imx.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index 87125493c0d..e718a17f94c 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -36,7 +36,6 @@
 #include <dm/pinctrl.h>
 #include <dt-structs.h>
 #include <mapmem.h>
-#include <dm/ofnode.h>
 #include <linux/iopoll.h>
 #include <linux/dma-mapping.h>
 
@@ -1393,7 +1392,6 @@ static int fsl_esdhc_of_to_plat(struct udevice *dev)
 	struct udevice *vqmmc_dev;
 	int ret;
 
-	ofnode node = dev_ofnode(dev);
 	fdt_addr_t addr;
 	unsigned int val;
 
@@ -1407,15 +1405,15 @@ static int fsl_esdhc_of_to_plat(struct udevice *dev)
 	priv->dev = dev;
 	priv->mode = -1;
 
-	val = ofnode_read_u32_default(node, "fsl,tuning-step", 1);
+	val = dev_read_u32_default(dev, "fsl,tuning-step", 1);
 	priv->tuning_step = val;
-	val = ofnode_read_u32_default(node, "fsl,tuning-start-tap",
-				      ESDHC_TUNING_START_TAP_DEFAULT);
+	val = dev_read_u32_default(dev, "fsl,tuning-start-tap",
+				   ESDHC_TUNING_START_TAP_DEFAULT);
 	priv->tuning_start_tap = val;
-	val = ofnode_read_u32_default(node, "fsl,strobe-dll-delay-target",
-				      ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_DEFAULT);
+	val = dev_read_u32_default(dev, "fsl,strobe-dll-delay-target",
+				   ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_DEFAULT);
 	priv->strobe_dll_delay_target = val;
-	val = ofnode_read_u32_default(node, "fsl,signal-voltage-switch-extra-delay-ms", 0);
+	val = dev_read_u32_default(dev, "fsl,signal-voltage-switch-extra-delay-ms", 0);
 	priv->signal_voltage_switch_extra_delay_ms = val;
 
 	if (dev_read_bool(dev, "broken-cd"))

-- 
2.51.0


  reply	other threads:[~2026-06-04 11:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-04 12:20 [PATCH 00/11] mmc: power: convert ofnode API to dev_read API Peng Fan (OSS)
2026-06-04 12:20 ` Peng Fan (OSS) [this message]
2026-06-04 12:20 ` [PATCH 02/11] mmc: msm_sdhci: " Peng Fan (OSS)
2026-06-04 15:02   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 03/11] mmc: octeontx_hsmmc: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 04/11] power: domain: meson-ee-pwrc: use dev_read_phandle_with_args for ao-sysctrl Peng Fan (OSS)
2026-06-05 13:08   ` Neil Armstrong
2026-06-04 12:20 ` [PATCH 05/11] power: domain: meson-gx-pwrc-vpu: use dev_read_phandle_with_args for hhi-sysctrl Peng Fan (OSS)
2026-06-05  8:06   ` Neil Armstrong
2026-06-04 12:20 ` [PATCH 06/11] power: domain: imx8m: convert ofnode API to dev_read API Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 07/11] power: pmic: pca9450: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 08/11] power: pmic: qcom: " Peng Fan (OSS)
2026-06-04 14:53   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 09/11] power: regulator: anatop: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 10/11] power: regulator: qcom-rpmh: " Peng Fan (OSS)
2026-06-04 14:55   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 11/11] power: regulator: scmi: " Peng Fan (OSS)

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=20260604-devapi-v1-1-961aded05ff4@nxp.com \
    --to=peng.fan@oss.nxp.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=aswin.murugan@oss.qualcomm.com \
    --cc=casey.connolly@linaro.org \
    --cc=festevam@gmail.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=hs@nabladev.com \
    --cc=jh80.chung@samsung.com \
    --cc=kory.maincent@bootlin.com \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=luca.weiss@fairphone.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marek.vasut+usb@mailbox.org \
    --cc=me@ziyao.cc \
    --cc=miquel.raynal@bootlin.com \
    --cc=neil.armstrong@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=paul.geurts@prodrive-technologies.com \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=primoz.fiser@norik.com \
    --cc=sbabic@nabladev.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=trini@konsulko.com \
    --cc=u-boot-amlogic@groups.io \
    --cc=u-boot-qcom@groups.io \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=varadarajan.narayanan@oss.qualcomm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.