devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add a driver for Epson RX8111 RTC
@ 2023-08-22 10:25 Waqar Hameed
  2023-08-22 10:25 ` [PATCH v2 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
  0 siblings, 1 reply; 3+ messages in thread
From: Waqar Hameed @ 2023-08-22 10:25 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski
  Cc: kernel, linux-kernel, Alexandre Belloni, linux-rtc, devicetree

In this patch series we add a basic driver for Epson RX8111 RTC with support for
only reading/writing the time and the `ioctl`s `RTC_VL_READ` and `RTC_VL_CLR`.

Datasheet: https://support.epson.biz/td/api/doc_check.php?dl=app_RX8111CE&lang=en

Changes in v2:
* Move dt-bindings to `trivial-rtc.yaml`.

Link to v1: https://lore.kernel.org/lkml/cover.1691158774.git.waqar.hameed@axis.com/

I decided to send v2 now since it has been a while, and I didn't get any
comments for `rtc-rx8111.c` in v1.

Waqar Hameed (2):
  dt-bindings: rtc: Add Epson RX8111
  rtc: Add driver for Epson RX8111

 .../devicetree/bindings/rtc/trivial-rtc.yaml  |   1 +
 drivers/rtc/Kconfig                           |  10 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-rx8111.c                      | 411 ++++++++++++++++++
 4 files changed, 423 insertions(+)
 create mode 100644 drivers/rtc/rtc-rx8111.c


base-commit: ec351c8f2e6211054e51e661589cddd1fe856425
-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] dt-bindings: rtc: Add Epson RX8111
  2023-08-22 10:25 [PATCH v2 0/2] Add a driver for Epson RX8111 RTC Waqar Hameed
@ 2023-08-22 10:25 ` Waqar Hameed
  2023-08-22 11:48   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Waqar Hameed @ 2023-08-22 10:25 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: kernel, Alexandre Belloni, linux-rtc, devicetree, linux-kernel

Epson RX8111 is an RTC with timestamp functionality. Add devicetree
bindings requiring the compatible string and I2C slave address (reg)
through `trivial-rtc.yaml`.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
---
 Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
index 9af77f21bb7f..b0c07f734f14 100644
--- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
@@ -38,6 +38,7 @@ properties:
       - epson,rx8025
       - epson,rx8035
       # I2C-BUS INTERFACE REAL TIME CLOCK MODULE with Battery Backed RAM
+      - epson,rx8111
       - epson,rx8571
       # I2C-BUS INTERFACE REAL TIME CLOCK MODULE
       - epson,rx8581
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: rtc: Add Epson RX8111
  2023-08-22 10:25 ` [PATCH v2 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
@ 2023-08-22 11:48   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-22 11:48 UTC (permalink / raw)
  To: Waqar Hameed, Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: kernel, linux-rtc, devicetree, linux-kernel

On 22/08/2023 12:25, Waqar Hameed wrote:
> Epson RX8111 is an RTC with timestamp functionality. Add devicetree
> bindings requiring the compatible string and I2C slave address (reg)
> through `trivial-rtc.yaml`.
> 
> Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-22 11:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 10:25 [PATCH v2 0/2] Add a driver for Epson RX8111 RTC Waqar Hameed
2023-08-22 10:25 ` [PATCH v2 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
2023-08-22 11:48   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).