Skip to content

Commit 42d20a6

Browse files
cpackham-atlnzbroonie
authored andcommitted
spi: spi-mem: Add Realtek SPI-NAND controller
Add a driver for the SPI-NAND controller on the RTL9300 family of devices. The controller supports * Serial/Dual/Quad data with * PIO and DMA data read/write operation * Configurable flash access timing There is a separate ECC controller on the RTL9300 which isn't currently supported (instead we rely on the on-die ECC supported by most SPI-NAND chips). Signed-off-by: Chris Packham <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent eef26f1 commit 42d20a6

File tree

4 files changed

+423
-0
lines changed

4 files changed

+423
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19538,6 +19538,12 @@ S: Maintained
1953819538
F: Documentation/devicetree/bindings/net/dsa/realtek.yaml
1953919539
F: drivers/net/dsa/realtek/*
1954019540

19541+
REALTEK SPI-NAND
19542+
M: Chris Packham <[email protected]>
19543+
S: Maintained
19544+
F: Documentation/devicetree/bindings/spi/realtek,rtl9301-snand.yaml
19545+
F: drivers/spi/spi-realtek-rtl-snand.c
19546+
1954119547
REALTEK WIRELESS DRIVER (rtlwifi family)
1954219548
M: Ping-Ke Shih <[email protected]>
1954319549

drivers/spi/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,17 @@ config SPI_PXA2XX
843843
config SPI_PXA2XX_PCI
844844
def_tristate SPI_PXA2XX && PCI && COMMON_CLK
845845

846+
config SPI_REALTEK_SNAND
847+
tristate "Realtek SPI-NAND Flash Controller"
848+
depends on MACH_REALTEK_RTL || COMPILE_TEST
849+
select REGMAP
850+
help
851+
This enables support for the SPI-NAND Flash controller on
852+
Realtek SoCs.
853+
854+
This driver does not support generic SPI. The implementation
855+
only supports the spi-mem interface.
856+
846857
config SPI_ROCKCHIP
847858
tristate "Rockchip SPI controller driver"
848859
depends on ARCH_ROCKCHIP || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o
119119
obj-$(CONFIG_SPI_ROCKCHIP_SFC) += spi-rockchip-sfc.o
120120
obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o
121121
obj-$(CONFIG_MACH_REALTEK_RTL) += spi-realtek-rtl.o
122+
obj-$(CONFIG_SPI_REALTEK_SNAND) += spi-realtek-rtl-snand.o
122123
obj-$(CONFIG_SPI_RPCIF) += spi-rpc-if.o
123124
obj-$(CONFIG_SPI_RSPI) += spi-rspi.o
124125
obj-$(CONFIG_SPI_RZV2M_CSI) += spi-rzv2m-csi.o

0 commit comments

Comments
 (0)