diff mbox series

rtc: at91rm9200: Add sam9x60 compatible

Message ID 20201117133920.1229679-1-alexandre.belloni@bootlin.com (mailing list archive)
State New, archived
Headers show
Series rtc: at91rm9200: Add sam9x60 compatible | expand

Commit Message

Alexandre Belloni Nov. 17, 2020, 1:39 p.m. UTC
Handle the sam9x60 RTC. While it can work with the at91sam9x5 fallback, it
has crystal correction support and doesn't need to shadow IMR.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-at91rm9200.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Nicolas Ferre Nov. 17, 2020, 3:48 p.m. UTC | #1
On 17/11/2020 at 14:39, Alexandre Belloni wrote:
> Handle the sam9x60 RTC. While it can work with the at91sam9x5 fallback, it
> has crystal correction support and doesn't need to shadow IMR.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

> ---
>   drivers/rtc/rtc-at91rm9200.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c
> index 1eea187d9850..da24e68adcca 100644
> --- a/drivers/rtc/rtc-at91rm9200.c
> +++ b/drivers/rtc/rtc-at91rm9200.c
> @@ -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
>
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c
index 1eea187d9850..da24e68adcca 100644
--- a/drivers/rtc/rtc-at91rm9200.c
+++ b/drivers/rtc/rtc-at91rm9200.c
@@ -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 */
 	}