linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] spi: add support for Mediatek SPI-NAND controller
@ 2022-04-03 13:11 Chuanhong Guo
  2022-04-03 13:11 ` [PATCH 1/4] mtd: nand: make mtk_ecc.c a separated module Chuanhong Guo
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Chuanhong Guo @ 2022-04-03 13:11 UTC (permalink / raw)
  To: linux-spi
  Cc: Chuanhong Guo, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Matthias Brugger, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Roger Quadros, Thomas Bogendoerfer,
	Cai Huoqing, Florian Fainelli, Colin Ian King, Wolfram Sang,
	Paul Cercueil, Pratyush Yadav, Yu Kuai, open list:SPI SUBSYSTEM,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:ARM/Mediatek SoC support,
	moderated list:ARM/Mediatek SoC support, open list,
	open list:NAND FLASH SUBSYSTEM

Mediatek has an extended version of their NAND Flash Interface which
has a SPI-NAND mode. In this mode, the controller can perform 1-bit
spi-mem ops for up-to 0xa0 bytes and typical SPI-NAND single, dual
and quad IO page cache ops with 2-byte address. Additionally, the
page cache ops can be performed with ECC and auto data formatting
using the ECC engine of the controller.

This patchset implements support of this mode as a separated SPI-MEM
driver with piplined ECC engine.

Chuanhong Guo (4):
  mtd: nand: make mtk_ecc.c a separated module
  spi: add driver for MTK SPI NAND Flash Interface
  dt-bindings: spi: add binding doc for spi-mtk-snfi
  arm64: dts: mediatek: add dt node for MTK SNFI

 .../bindings/spi/mediatek,spi-mtk-snfi.yaml   |   87 ++
 arch/arm64/boot/dts/mediatek/mt7622.dtsi      |   12 +
 drivers/mtd/nand/Kconfig                      |    7 +
 drivers/mtd/nand/Makefile                     |    1 +
 drivers/mtd/nand/{raw/mtk_ecc.c => ecc-mtk.c} |    3 +-
 drivers/mtd/nand/raw/Kconfig                  |    1 +
 drivers/mtd/nand/raw/Makefile                 |    2 +-
 drivers/mtd/nand/raw/mtk_nand.c               |    2 +-
 drivers/spi/Kconfig                           |   10 +
 drivers/spi/Makefile                          |    1 +
 drivers/spi/spi-mtk-snfi.c                    | 1356 +++++++++++++++++
 .../linux/mtd/nand-ecc-mtk.h                  |    0
 12 files changed, 1478 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml
 rename drivers/mtd/nand/{raw/mtk_ecc.c => ecc-mtk.c} (99%)
 create mode 100644 drivers/spi/spi-mtk-snfi.c
 rename drivers/mtd/nand/raw/mtk_ecc.h => include/linux/mtd/nand-ecc-mtk.h (100%)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-03 16:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 13:11 [PATCH 0/4] spi: add support for Mediatek SPI-NAND controller Chuanhong Guo
2022-04-03 13:11 ` [PATCH 1/4] mtd: nand: make mtk_ecc.c a separated module Chuanhong Guo
2022-04-03 13:11 ` [PATCH 2/4] spi: add driver for MTK SPI NAND Flash Interface Chuanhong Guo
2022-04-03 13:11 ` [PATCH 3/4] dt-bindings: spi: add binding doc for spi-mtk-snfi Chuanhong Guo
2022-04-03 15:37   ` Krzysztof Kozlowski
2022-04-03 15:45     ` Chuanhong Guo
2022-04-03 15:49       ` Krzysztof Kozlowski
2022-04-03 16:01         ` Chuanhong Guo
2022-04-03 13:11 ` [PATCH 4/4] arm64: dts: mediatek: add dt node for MTK SNFI Chuanhong Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).