Message ID | 20211110132946.514825-2-festevam@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] dt/bindings: rtc: rx8900: Add an entry for RX8804 | expand |
Em qua., 10 de nov. de 2021 às 10:29, Fabio Estevam <festevam@gmail.com> escreveu: > > 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>
diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 0d5ed38bf60c..f69e0b1137cd 100644 --- a/drivers/rtc/rtc-rv8803.c +++ b/drivers/rtc/rtc-rv8803.c @@ -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
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> --- drivers/rtc/rtc-rv8803.c | 6 ++++++ 1 file changed, 6 insertions(+)