Skip to content

Commit

Permalink
rtc: rv8803: Add support for the Epson RX8804 RTC
Browse files Browse the repository at this point in the history
The Epson RX8804 RTC has the same programming model as RV8803.

Add support for it in the driver.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211130125830.1166194-2-festevam@gmail.com
  • Loading branch information
Fabio Estevam authored and Alexandre Belloni committed Dec 2, 2021
1 parent 10d96b4 commit 5c0189a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/rtc/rtc-rv8803.c
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@

enum rv8803_type {
rv_8803,
rx_8804,
rx_8900
};

@@ -601,6 +602,7 @@ static int rv8803_probe(struct i2c_client *client,

static const struct i2c_device_id rv8803_id[] = {
{ "rv8803", rv_8803 },
{ "rv8804", rx_8804 },
{ "rx8803", rv_8803 },
{ "rx8900", rx_8900 },
{ }
@@ -616,6 +618,10 @@ static const __maybe_unused struct of_device_id rv8803_of_match[] = {
.compatible = "epson,rx8803",
.data = (void *)rv_8803
},
{
.compatible = "epson,rx8804",
.data = (void *)rx_8804
},
{
.compatible = "epson,rx8900",
.data = (void *)rx_8900

0 comments on commit 5c0189a

Please sign in to comment.