Re: [PATCH v2 2/2] spi: spi-mem: Add Realtek SPI flash controller driver
From: Kuan-Wei Chiu
Date: Sun Sep 06 2026 - 11:18:51 EST
Hi Yu-Chun,
On Sun, Sep 06, 2026 at 10:57:55PM +0800, Yu-Chun Lin wrote:
> From: Jyan Chou <jyanchou@xxxxxxxxxxx>
>
> Add a spi-mem driver for the SPI Flash Controller (SFC) found on Realtek
> DHC SoC. SFC supports Dual I/O.
>
> Implement the exec_op API for regular control commands and the dirmap API
> for hardware-accelerated read/write operations.
>
> The controller is described by three register ranges. The first one (ctrl)
> holds the control registers. The second one (dma) holds the DMA engine
> registers, used to transfer the payload between the flash and main memory.
> The third range is the memory aperture (dirmap) that maps the flash
> contents.
>
> Signed-off-by: Jyan Chou <jyanchou@xxxxxxxxxxx>
> Co-developed-by: Yu-Chun Lin <eleanor.lin@xxxxxxxxxxx>
> Signed-off-by: Yu-Chun Lin <eleanor.lin@xxxxxxxxxxx>
> ---
> Changes in v2:
> - None.
> ---
> MAINTAINERS | 6 +
> drivers/spi/Kconfig | 10 +
> drivers/spi/Makefile | 1 +
> drivers/spi/spi-rtk-nor.c | 637 ++++++++++++++++++++++++++++++++++++++
> 4 files changed, 654 insertions(+)
> create mode 100644 drivers/spi/spi-rtk-nor.c
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3a19da74d00c..705f7ddf792f 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -23011,6 +23011,12 @@ S: Maintained
> F: Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml
> F: drivers/spi/spi-realtek-rtl-snand.c
>
> +REALTEK SPI-NOR
> +M: Jyan Chou <jyanchou@xxxxxxxxxxx>
> +M: Yu-Chun <eleanor.lin@xxxxxxxxxxx>
nit: Yu-Chun -> Yu-Chun Lin ?
Regards,
Kuan-Wei
> +S: Supported
> +F: drivers/spi/spi-rtk-nor.c
> +
> REALTEK SYSTIMER DRIVER
> M: Hao-Wen Ting <haowen.ting@xxxxxxxxxxx>
> S: Maintained
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 357cebef9917..4b758ca31490 100644