mbox series

[v2,0/4] Driver support for RZ/V2M PWC

Message ID 20221221210917.458537-1-fabrizio.castro.jz@renesas.com
Headers show
Series Driver support for RZ/V2M PWC | expand

Message

Fabrizio Castro Dec. 21, 2022, 9:09 p.m. UTC
The PWC IP found in the RZ/V2M family of chips fits the Multi-Function
Device (MFD) model quite well, and comes with the below capabilities:
* external power supply on/off sequence generation
* on/off signal generation for the LPDDR4 core power supply (LPVDD)
* key input signals processing
* general-purpose output pins

With this new version I have changed model for the DT/dt-bindings.
I have dropped syscon, simple-mfd, regmap, offset, and the child nodes.

Thanks,
Fab

Fabrizio Castro (4):
  dt-bindings: mfd: Add RZ/V2M PWC
  mfd: Add RZ/V2M PWC core driver
  gpio: Add support for the Renesas RZ/V2M PWC GPIOs
  power: reset: Add new driver for RZ/V2M PWC poweroff

 .../bindings/mfd/renesas,rzv2m-pwc.yaml       |  56 ++++++++++
 drivers/gpio/Kconfig                          |  10 ++
 drivers/gpio/Makefile                         |   1 +
 drivers/gpio/gpio-rzv2m-pwc.c                 | 105 ++++++++++++++++++
 drivers/mfd/Kconfig                           |  14 +++
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/rzv2m-pwc.c                       |  70 ++++++++++++
 drivers/mfd/rzv2m-pwc.h                       |  18 +++
 drivers/power/reset/Kconfig                   |   9 ++
 drivers/power/reset/Makefile                  |   1 +
 drivers/power/reset/rzv2m-pwc-poweroff.c      |  67 +++++++++++
 11 files changed, 352 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzv2m-pwc.yaml
 create mode 100644 drivers/gpio/gpio-rzv2m-pwc.c
 create mode 100644 drivers/mfd/rzv2m-pwc.c
 create mode 100644 drivers/mfd/rzv2m-pwc.h
 create mode 100644 drivers/power/reset/rzv2m-pwc-poweroff.c

Comments

Rob Herring (Arm) Dec. 22, 2022, 6:09 p.m. UTC | #1
On Wed, 21 Dec 2022 21:09:14 +0000, Fabrizio Castro wrote:
> The Renesas RZ/V2M External Power Sequence Controller (PWC)
> IP is a multi-function device, and it's capable of:
> * external power supply on/off sequence generation
> * on/off signal generation for the LPDDR4 core power supply (LPVDD)
> * key input signals processing
> * general-purpose output pins
> 
> Add the corresponding dt-bindings.
> 
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> ---
> 
> v1->v2: I have dropped syscon, simple-mfd, regmap, offset, and the child nodes.
> 
>  .../bindings/mfd/renesas,rzv2m-pwc.yaml       | 56 +++++++++++++++++++
>  1 file changed, 56 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzv2m-pwc.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>