mbox series

[v2,0/8] Add RZ/G3E xSPI support

Message ID 20250306170512.241128-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Add RZ/G3E xSPI support | expand

Message

Biju Das March 6, 2025, 5:04 p.m. UTC
The xSPI IP found on RZ/G3E SoC similar to RPC-IF interface, but it
can support writes on memory-mapped area. Even though the registers are
different, the rpcif driver code can be reused for xSPI by adding wrapper
function to it.

This patch series tested on RZ/G2L and RZ/G3E by overwriting boot
partitions.

v1->v2:
 * As rz-xspi is too generic, replaced file name rz-xspi->rzg3e-xspi
   and dropped generic compatible rz-xspi.
 * Dropped prefix spi from interrupt names.
 * Updated the example with above changes.
 * Retained Rb tag from Rob as these changes are trivial.
 * Fixed the build error reported by bot by dropping 
   EXPORT_SYMBOL(xspi_dirmap_read) and restoring
   EXPORT_SYMBOL(rpcif_dirmap_read).
 * Replaced enum XSPI_RZ->XSPI_RZ_G3E.
 * Replaced compatible rz-xspi->r9a09g047-xspi and device data
   xspi_info_rz->xspi_info_r9a09g047.

Biju Das (8):
  dt-bindings: memory: Document RZ/G3E support
  memory: renesas-rpc-if: Move rpc-if reg definitions
  memory: renesas-rpc-if: Use devm_reset_control_array_get_exclusive()
  memory: renesas-rpc-if: Move rpcif_info definitions near to the user
  memory: renesas-rpc-if: Add regmap to struct rpcif_info
  memory: renesas-rpc-if: Add wrapper functions
  memory: renesas-rpc-if: Add RZ/G3E xSPI support
  spi: rpc-if: Add write support for memory-mapped area

 .../renesas,rzg3e-xspi.yaml                   | 135 ++++
 drivers/memory/renesas-rpc-if-regs.h          | 147 ++++
 drivers/memory/renesas-rpc-if.c               | 665 +++++++++++++-----
 drivers/memory/renesas-xspi-if-regs.h         | 105 +++
 drivers/spi/spi-rpc-if.c                      |  16 +-
 include/memory/renesas-rpc-if.h               |   4 +
 6 files changed, 881 insertions(+), 191 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xspi.yaml
 create mode 100644 drivers/memory/renesas-rpc-if-regs.h
 create mode 100644 drivers/memory/renesas-xspi-if-regs.h

Comments

Biju Das March 6, 2025, 5:11 p.m. UTC | #1
Hi all,

> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: 06 March 2025 17:05
> Subject: [PATCH v2 0/8] Add RZ/G3E xSPI support
> 
> The xSPI IP found on RZ/G3E SoC similar to RPC-IF interface, but it can support writes on memory-
> mapped area. Even though the registers are different, the rpcif driver code can be reused for xSPI by
> adding wrapper function to it.
> 
> This patch series tested on RZ/G2L and RZ/G3E by overwriting boot partitions.

I am resending the series as somehow, I missed adding addresses to patch#7
and it is not part of the series.

Sorry for this.

Cheers,
Biju

> 
> v1->v2:
>  * As rz-xspi is too generic, replaced file name rz-xspi->rzg3e-xspi
>    and dropped generic compatible rz-xspi.
>  * Dropped prefix spi from interrupt names.
>  * Updated the example with above changes.
>  * Retained Rb tag from Rob as these changes are trivial.
>  * Fixed the build error reported by bot by dropping
>    EXPORT_SYMBOL(xspi_dirmap_read) and restoring
>    EXPORT_SYMBOL(rpcif_dirmap_read).
>  * Replaced enum XSPI_RZ->XSPI_RZ_G3E.
>  * Replaced compatible rz-xspi->r9a09g047-xspi and device data
>    xspi_info_rz->xspi_info_r9a09g047.
> 
> Biju Das (8):
>   dt-bindings: memory: Document RZ/G3E support
>   memory: renesas-rpc-if: Move rpc-if reg definitions
>   memory: renesas-rpc-if: Use devm_reset_control_array_get_exclusive()
>   memory: renesas-rpc-if: Move rpcif_info definitions near to the user
>   memory: renesas-rpc-if: Add regmap to struct rpcif_info
>   memory: renesas-rpc-if: Add wrapper functions
>   memory: renesas-rpc-if: Add RZ/G3E xSPI support
>   spi: rpc-if: Add write support for memory-mapped area
> 
>  .../renesas,rzg3e-xspi.yaml                   | 135 ++++
>  drivers/memory/renesas-rpc-if-regs.h          | 147 ++++
>  drivers/memory/renesas-rpc-if.c               | 665 +++++++++++++-----
>  drivers/memory/renesas-xspi-if-regs.h         | 105 +++
>  drivers/spi/spi-rpc-if.c                      |  16 +-
>  include/memory/renesas-rpc-if.h               |   4 +
>  6 files changed, 881 insertions(+), 191 deletions(-)  create mode 100644
> Documentation/devicetree/bindings/memory-controllers/renesas,rzg3e-xspi.yaml
>  create mode 100644 drivers/memory/renesas-rpc-if-regs.h
>  create mode 100644 drivers/memory/renesas-xspi-if-regs.h
> 
> --
> 2.43.0