mbox series

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

Message ID 20230720100350.247386-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 20, 2023, 10:03 a.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.

v1->v2:
 * Add WARN_ON for rz_mtu3_pwm_get_state() in patch#8 as suggested by pavel.

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                     | 554 ++++++++++++++++++
 include/linux/mfd/rz-mtu3.h                   | 257 ++++++++
 include/linux/pwm.h                           |   3 +
 22 files changed, 1988 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

Pavel Machek July 20, 2023, 5:53 p.m. UTC | #1
Hi!

> 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.
> 
> v1->v2:
>  * Add WARN_ON for rz_mtu3_pwm_get_state() in patch#8 as suggested by pavel.

Thank you for the update. It passed testing, so I applied mainline
parts of the series to 5.10. I added Iwamatsu-san's reviewed-by tag
from the previous iteration.

Best regards,
								Pavel
Nobuhiro Iwamatsu Aug. 9, 2023, 1:58 a.m. UTC | #2
Hi Pavel,

It seems that the following patches have not been applied in 5.10.y-cip tree.
Do you forget these? Or do you have a reason?

  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

Best regards,
  Nobuhiro

> -----Original Message-----
> From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On
> Behalf Of Pavel Machek
> Sent: Friday, July 21, 2023 2:53 AM
> To: Biju Das <biju.das.jz@bp.renesas.com>
> Cc: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> <pavel@denx.de>; Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> Subject: Re: [cip-dev] [PATCH 5.10.y-cip v2 00/13] Add RZ/{G2L,G2LC,V2L}
> MTU3 support.
> 
> Hi!
> 
> > 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.
> >
> > v1->v2:
> >  * Add WARN_ON for rz_mtu3_pwm_get_state() in patch#8 as suggested by
> pavel.
> 
> Thank you for the update. It passed testing, so I applied mainline parts of the
> series to 5.10. I added Iwamatsu-san's reviewed-by tag from the previous
> iteration.
> 
> Best regards,
> 								Pavel
> --
> DENX Software Engineering GmbH,        Managing Director: Erika Unter
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Biju Das Aug. 9, 2023, 6:28 a.m. UTC | #3
Hi Nobuhiro-San,

> Subject: RE: [cip-dev] [PATCH 5.10.y-cip v2 00/13] Add RZ/{G2L,G2LC,V2L}
> MTU3 support.
> 
> Hi Pavel,
> 
> It seems that the following patches have not been applied in 5.10.y-cip
> tree.
> Do you forget these? Or do you have a reason?
> 
>   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

These patches are from next. For testing I have added here. 

Pavel wants the patches to be picked from mainline due to CIP policy reason.

We need to wait for another 2 months to get these patches hit on mainline, So that proper commit ID can be applied in backported cip patches.

Commit-IDs in next can be changed while applying to mainline.

Cheers,
biju



> > -----Original Message-----
> > From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On
> > Behalf Of Pavel Machek
> > Sent: Friday, July 21, 2023 2:53 AM
> > To: Biju Das <biju.das.jz@bp.renesas.com>
> > Cc: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> > DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> > <pavel@denx.de>; Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> > Subject: Re: [cip-dev] [PATCH 5.10.y-cip v2 00/13] Add
> > RZ/{G2L,G2LC,V2L}
> > MTU3 support.
> >
> > Hi!
> >
> > > 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.
> > >
> > > v1->v2:
> > >  * Add WARN_ON for rz_mtu3_pwm_get_state() in patch#8 as suggested
> > > by
> > pavel.
> >
> > Thank you for the update. It passed testing, so I applied mainline
> > parts of the series to 5.10. I added Iwamatsu-san's reviewed-by tag
> > from the previous iteration.
> >
> > Best regards,
> > 								Pavel
> > --
> > DENX Software Engineering GmbH,        Managing Director: Erika Unter
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Nobuhiro Iwamatsu Aug. 9, 2023, 6:33 a.m. UTC | #4
Hi Biju,

> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: Wednesday, August 9, 2023 3:28 PM
> To: iwamatsu nobuhiro(岩松 信洋 ○DITC□DIT○OST)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; cip-dev@lists.cip-project.org
> Cc: pavel@denx.de; Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> Subject: RE: [cip-dev] [PATCH 5.10.y-cip v2 00/13] Add RZ/{G2L,G2LC,V2L}
> MTU3 support.
> 
> Hi Nobuhiro-San,
> 
> > Subject: RE: [cip-dev] [PATCH 5.10.y-cip v2 00/13] Add
> > RZ/{G2L,G2LC,V2L}
> > MTU3 support.
> >
> > Hi Pavel,
> >
> > It seems that the following patches have not been applied in
> > 5.10.y-cip tree.
> > Do you forget these? Or do you have a reason?
> >
> >   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
> 
> These patches are from next. For testing I have added here.
> 
> Pavel wants the patches to be picked from mainline due to CIP policy reason.
> 
> We need to wait for another 2 months to get these patches hit on mainline, So
> that proper commit ID can be applied in backported cip patches.
> 
> Commit-IDs in next can be changed while applying to mainline.
> 

Thank you for the explanation. I got it.

Best regards,
  Nobuhiro