Skip to content

Commit a403997

Browse files
LorenzoBianconibroonie
authored andcommitted
spi: airoha: add SPI-NAND Flash controller driver
Introduce support for SPI-NAND driver of the Airoha NAND Flash Interface found on Airoha ARM SoCs. Tested-by: Rajeev Kumar <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/6c9db20505b01a66807995374f2af475a23ce5b2.1714377864.git.lorenzo@kernel.org Signed-off-by: Mark Brown <[email protected]>
1 parent 4776679 commit a403997

File tree

4 files changed

+1149
-0
lines changed

4 files changed

+1149
-0
lines changed

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,15 @@ S: Supported
653653
F: fs/aio.c
654654
F: include/linux/*aio*.h
655655

656+
AIROHA SPI SNFI DRIVER
657+
M: Lorenzo Bianconi <[email protected]>
658+
M: Ray Liu <[email protected]>
659+
L: [email protected] (moderated for non-subscribers)
660+
661+
S: Maintained
662+
F: Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml
663+
F: drivers/spi/spi-airoha.c
664+
656665
AIRSPY MEDIA DRIVER
657666
658667
S: Orphan

drivers/spi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ config SPI_MEM
5757

5858
comment "SPI Master Controller Drivers"
5959

60+
config SPI_AIROHA_SNFI
61+
tristate "Airoha SPI NAND Flash Interface"
62+
depends on ARCH_AIROHA || COMPILE_TEST
63+
depends on SPI_MASTER
64+
select REGMAP_MMIO
65+
help
66+
This enables support for SPI-NAND mode on the Airoha NAND
67+
Flash Interface found on Airoha ARM SoCs. This controller
68+
is implemented as a SPI-MEM controller.
69+
6070
config SPI_ALTERA
6171
tristate "Altera SPI Controller platform driver"
6272
select SPI_ALTERA_CORE

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ obj-$(CONFIG_SPI_SPIDEV) += spidev.o
1414
obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
1515

1616
# SPI master controller drivers (bus)
17+
obj-$(CONFIG_SPI_AIROHA_SNFI) += spi-airoha-snfi.o
1718
obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o
1819
obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o
1920
obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o

0 commit comments

Comments
 (0)