From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 6/6] rn5t618: mfd/watchdog: switch to mfd device population
Date: Thu, 11 Jun 2026 13:21:15 +0200 [thread overview]
Message-ID: <20260611112115.670073-6-l.stach@pengutronix.de> (raw)
In-Reply-To: <20260611112115.670073-1-l.stach@pengutronix.de>
The upstream binding for the rn5t618 does not describe a
separate watchdog node. Switch to MFD device population to
probe the watchdog without DT matching.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
drivers/mfd/rn5t618.c | 8 +++++++-
drivers/watchdog/rn5t618_wdt.c | 5 -----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c
index d757802b5363..5fd9fe6e6ac2 100644
--- a/drivers/mfd/rn5t618.c
+++ b/drivers/mfd/rn5t618.c
@@ -13,11 +13,17 @@
#include <i2c/i2c.h>
#include <init.h>
#include <of.h>
+#include <linux/mfd/core.h>
#include <linux/regmap.h>
#include <reset_source.h>
#include <restart.h>
#include <mfd/rn5t618.h>
+static const struct mfd_cell rn5t618_cells[] = {
+ { .name = "rn5t618-regulator" },
+ { .name = "rn5t618-wdt" },
+};
+
struct rn5t618 {
struct restart_handler restart;
struct regmap *regmap;
@@ -129,7 +135,7 @@ static int __init rn5t618_i2c_probe(struct device *dev)
if (ret)
dev_warn(dev, "Failed to query reset reason\n");
- return of_platform_populate(dev->of_node, NULL, dev);
+ return mfd_add_devices(dev, rn5t618_cells, ARRAY_SIZE(rn5t618_cells));
}
static __maybe_unused const struct of_device_id rn5t618_of_match[] = {
diff --git a/drivers/watchdog/rn5t618_wdt.c b/drivers/watchdog/rn5t618_wdt.c
index 95089ac7c885..53da358d451e 100644
--- a/drivers/watchdog/rn5t618_wdt.c
+++ b/drivers/watchdog/rn5t618_wdt.c
@@ -126,15 +126,10 @@ static int rn5t618_wdt_probe(struct device *dev)
return watchdog_register(wdd);
}
-static __maybe_unused const struct of_device_id rn5t618_wdt_of_match[] = {
- { .compatible = "ricoh,rn5t568-wdt" },
- { /* sentinel */ }
-};
MODULE_DEVICE_TABLE(of, rn5t618_wdt_of_match);
static struct driver rn5t618_wdt_driver = {
.name = "rn5t618-wdt",
.probe = rn5t618_wdt_probe,
- .of_compatible = DRV_OF_COMPAT(rn5t618_wdt_of_match),
};
device_platform_driver(rn5t618_wdt_driver);
--
2.47.3
next prev parent reply other threads:[~2026-06-11 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 11:21 [PATCH 1/6] mfd: rn5t568: rename to rn5t618 Lucas Stach
2026-06-11 11:21 ` [PATCH 2/6] mfd: rn5t618: use defined compatibles Lucas Stach
2026-06-11 11:21 ` [PATCH 3/6] mfd: rn5t618: demote probe message to debug level Lucas Stach
2026-06-11 11:21 ` [PATCH 4/6] mfd: rn5t618: wait a bit after triggering restart Lucas Stach
2026-06-11 11:21 ` [PATCH 5/6] watchdog: RN568: rename to rn5t618 Lucas Stach
2026-06-11 11:21 ` Lucas Stach [this message]
2026-06-15 7:50 ` [PATCH 1/6] mfd: rn5t568: " Sascha Hauer
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=20260611112115.670073-6-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox