summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-05-05 12:24:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-06 09:25:21 +0200
commitd62cc84646ab2f001ed3d3c36f8ba9d401e6aee8 (patch)
tree32069b48534e01934b411df4d758ff0d1025287b /drivers/watchdog
parent10d7c977c8edd782220be34257dffdd3a22890c1 (diff)
downloadbarebox-d62cc84646ab2f001ed3d3c36f8ba9d401e6aee8.tar.gz
barebox-d62cc84646ab2f001ed3d3c36f8ba9d401e6aee8.tar.xz
watchdog: i.MX28: Add device tree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/im28wd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/watchdog/im28wd.c b/drivers/watchdog/im28wd.c
index 2b233ede20..6ebd97e5f5 100644
--- a/drivers/watchdog/im28wd.c
+++ b/drivers/watchdog/im28wd.c
@@ -229,9 +229,18 @@ static void imx28_wd_remove(struct device_d *dev)
free(priv);
}
+static __maybe_unused struct of_device_id imx28_wdt_dt_ids[] = {
+ {
+ .compatible = "fsl,stmp3xxx-rtc",
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d imx28_wd_driver = {
.name = "im28wd",
.probe = imx28_wd_probe,
.remove = imx28_wd_remove,
+ .of_compatible = DRV_OF_COMPAT(imx28_wdt_dt_ids),
};
device_platform_driver(imx28_wd_driver);