Commit 8899b8d9 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Wim Van Sebroeck

watchdog: twl4030_wdt: add DT support

Add DT support for twl4030_wdt. This is needed to get twl4030_wdt to
probe when booting with DT.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 412b3729
Device tree bindings for twl4030-wdt driver (TWL4030 watchdog)
Required properties:
compatible = "ti,twl4030-wdt";
Example:
watchdog {
compatible = "ti,twl4030-wdt";
};
...@@ -19,6 +19,10 @@ rtc { ...@@ -19,6 +19,10 @@ rtc {
interrupts = <11>; interrupts = <11>;
}; };
watchdog {
compatible = "ti,twl4030-wdt";
};
vdac: regulator-vdac { vdac: regulator-vdac {
compatible = "ti,twl4030-vdac"; compatible = "ti,twl4030-vdac";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
......
...@@ -131,6 +131,12 @@ static int twl4030_wdt_resume(struct platform_device *pdev) ...@@ -131,6 +131,12 @@ static int twl4030_wdt_resume(struct platform_device *pdev)
#define twl4030_wdt_resume NULL #define twl4030_wdt_resume NULL
#endif #endif
static const struct of_device_id twl_wdt_of_match[] = {
{ .compatible = "ti,twl4030-wdt", },
{ },
};
MODULE_DEVICE_TABLE(of, twl_wdt_of_match);
static struct platform_driver twl4030_wdt_driver = { static struct platform_driver twl4030_wdt_driver = {
.probe = twl4030_wdt_probe, .probe = twl4030_wdt_probe,
.remove = twl4030_wdt_remove, .remove = twl4030_wdt_remove,
...@@ -139,6 +145,7 @@ static struct platform_driver twl4030_wdt_driver = { ...@@ -139,6 +145,7 @@ static struct platform_driver twl4030_wdt_driver = {
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "twl4030_wdt", .name = "twl4030_wdt",
.of_match_table = twl_wdt_of_match,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment