diff mbox series

[v2] rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible

Message ID 20210923091431.11245-1-heiko.thiery@gmail.com
State Accepted
Commit e1918ce299a10797df0f0f8e3df992fd6ed89aa6
Delegated to: Stefano Babic
Headers show
Series [v2] rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible | expand

Commit Message

Heiko Thiery Sept. 23, 2021, 9:14 a.m. UTC
The RX8803 and RX8900 register layouts are compatible with the one of
the RV8803. So add these to the compatibles.

The same compatible strings are used and approved in linux kernel.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Michael Walle <michael@walle.cc>
---
The RX8900 RTC is placed on the imx8mm-kontron-n801x-s board and was tested
there.

v2:
 - add comment about compatiblity with linux (thanks Michael)
 - add reviewed-by from Michael

 drivers/rtc/rv8803.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Babic Oct. 7, 2021, 2:12 p.m. UTC | #1
> The RX8803 and RX8900 register layouts are compatible with the one of
> the RV8803. So add these to the compatibles.
> The same compatible strings are used and approved in linux kernel.
> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
> Reviewed-by: Michael Walle <michael@walle.cc>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c
index acd50c6564..5bae39d6e0 100644
--- a/drivers/rtc/rv8803.c
+++ b/drivers/rtc/rv8803.c
@@ -157,6 +157,8 @@  static const struct rtc_ops rv8803_rtc_ops = {
 
 static const struct udevice_id rv8803_rtc_ids[] = {
 	{ .compatible = "microcrystal,rv8803", },
+	{ .compatible = "epson,rx8803" },
+	{ .compatible = "epson,rx8900" },
 	{ }
 };