Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 948170f8 authored by Benoit Cousson's avatar Benoit Cousson Committed by Linus Torvalds
Browse files

drivers/rtc/rtc-twl.c: add DT support for RTC inside twl4030/twl6030



Add the DT support for the TI rtc-twl present in the twl4030 and twl6030
devices.

Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6c3fb557
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
* TI twl RTC

The TWL family (twl4030/6030) contains a RTC.

Required properties:
- compatible : Should be twl4030-rtc

Examples:

rtc@0 {
    compatible = "ti,twl4030-rtc";
};
+8 −2
Original line number Diff line number Diff line
@@ -550,6 +550,11 @@ static int twl_rtc_resume(struct platform_device *pdev)
#define twl_rtc_resume  NULL
#endif

static const struct of_device_id twl_rtc_of_match[] = {
	{.compatible = "ti,twl4030-rtc", },
	{ },
};
MODULE_DEVICE_TABLE(of, twl_rtc_of_match);
MODULE_ALIAS("platform:twl_rtc");

static struct platform_driver twl4030rtc_driver = {
@@ -561,6 +566,7 @@ static struct platform_driver twl4030rtc_driver = {
	.driver		= {
		.owner		= THIS_MODULE,
		.name		= "twl_rtc",
		.of_match_table = twl_rtc_of_match,
	},
};