Skip to contentSkip to conversation

rtc: rv8803: fix the rv8803 id in the OF table

PATCH New Alexandre Belloni 1 participant 2 messages Aug 27, 2018 Real time clock (RTC)

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/2 rtc: rv8803: fix the rv8803 id in the OF table

The ID for RV8803 must be rv_8803

---
 drivers/rtc/rtc-rv8803.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-rv8803.c +1 -1
index 29fc3d210392..17ccef5d5db1 100644
@@ -623,7 +623,7 @@ MODULE_DEVICE_TABLE(i2c, rv8803_id);
 static const struct of_device_id rv8803_of_match[] = {
 	{
 		.compatible = "microcrystal,rv8803",
-		.data = (void *)rx_8900
+		.data = (void *)rv_8803
 	},
 	{
 		.compatible = "epson,rx8900",
Signature · 1 line
2.18.0
author maintainer
#1 lore raw

PATCH 2/2 rtc: rv8803: add Epson RX8803 support

The Epson rx8803 is mostly similar to the Microcrystal RV8803 but the size of the offset register is 4 bits vs 6 bits but it has a configurable temperature compensation.

---
 drivers/rtc/rtc-rv8803.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/rtc/rtc-rv8803.c +5 -0
index 17ccef5d5db1..450a0b831a2d 100644
@@ -615,6 +615,7 @@ static int rv8803_probe(struct i2c_client *client,
 
 static const struct i2c_device_id rv8803_id[] = {
 	{ "rv8803", rv_8803 },
+	{ "rx8803", rv_8803 },
 	{ "rx8900", rx_8900 },
 	{ }
 };
@@ -625,6 +626,10 @@ static const struct of_device_id rv8803_of_match[] = {
 		.compatible = "microcrystal,rv8803",
 		.data = (void *)rv_8803
 	},
+	{
+		.compatible = "epson,rx8803",
+		.data = (void *)rv_8803
+	},
 	{
 		.compatible = "epson,rx8900",
 		.data = (void *)rx_8900
Signature · 1 line
2.18.0