Skip to contentSkip to conversation

dt/bindings: rtc: rx8900: Add an entry for RX8804

PATCH Superseded Fabio Estevam 2 participants 4 messages Nov 10, 2021 – Nov 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt/bindings: rtc: rx8900: Add an entry for RX8804

The Epson RX8804 RTC has the same programming model as RV8803 and RX8900.

Add an entry for it in the binding document.

---
 Documentation/devicetree/bindings/rtc/epson,rx8900.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/rtc/epson,rx8900.yaml +1 -0
index 29fe39bb08ad..d12855e7ffd7 100644
@@ -15,6 +15,7 @@ allOf:
 properties:
   compatible:
     enum:
+      - epson,rx8804
       - epson,rx8900
       - microcrystal,rv8803
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 rtc: rv8803: Add support for the Epson RX8804 RTC

The Epson RX8804 RTC has the same programming model as RV8803.

Add support for it in the driver.

---
 drivers/rtc/rtc-rv8803.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/rtc/rtc-rv8803.c +6 -0
index 0d5ed38bf60c..f69e0b1137cd 100644
@@ -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
Signature · 1 line
2.25.1