mbox series

[5.10.y-cip,00/13] Add RZ/{G2L,G2LC,V2L} MTU3 support.

Message ID 20230718140608.119449-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Add RZ/{G2L,G2LC,V2L} MTU3 support. | expand

Message

Biju Das July 18, 2023, 2:05 p.m. UTC
This patch series aims to add support for RZ/{G2L,G2LC,V2L}
MTU3 core and PWM driver.

All the patches are cherry-picked from the mainline
except patch#11-patch#13. The trivial patches#11-#13 are
cherry-picked from next.

Biju Das (10):
  clk: renesas: r9a07g044: Add MTU3a clock and reset entry
  dt-bindings: timer: Document RZ/G2L MTU3a bindings
  mfd: Add Renesas RZ/G2L MTU3a core driver
  arm64: defconfig: Enable Renesas MTU3a counter config
  pwm: Add Renesas RZ/G2L MTU3a PWM driver
  arm64: dts: renesas: r9a07g044: Add MTU3a node
  arm64: dts: renesas: r9a07g054: Add MTU3a node
  arm64: dts: renesas: rzg2l-smarc: Add support for enabling MTU3
  arm64: dts: renesas: rzg2lc-smarc: Add support for enabling MTU3
  arm64: defconfig: Enable Renesas MTU3a PWM config

Lad Prabhakar (1):
  arm64: dts: renesas: rzg2lc-smarc: Include SoM DTSI into board DTS

Uwe Kleine-König (1):
  pwm: Add a device-managed function to add PWM chips

Wolfram Sang (1):
  arm64: dts: renesas: rzg2l-smarc: Use proper bool operator

 .../bindings/timer/renesas,rz-mtu3.yaml       | 302 ++++++++++
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    |  70 +++
 .../boot/dts/renesas/r9a07g044c2-smarc.dts    |  42 ++
 .../boot/dts/renesas/r9a07g044l2-smarc.dts    |  21 +
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    |  70 +++
 .../boot/dts/renesas/r9a07g054l2-smarc.dts    |  20 +
 .../dts/renesas/rzg2l-smarc-pinfunction.dtsi  |  20 +
 arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi  |  23 +-
 .../dts/renesas/rzg2lc-smarc-pinfunction.dtsi |   9 +
 arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi |  42 +-
 arch/arm64/configs/defconfig                  |   2 +
 drivers/clk/renesas/r9a07g044-cpg.c           |   5 +-
 drivers/mfd/Kconfig                           |  10 +
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/rz-mtu3.c                         | 392 +++++++++++++
 drivers/mfd/rz-mtu3.h                         | 147 +++++
 drivers/pwm/Kconfig                           |  11 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/core.c                            |  19 +
 drivers/pwm/pwm-rz-mtu3.c                     | 552 ++++++++++++++++++
 include/linux/mfd/rz-mtu3.h                   | 257 ++++++++
 include/linux/pwm.h                           |   3 +
 22 files changed, 1986 insertions(+), 33 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
 create mode 100644 drivers/mfd/rz-mtu3.c
 create mode 100644 drivers/mfd/rz-mtu3.h
 create mode 100644 drivers/pwm/pwm-rz-mtu3.c
 create mode 100644 include/linux/mfd/rz-mtu3.h

Comments

Nobuhiro Iwamatsu July 20, 2023, 9:59 a.m. UTC | #1
Hi all,

> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: Tuesday, July 18, 2023 11:06 PM
> To: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> <pavel@denx.de>
> Cc: Biju Das <biju.das.jz@bp.renesas.com>; Fabrizio Castro
> <fabrizio.castro.jz@renesas.com>
> Subject: [PATCH 5.10.y-cip 00/13] Add RZ/{G2L,G2LC,V2L} MTU3 support.
> 
> This patch series aims to add support for RZ/{G2L,G2LC,V2L}
> MTU3 core and PWM driver.
> 
> All the patches are cherry-picked from the mainline except patch#11-patch#13.
> The trivial patches#11-#13 are cherry-picked from next.
> 
> Biju Das (10):
>   clk: renesas: r9a07g044: Add MTU3a clock and reset entry
>   dt-bindings: timer: Document RZ/G2L MTU3a bindings
>   mfd: Add Renesas RZ/G2L MTU3a core driver
>   arm64: defconfig: Enable Renesas MTU3a counter config
>   pwm: Add Renesas RZ/G2L MTU3a PWM driver
>   arm64: dts: renesas: r9a07g044: Add MTU3a node
>   arm64: dts: renesas: r9a07g054: Add MTU3a node
>   arm64: dts: renesas: rzg2l-smarc: Add support for enabling MTU3
>   arm64: dts: renesas: rzg2lc-smarc: Add support for enabling MTU3
>   arm64: defconfig: Enable Renesas MTU3a PWM config
> 
> Lad Prabhakar (1):
>   arm64: dts: renesas: rzg2lc-smarc: Include SoM DTSI into board DTS
> 
> Uwe Kleine-König (1):
>   pwm: Add a device-managed function to add PWM chips
> 
> Wolfram Sang (1):
>   arm64: dts: renesas: rzg2l-smarc: Use proper bool operator
> 

I reviewed this series, LGTM. I can apply if there are no comments.

Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>

Best regards,
  Nobuhiro
Biju Das July 20, 2023, 11:05 a.m. UTC | #2
> -----Original Message-----
> From: nobuhiro1.iwamatsu@toshiba.co.jp
> <nobuhiro1.iwamatsu@toshiba.co.jp>
> Sent: Thursday, July 20, 2023 10:59 AM
> To: Biju Das <biju.das.jz@bp.renesas.com>; cip-dev@lists.cip-
> project.org; pavel@denx.de
> Cc: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> Subject: RE: [PATCH 5.10.y-cip 00/13] Add RZ/{G2L,G2LC,V2L} MTU3
> support.
> 
> Hi all,
> 
> > -----Original Message-----
> > From: Biju Das <biju.das.jz@bp.renesas.com>
> > Sent: Tuesday, July 18, 2023 11:06 PM
> > To: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> > DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> > <pavel@denx.de>
> > Cc: Biju Das <biju.das.jz@bp.renesas.com>; Fabrizio Castro
> > <fabrizio.castro.jz@renesas.com>
> > Subject: [PATCH 5.10.y-cip 00/13] Add RZ/{G2L,G2LC,V2L} MTU3 support.
> >
> > This patch series aims to add support for RZ/{G2L,G2LC,V2L}
> > MTU3 core and PWM driver.
> >
> > All the patches are cherry-picked from the mainline except patch#11-
> patch#13.
> > The trivial patches#11-#13 are cherry-picked from next.
> >
> > Biju Das (10):
> >   clk: renesas: r9a07g044: Add MTU3a clock and reset entry
> >   dt-bindings: timer: Document RZ/G2L MTU3a bindings
> >   mfd: Add Renesas RZ/G2L MTU3a core driver
> >   arm64: defconfig: Enable Renesas MTU3a counter config
> >   pwm: Add Renesas RZ/G2L MTU3a PWM driver
> >   arm64: dts: renesas: r9a07g044: Add MTU3a node
> >   arm64: dts: renesas: r9a07g054: Add MTU3a node
> >   arm64: dts: renesas: rzg2l-smarc: Add support for enabling MTU3
> >   arm64: dts: renesas: rzg2lc-smarc: Add support for enabling MTU3
> >   arm64: defconfig: Enable Renesas MTU3a PWM config
> >
> > Lad Prabhakar (1):
> >   arm64: dts: renesas: rzg2lc-smarc: Include SoM DTSI into board DTS
> >
> > Uwe Kleine-König (1):
> >   pwm: Add a device-managed function to add PWM chips
> >
> > Wolfram Sang (1):
> >   arm64: dts: renesas: rzg2l-smarc: Use proper bool operator
> >
> 
> I reviewed this series, LGTM. I can apply if there are no comments.

Thank you!

Cheers,
Biju

> 
> Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
> 
> Best regards,
>   Nobuhiro