]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: at91rm9200: add sama5d4 and sama5d2 compatibles
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 29 Dec 2019 20:44:15 +0000 (21:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 15 Jan 2020 11:13:54 +0000 (12:13 +0100)
Both the sama5d4 and sama5d2 RTCs have more features than the previous
RTCs, add a compatible string for them.

Link: https://lore.kernel.org/r/20191229204421.337612-3-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
drivers/rtc/rtc-at91rm9200.c

index c55e580a86f626d34f764cdd7a9da09b0584cd96..39f13711adfcbf6f6c5fc822289214a059bf4d42 100644 (file)
@@ -17,6 +17,8 @@ properties:
     enum:
       - atmel,at91rm9200-rtc
       - atmel,at91sam9x5-rtc
+      - atmel,sama5d4-rtc
+      - atmel,sama5d2-rtc
       - microchip,sam9x60-rtc
 
   reg:
index 89d91ecd8ccf9b5a59346539a7bd42c0ed18f929..bda8e009076f31485890cd91934101e4602f800f 100644 (file)
@@ -312,6 +312,12 @@ static const struct of_device_id at91_rtc_dt_ids[] = {
        }, {
                .compatible = "atmel,at91sam9x5-rtc",
                .data = &at91sam9x5_config,
+       }, {
+               .compatible = "atmel,sama5d4-rtc",
+               .data = &at91rm9200_config,
+       }, {
+               .compatible = "atmel,sama5d2-rtc",
+               .data = &at91rm9200_config,
        }, {
                /* sentinel */
        }