rtc: sun6i: Add R40 compatible
authorMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 28 May 2019 20:30:36 +0000 (22:30 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Jun 2019 10:00:54 +0000 (12:00 +0200)
The R40 has a quite different RTC, with only a single interrupt line, but
two clock outputs. Let's add a compatible.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sun6i.c

index 11f56de521791720409b10645b22e490a5a353e5..9fab8ed856f4dc4956de6cf454e108adedf03fec 100644 (file)
@@ -681,6 +681,7 @@ static const struct of_device_id sun6i_rtc_dt_ids[] = {
        { .compatible = "allwinner,sun6i-a31-rtc" },
        { .compatible = "allwinner,sun8i-a23-rtc" },
        { .compatible = "allwinner,sun8i-h3-rtc" },
+       { .compatible = "allwinner,sun8i-r40-rtc" },
        { .compatible = "allwinner,sun8i-v3-rtc" },
        { .compatible = "allwinner,sun50i-h5-rtc" },
        { /* sentinel */ },