Devicetree
 help / color / mirror / Atom feed
* [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement
@ 2026-09-17 18:59 Wolfram Sang
  2026-09-17 18:59 ` [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example Wolfram Sang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Wolfram Sang @ 2026-09-17 18:59 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Lad Prabhakar, Wolfram Sang, Alexandre Belloni, Conor Dooley,
	devicetree, Geert Uytterhoeven, Krzysztof Kozlowski, linux-rtc,
	Magnus Damm, Miquel Raynal, Rob Herring

This series adds RTC support for the Renesas R-Car X5H SoC.

Changes since v3:
* clear RTC_FEATURE_UPDATE_INTERRUPT when no irqs
* added tags

Thanks for all the reviews of v3!

These patches have been tested on the original RZ/N1D board and the new
X5H Ironhide board. 'rtctest' passed on both SoCs. On X5H, some tests
are skipped, of course, because no alarms are supported.

'dt_binding_check' and 'dtbs_check' did not find any issues, for both,
RZ/N1D and R-Car X5H. I also verified for both that it rightfully
complains when irqs are different from what is expected.

A branch can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/x5h/rtc-experimental

Looking forward to comments.


Wolfram Sang (4):
  dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example
  dt-bindings: rtc: rzn1: add SoC names next to their IDs
  dt-bindings: rtc: rzn1: add R-Car X5H support
  rtc: rzn1: add R-Car X5H support

 .../bindings/rtc/renesas,rzn1-rtc.yaml        | 30 ++++++++---
 drivers/rtc/rtc-rzn1.c                        | 52 +++++++++++++------
 2 files changed, 57 insertions(+), 25 deletions(-)

-- 
2.53.0


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

* [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example
  2026-09-17 18:59 [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Wolfram Sang
@ 2026-09-17 18:59 ` Wolfram Sang
  2026-09-17 19:01   ` sashiko-bot
  2026-09-17 18:59 ` [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs Wolfram Sang
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Wolfram Sang @ 2026-09-17 18:59 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Lad Prabhakar, Wolfram Sang, Lad Prabhakar, Conor Dooley,
	Geert Uytterhoeven, Miquel Raynal, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Magnus Damm, linux-rtc,
	devicetree

We don't use 'start-year' in upstream DTs because the driver does the
right thing by default, ranging from 2000 to 2099. So, drop it from the
example, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---

Changes since v3: none

 Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
index ea7b039a91e7..e96007981c34 100644
--- a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
@@ -91,5 +91,4 @@ examples:
         clocks = <&sysctrl R9A06G032_HCLK_RTC>;
         clock-names = "hclk";
         power-domains = <&sysctrl>;
-        start-year = <2000>;
     };
-- 
2.53.0


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

* [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs
  2026-09-17 18:59 [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Wolfram Sang
  2026-09-17 18:59 ` [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example Wolfram Sang
@ 2026-09-17 18:59 ` Wolfram Sang
  2026-09-17 19:00   ` sashiko-bot
  2026-09-17 18:59 ` [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support Wolfram Sang
  2026-09-30 14:35 ` [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Alexandre Belloni
  3 siblings, 1 reply; 9+ messages in thread
From: Wolfram Sang @ 2026-09-17 18:59 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Lad Prabhakar, Wolfram Sang, Lad Prabhakar, Conor Dooley,
	Geert Uytterhoeven, Miquel Raynal, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Magnus Damm, linux-rtc,
	devicetree

This helps maintaining because the numbers are easy to confuse.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---

Changes since v3: none

 .../devicetree/bindings/rtc/renesas,rzn1-rtc.yaml      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
index e96007981c34..7ea77cd0bee1 100644
--- a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
@@ -14,14 +14,14 @@ properties:
     oneOf:
       - items:
           - enum:
-              - renesas,r9a06g032-rtc
-          - const: renesas,rzn1-rtc
+              - renesas,r9a06g032-rtc # RZ/N1D
+          - const: renesas,rzn1-rtc   # RZ/N1
 
-      - const: renesas,r9a09g077-rtc
+      - const: renesas,r9a09g077-rtc  # RZ/T2H
 
       - items:
-          - const: renesas,r9a09g087-rtc
-          - const: renesas,r9a09g077-rtc
+          - const: renesas,r9a09g087-rtc  # RZ/N2H
+          - const: renesas,r9a09g077-rtc  # RZ/T2H
 
   reg:
     maxItems: 1
-- 
2.53.0


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

* [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support
  2026-09-17 18:59 [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Wolfram Sang
  2026-09-17 18:59 ` [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example Wolfram Sang
  2026-09-17 18:59 ` [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs Wolfram Sang
@ 2026-09-17 18:59 ` Wolfram Sang
  2026-09-17 19:02   ` sashiko-bot
  2026-09-21  8:56   ` Lad, Prabhakar
  2026-09-30 14:35 ` [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Alexandre Belloni
  3 siblings, 2 replies; 9+ messages in thread
From: Wolfram Sang @ 2026-09-17 18:59 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Lad Prabhakar, Wolfram Sang, Geert Uytterhoeven, Miquel Raynal,
	Alexandre Belloni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Magnus Damm, linux-rtc, devicetree

The RTC on R-Car X5H is a bit special because interrupts are not wired.
Future R-Car Gen5 SoCs will have them wired again. So, create a
dedicated entry for X5H without interrupts.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---

Changes since v3: tag added

 .../bindings/rtc/renesas,rzn1-rtc.yaml        | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
index 7ea77cd0bee1..b448725671ec 100644
--- a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
@@ -23,6 +23,8 @@ properties:
           - const: renesas,r9a09g087-rtc  # RZ/N2H
           - const: renesas,r9a09g077-rtc  # RZ/T2H
 
+      - const: renesas,r8a78000-rtc   # R-Car X5H
+
   reg:
     maxItems: 1
 
@@ -52,8 +54,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts
-  - interrupt-names
   - clocks
   - clock-names
   - power-domains
@@ -66,6 +66,7 @@ allOf:
         compatible:
           contains:
             enum:
+              - renesas,r8a78000-rtc
               - renesas,r9a09g077-rtc
               - renesas,r9a09g087-rtc
     then:
@@ -75,6 +76,20 @@ allOf:
         clock-names:
           minItems: 2
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: renesas,r8a78000-rtc
+    then:
+      properties:
+        interrupts: false
+        interrupt-names: false
+    else:
+      required:
+        - interrupts
+        - interrupt-names
+
 unevaluatedProperties: false
 
 examples:
-- 
2.53.0


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

* Re: [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs
  2026-09-17 18:59 ` [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs Wolfram Sang
@ 2026-09-17 19:00   ` sashiko-bot
  0 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-09-17 19:00 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-rtc, Alexandre Belloni, robh, wsa+renesas, conor+dt,
	devicetree

> This helps maintaining because the numbers are easy to confuse.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260917185903.61253-6-wsa+renesas@sang-engineering.com?part=2


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

* Re: [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example
  2026-09-17 18:59 ` [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example Wolfram Sang
@ 2026-09-17 19:01   ` sashiko-bot
  0 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-09-17 19:01 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-rtc, Alexandre Belloni, devicetree, robh, wsa+renesas,
	conor+dt

> We don't use 'start-year' in upstream DTs because the driver does the
> right thing by default, ranging from 2000 to 2099. So, drop it from the
> example, too.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260917185903.61253-6-wsa+renesas@sang-engineering.com?part=1


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

* Re: [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support
  2026-09-17 18:59 ` [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support Wolfram Sang
@ 2026-09-17 19:02   ` sashiko-bot
  2026-09-21  8:56   ` Lad, Prabhakar
  1 sibling, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-09-17 19:02 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-rtc, Alexandre Belloni, devicetree, conor+dt, wsa+renesas,
	robh

> The RTC on R-Car X5H is a bit special because interrupts are not wired.
> Future R-Car Gen5 SoCs will have them wired again. So, create a
> dedicated entry for X5H without interrupts.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260917185903.61253-6-wsa+renesas@sang-engineering.com?part=3


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

* Re: [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support
  2026-09-17 18:59 ` [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support Wolfram Sang
  2026-09-17 19:02   ` sashiko-bot
@ 2026-09-21  8:56   ` Lad, Prabhakar
  1 sibling, 0 replies; 9+ messages in thread
From: Lad, Prabhakar @ 2026-09-21  8:56 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Geert Uytterhoeven, Miquel Raynal,
	Alexandre Belloni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Magnus Damm, linux-rtc, devicetree

On Thu, Sep 17, 2026 at 7:59 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
> The RTC on R-Car X5H is a bit special because interrupts are not wired.
> Future R-Car Gen5 SoCs will have them wired again. So, create a
> dedicated entry for X5H without interrupts.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>
> Changes since v3: tag added
>
>  .../bindings/rtc/renesas,rzn1-rtc.yaml        | 19 +++++++++++++++++--
>  1 file changed, 17 insertions(+), 2 deletions(-)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Cheers,
Prabhakar

> diff --git a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> index 7ea77cd0bee1..b448725671ec 100644
> --- a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> @@ -23,6 +23,8 @@ properties:
>            - const: renesas,r9a09g087-rtc  # RZ/N2H
>            - const: renesas,r9a09g077-rtc  # RZ/T2H
>
> +      - const: renesas,r8a78000-rtc   # R-Car X5H
> +
>    reg:
>      maxItems: 1
>
> @@ -52,8 +54,6 @@ properties:
>  required:
>    - compatible
>    - reg
> -  - interrupts
> -  - interrupt-names
>    - clocks
>    - clock-names
>    - power-domains
> @@ -66,6 +66,7 @@ allOf:
>          compatible:
>            contains:
>              enum:
> +              - renesas,r8a78000-rtc
>                - renesas,r9a09g077-rtc
>                - renesas,r9a09g087-rtc
>      then:
> @@ -75,6 +76,20 @@ allOf:
>          clock-names:
>            minItems: 2
>
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: renesas,r8a78000-rtc
> +    then:
> +      properties:
> +        interrupts: false
> +        interrupt-names: false
> +    else:
> +      required:
> +        - interrupts
> +        - interrupt-names
> +
>  unevaluatedProperties: false
>
>  examples:
> --
> 2.53.0
>

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

* Re: [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement
  2026-09-17 18:59 [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Wolfram Sang
                   ` (2 preceding siblings ...)
  2026-09-17 18:59 ` [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support Wolfram Sang
@ 2026-09-30 14:35 ` Alexandre Belloni
  3 siblings, 0 replies; 9+ messages in thread
From: Alexandre Belloni @ 2026-09-30 14:35 UTC (permalink / raw)
  To: linux-renesas-soc, Wolfram Sang
  Cc: Lad Prabhakar, Conor Dooley, devicetree, Geert Uytterhoeven,
	Krzysztof Kozlowski, linux-rtc, Magnus Damm, Miquel Raynal,
	Rob Herring

On Thu, 17 Sep 2026 20:59:03 +0200, Wolfram Sang wrote:
> This series adds RTC support for the Renesas R-Car X5H SoC.
> 
> Changes since v3:
> * clear RTC_FEATURE_UPDATE_INTERRUPT when no irqs
> * added tags
> 
> Thanks for all the reviews of v3!
> 
> [...]

Applied, thanks!

[1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example
      https://git.kernel.org/abelloni/c/a867106d8a89
[2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs
      https://git.kernel.org/abelloni/c/73defdbfce62
[3/4] dt-bindings: rtc: rzn1: add R-Car X5H support
      https://git.kernel.org/abelloni/c/3b3fdc9fd40d
[4/4] rtc: rzn1: add R-Car X5H support
      https://git.kernel.org/abelloni/c/cba3b5f4cc00

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2026-09-30 14:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 18:59 [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Wolfram Sang
2026-09-17 18:59 ` [PATCH v4 1/4] dt-bindings: rtc: rzn1: drop unneeded 'start-year' from example Wolfram Sang
2026-09-17 19:01   ` sashiko-bot
2026-09-17 18:59 ` [PATCH v4 2/4] dt-bindings: rtc: rzn1: add SoC names next to their IDs Wolfram Sang
2026-09-17 19:00   ` sashiko-bot
2026-09-17 18:59 ` [PATCH v4 3/4] dt-bindings: rtc: rzn1: add R-Car X5H support Wolfram Sang
2026-09-17 19:02   ` sashiko-bot
2026-09-21  8:56   ` Lad, Prabhakar
2026-09-30 14:35 ` [PATCH v4 0/4] rtc: rzn1: cleanups, R-Car X5H enablement Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox