Skip to contentSkip to conversation

rtc: at91rm9200: Add sam9x60 compatible

PATCH In review Alexandre Belloni 2 participants 2 messages Nov 17, 2020

Subsystems (2)
lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: at91rm9200: Add sam9x60 compatible

Handle the sam9x60 RTC. While it can work with the at91sam9x5 fallback, it has crystal correction support and doesn't need to shadow IMR.

---
 drivers/rtc/rtc-at91rm9200.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/rtc/rtc-at91rm9200.c +3 -0
index 1eea187d9850..da24e68adcca 100644
@@ -437,6 +437,9 @@ static const struct of_device_id at91_rtc_dt_ids[] = {
 	}, {
 		.compatible = "atmel,sama5d2-rtc",
 		.data = &sama5d4_config,
+	}, {
+		.compatible = "microchip,sam9x60-rtc",
+		.data = &sama5d4_config,
 	}, {
 		/* sentinel */
 	}
Signature · 1 line
2.28.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Alexandre Belloni

Handle the sam9x60 RTC. While it can work with the at91sam9x5 fallback, it has crystal correction support and doesn't need to shadow IMR.

Quoted 21 lines
---
  drivers/rtc/rtc-at91rm9200.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/rtc/rtc-at91rm9200.c +3 -1
index 1eea187d9850..da24e68adcca 100644
@@ -437,6 +437,9 @@ static const struct of_device_id at91_rtc_dt_ids[] = {
         }, {
                 .compatible = "atmel,sama5d2-rtc",
                 .data = &sama5d4_config,
+       }, {
+               .compatible = "microchip,sam9x60-rtc",
+               .data = &sama5d4_config,
         }, {
                 /* sentinel */
         }
--

2.28.0

Signature · 1 line
Nicolas Ferre