Skip to contentSkip to conversation

rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible

PATCH Superseded Heiko Thiery 2 participants 2 messages Sep 23, 2021 Real time clock (RTC)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible

The RX8803 and RX8900 register layouts are compatible with the one of the RV8803. So add these to the compatibles.

---
The RX8900 RTC is placed on the imx8mm-kontron-n801x-s board and was tested there.

 drivers/rtc/rv8803.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rv8803.c +2 -0
index acd50c6564..5bae39d6e0 100644
@@ -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" },
 	{ }
 };
 
Signature · 1 line
2.30.0
Reviewed-by on v1 1/1
#1 lore raw

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

Am 23. September 2021 10:10:27 MESZ schrieb Heiko Thiery <[email protected]>:

Quoted 16 lines

The RX8803 and RX8900 register layouts are compatible with the one of the RV8803. So add these to the compatibles.

---
The RX8900 RTC is placed on the imx8mm-kontron-n801x-s board and was tested there.

drivers/rtc/rv8803.c | 2 ++

1 file changed, 2 insertions(+)
drivers/rtc/rv8803.c +0 -0
index acd50c6564..5bae39d6e0 100644

drivers/rtc/rv8803.c static const struct rtc_ops rv8803_rtc_ops = { · line 161

Quoted 5 lines
drivers/rtc/rv8803.c +2 -0
@@ -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" },

You should mention that these compatible strings are already approved in Linux (and even for the rv8803 driver in Linux, too). So we don't use different compatibles in u-boot and Linux.

With that fixed: