devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111
  2023-08-04 14:19 [PATCH 0/2] Add a driver for Epson RX8111 RTC Waqar Hameed
@ 2023-08-04 14:19 ` Waqar Hameed
  2023-08-05 20:28   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Waqar Hameed @ 2023-08-04 14:19 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: kernel, 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).

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
---
 .../devicetree/bindings/rtc/epson,rx8111.yaml | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/epson,rx8111.yaml

diff --git a/Documentation/devicetree/bindings/rtc/epson,rx8111.yaml b/Documentation/devicetree/bindings/rtc/epson,rx8111.yaml
new file mode 100644
index 000000000000..e6f077a32582
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/epson,rx8111.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/epson,rx8111.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Epson RX8111 Real-Time Clock
+
+maintainers:
+  - Waqar Hameed <waqar.hameed@axis.com>
+
+description: |
+  RTC with timestamp functionality.
+
+  https://support.epson.biz/td/api/doc_check.php?dl=app_RX8111CE&lang=en
+
+properties:
+  compatible:
+    const: epson,rx8111
+
+  reg:
+    const: 0x32
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtc@32 {
+            compatible = "epson,rx8111";
+            reg = <0x32>;
+        };
+    };
+...
-- 
2.30.2


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

* [PATCH 0/2] Add a driver for Epson RX8111 RTC
@ 2023-08-04 14:19 Waqar Hameed
  2023-08-04 14:19 ` [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
  0 siblings, 1 reply; 4+ messages in thread
From: Waqar Hameed @ 2023-08-04 14:19 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski
  Cc: kernel, linux-kernel, 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

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

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


base-commit: ec351c8f2e6211054e51e661589cddd1fe856425
-- 
2.30.2


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

* Re: [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111
  2023-08-04 14:19 ` [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
@ 2023-08-05 20:28   ` Krzysztof Kozlowski
  2023-08-07 21:02     ` Waqar Hameed
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-05 20:28 UTC (permalink / raw)
  To: Waqar Hameed, Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: kernel, linux-rtc, devicetree, linux-kernel

On 04/08/2023 16:19, Waqar Hameed wrote:
> Epson RX8111 is an RTC with timestamp functionality. Add devicetree
> bindings requiring the compatible string and I2C slave address (reg).


> +
> +maintainers:
> +  - Waqar Hameed <waqar.hameed@axis.com>
> +
> +description: |
> +  RTC with timestamp functionality.
> +
> +  https://support.epson.biz/td/api/doc_check.php?dl=app_RX8111CE&lang=en
> +
> +properties:
> +  compatible:
> +    const: epson,rx8111
> +
> +  reg:
> +    const: 0x32
> +
> +required:
> +  - compatible
> +  - reg

Just add it to trivial-rtc.yaml. You miss here more things than trivial
is providing, so...

Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111
  2023-08-05 20:28   ` Krzysztof Kozlowski
@ 2023-08-07 21:02     ` Waqar Hameed
  0 siblings, 0 replies; 4+ messages in thread
From: Waqar Hameed @ 2023-08-07 21:02 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, kernel, linux-rtc, devicetree,
	linux-kernel

On Sat, Aug 05, 2023 at 22:28 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:

> On 04/08/2023 16:19, Waqar Hameed wrote:
>> Epson RX8111 is an RTC with timestamp functionality. Add devicetree
>> bindings requiring the compatible string and I2C slave address (reg).
>
>
>> +
>> +maintainers:
>> +  - Waqar Hameed <waqar.hameed@axis.com>
>> +
>> +description: |
>> +  RTC with timestamp functionality.
>> +
>> +  https://support.epson.biz/td/api/doc_check.php?dl=app_RX8111CE&lang=en
>> +
>> +properties:
>> +  compatible:
>> +    const: epson,rx8111
>> +
>> +  reg:
>> +    const: 0x32
>> +
>> +required:
>> +  - compatible
>> +  - reg
>
> Just add it to trivial-rtc.yaml. You miss here more things than trivial
> is providing, so...

Oh, I wasn't even aware of that file. I'll add it there instead!

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

end of thread, other threads:[~2023-08-07 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-04 14:19 [PATCH 0/2] Add a driver for Epson RX8111 RTC Waqar Hameed
2023-08-04 14:19 ` [PATCH 1/2] dt-bindings: rtc: Add Epson RX8111 Waqar Hameed
2023-08-05 20:28   ` Krzysztof Kozlowski
2023-08-07 21:02     ` Waqar Hameed

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).