mbox series

[v6.1.y-cip,v2,00/14] renesas: rzg3s: backport the RTC support

Message ID 20250124090008.1401077-1-claudiu.beznea.uj@bp.renesas.com (mailing list archive)
Headers show
Series renesas: rzg3s: backport the RTC support | expand

Message

Claudiu Jan. 24, 2025, 8:59 a.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

Hi,

Series backports the RTC support for the Renesas RZ/G3S SoC.
Along with a clock driver for the clock provided the VBATTB
is included as this is critical for the RTC to work, as it feeds
the RTC counter.

For the VBATTB clock driver the following patches were also
backported:
- clk: gate: Add devm_clk_hw_register_gate()
- clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()
- clk: fixed-factor: add fwname-based constructor functions

and adjusted accordingly, if needed.

For the same VBATTB clock driver the
devm_clk_hw_register_gate_parent_data() was backported from the upstream
commit d54c1fd4a51e ("Add clock driver for Sunplus SP7021 SoC") in
the patch "clk: Add devm_clk_hw_register_gate_parent_data()".

Thank you,
Claudiu Beznea

Changes in v2:
- adjusted the patch title and description for patch 1/1

Claudiu Beznea (13):
  clk: Add devm_clk_hw_register_gate_parent_data()
  clk: Add devm_clk_hw_register_gate_parent_hw()
  clk: renesas: r9a08g045: Add clock, reset and power domain support for
    the VBATTB IP
  dt-bindings: clock: renesas,r9a08g045-vbattb: Document VBATTB
  clk: renesas: vbattb: Add VBATTB clock driver
  dt-bindings: rtc: renesas,rzg3s-rtc: Document the Renesas RTCA-3 IP
  rtc: renesas-rtca3: Add driver for RTCA-3 available on Renesas RZ/G3S
    SoC
  rtc: renesas-rtca3: Fix compilation error on RISC-V
  arm64: dts: renesas: r9a08g045: Add VBATTB node
  arm64: dts: renesas: rzg3s-smarc-som: Enable VBATTB
  arm64: dts: renesas: r9a08g045: Add RTC node
  arm64: dts: renesas: rzg3s-smarc-som: Enable RTC
  arm64: defconfig: Enable VBATTB clock and Renesas RTCA-3

Théo Lebrun (1):
  clk: fixed-factor: add fwname-based constructor functions

 .../clock/renesas,r9a08g045-vbattb.yaml       |  84 ++
 .../bindings/rtc/renesas,rz-rtca3.yaml        |  84 ++
 MAINTAINERS                                   |   8 +
 arch/arm64/boot/dts/renesas/r9a08g045.dtsi    |  34 +
 .../boot/dts/renesas/rzg3s-smarc-som.dtsi     |  16 +
 arch/arm64/configs/defconfig                  |   2 +
 drivers/clk/clk-fixed-factor.c                |  59 +-
 drivers/clk/renesas/Kconfig                   |   5 +
 drivers/clk/renesas/Makefile                  |   1 +
 drivers/clk/renesas/clk-vbattb.c              | 205 ++++
 drivers/clk/renesas/r9a08g045-cpg.c           |   3 +
 drivers/rtc/Kconfig                           |  10 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-renesas-rtca3.c               | 902 ++++++++++++++++++
 .../clock/renesas,r9a08g045-vbattb.h          |  13 +
 include/linux/clk-provider.h                  |  43 +
 16 files changed, 1456 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/renesas,r9a08g045-vbattb.yaml
 create mode 100644 Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml
 create mode 100644 drivers/clk/renesas/clk-vbattb.c
 create mode 100644 drivers/rtc/rtc-renesas-rtca3.c
 create mode 100644 include/dt-bindings/clock/renesas,r9a08g045-vbattb.h

Comments

Pavel Machek Jan. 25, 2025, 8:14 p.m. UTC | #1
Hi!

> Series backports the RTC support for the Renesas RZ/G3S SoC.
> Along with a clock driver for the clock provided the VBATTB
> is included as this is critical for the RTC to work, as it feeds
> the RTC counter.
> 
> For the VBATTB clock driver the following patches were also
> backported:
> - clk: gate: Add devm_clk_hw_register_gate()
> - clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()
> - clk: fixed-factor: add fwname-based constructor functions
> 
> and adjusted accordingly, if needed.
> 
> For the same VBATTB clock driver the
> devm_clk_hw_register_gate_parent_data() was backported from the upstream
> commit d54c1fd4a51e ("Add clock driver for Sunplus SP7021 SoC") in
> the patch "clk: Add devm_clk_hw_register_gate_parent_data()".

Similar to 5.10 situation: I gave my comments for 8/ in 5.10
discussion, but those should not block merge.

Series looks good to me, I can apply it if it passes testing and if
there are no other comments.

Best regards,
                                                                Pavel
Nobuhiro Iwamatsu Jan. 27, 2025, 4:39 a.m. UTC | #2
Hi Claudiu,

Thanks for update this series.

> -----Original Message-----
> From: Claudiu <claudiu.beznea@tuxon.dev>
> Sent: Friday, January 24, 2025 6:00 PM
> To: iwamatsu nobuhiro(岩松 信洋 ○DITC□DIT○OST)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; pavel@denx.de
> Cc: claudiu.beznea@tuxon.dev; cip-dev@lists.cip-project.org
> Subject: [PATCH v6.1.y-cip v2 00/14] renesas: rzg3s: backport the RTC support
> 
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> 
> Hi,
> 
> Series backports the RTC support for the Renesas RZ/G3S SoC.
> Along with a clock driver for the clock provided the VBATTB is included as this
> is critical for the RTC to work, as it feeds the RTC counter.
> 
> For the VBATTB clock driver the following patches were also
> backported:
> - clk: gate: Add devm_clk_hw_register_gate()
> - clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()
> - clk: fixed-factor: add fwname-based constructor functions
> 
> and adjusted accordingly, if needed.
> 
> For the same VBATTB clock driver the
> devm_clk_hw_register_gate_parent_data() was backported from the upstream
> commit d54c1fd4a51e ("Add clock driver for Sunplus SP7021 SoC") in the
> patch "clk: Add devm_clk_hw_register_gate_parent_data()".
> 
> Thank you,
> Claudiu Beznea
> 
> Changes in v2:
> - adjusted the patch title and description for patch 1/1
> 
> Claudiu Beznea (13):
>   clk: Add devm_clk_hw_register_gate_parent_data()
>   clk: Add devm_clk_hw_register_gate_parent_hw()
>   clk: renesas: r9a08g045: Add clock, reset and power domain support for
>     the VBATTB IP
>   dt-bindings: clock: renesas,r9a08g045-vbattb: Document VBATTB
>   clk: renesas: vbattb: Add VBATTB clock driver
>   dt-bindings: rtc: renesas,rzg3s-rtc: Document the Renesas RTCA-3 IP
>   rtc: renesas-rtca3: Add driver for RTCA-3 available on Renesas RZ/G3S
>     SoC
>   rtc: renesas-rtca3: Fix compilation error on RISC-V
>   arm64: dts: renesas: r9a08g045: Add VBATTB node
>   arm64: dts: renesas: rzg3s-smarc-som: Enable VBATTB
>   arm64: dts: renesas: r9a08g045: Add RTC node
>   arm64: dts: renesas: rzg3s-smarc-som: Enable RTC
>   arm64: defconfig: Enable VBATTB clock and Renesas RTCA-3
> 
> Théo Lebrun (1):
>   clk: fixed-factor: add fwname-based constructor functions
> 

Applied, thanks.

Best regards,
  Nobuhiro