mbox series

[6.1.y-cip,0/8] Add MTU3 core/counter driver support for RZ/G2L alike SoCs

Message ID 20230606075235.183132-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Add MTU3 core/counter driver support for RZ/G2L alike SoCs | expand

Message

Biju Das June 6, 2023, 7:52 a.m. UTC
This patch series aims to add MTU3 core/counter driver support for RZ/G2L alike
SoCs.

All these patches are cherry-picked from the mainline.

It is tested with Rotary encoder[1]
[1] https://www.mouser.co.uk/ProductDetail/Alps-Alpine/EC11E15244B2?qs=m0BA540hBPfDpUEkDmFV5A%3D%3D


Biju Das (8):
  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
  Documentation: ABI: sysfs-bus-counter: add cascade_counts_enable and
    external_input_phase_clock_select
  counter: Add Renesas RZ/G2L MTU3a counter driver
  MAINTAINERS: Add entries for Renesas RZ/G2L MTU3a counter driver
  arm64: dts: renesas: r9a07g044: Add MTU3a node
  arm64: dts: renesas: r9a07g054: Add MTU3a node

 Documentation/ABI/testing/sysfs-bus-counter   |  32 +
 .../bindings/timer/renesas,rz-mtu3.yaml       | 302 ++++++
 MAINTAINERS                                   |   8 +
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    |  70 ++
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    |  70 ++
 drivers/clk/renesas/r9a07g044-cpg.c           |   5 +-
 drivers/counter/Kconfig                       |  11 +
 drivers/counter/Makefile                      |   1 +
 drivers/counter/rz-mtu3-cnt.c                 | 902 ++++++++++++++++++
 drivers/mfd/Kconfig                           |  10 +
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/rz-mtu3.c                         | 391 ++++++++
 drivers/mfd/rz-mtu3.h                         | 147 +++
 include/linux/mfd/rz-mtu3.h                   | 257 +++++
 14 files changed, 2206 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
 create mode 100644 drivers/counter/rz-mtu3-cnt.c
 create mode 100644 drivers/mfd/rz-mtu3.c
 create mode 100644 drivers/mfd/rz-mtu3.h
 create mode 100644 include/linux/mfd/rz-mtu3.h

Comments

Pavel Machek June 6, 2023, 9:15 a.m. UTC | #1
Hi!

> This patch series aims to add MTU3 core/counter driver support for RZ/G2L alike
> SoCs.
> 
> All these patches are cherry-picked from the mainline.
> 
> It is tested with Rotary encoder[1]
> [1]
> https://www.mouser.co.uk/ProductDetail/Alps-Alpine/EC11E15244B2?qs=m0BA540hBPfDpUEkDmFV5A%3D%3D

I'll review this, but lets delay merging this after 6.1-cip1 is
released.

Best regards,
								Pavel
Biju Das June 6, 2023, 9:17 a.m. UTC | #2
Hi Pavel,

> Subject: Re: [PATCH 6.1.y-cip 0/8] Add MTU3 core/counter driver support
> for RZ/G2L alike SoCs
> 
> Hi!
> 
> > This patch series aims to add MTU3 core/counter driver support for
> > RZ/G2L alike SoCs.
> >
> > All these patches are cherry-picked from the mainline.
> >
> > It is tested with Rotary encoder[1]
> > [1]
> > https://www.mouser.co.uk/ProductDetail/Alps-Alpine/EC11E15244B2?qs=m0B
> > A540hBPfDpUEkDmFV5A%3D%3D
> 
> I'll review this, but lets delay merging this after 6.1-cip1 is
> released.

It is ok.

Cheers,
Biju
Pavel Machek June 22, 2023, 11:13 a.m. UTC | #3
Hi!

> This patch series aims to add MTU3 core/counter driver support for RZ/G2L alike
> SoCs.
> 
> All these patches are cherry-picked from the mainline.

I went through my comments again, and I guess they are better solved
in the mainline. There were no other comments, and patches pass the
testing, so I applied them.

Best regards, and sorry for the delay,
								Pavel
Biju Das June 22, 2023, 11:42 a.m. UTC | #4
Hi Pavel,
> Subject: Re: [PATCH 6.1.y-cip 0/8] Add MTU3 core/counter driver support
> for RZ/G2L alike SoCs
> 
> Hi!
> 
> > This patch series aims to add MTU3 core/counter driver support for
> > RZ/G2L alike SoCs.
> >
> > All these patches are cherry-picked from the mainline.
> 
> I went through my comments again, and I guess they are better solved in
> the mainline. There were no other comments, and patches pass the testing,
> so I applied them.

OK will do.

Cheers,
Biju