Skip to content

mtd: rawnand: loongson: Add Loongson-2K nand controller support

Binbin Zhou linux-devicetree linux-mtd loongarch 4 versions – Applied

Status from this message: Applied to nand/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 4 repliesApplied
  2. v37 patches 4 repliesSuperseded
  3. v28 patches 19 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches3 repliesSuperseded

Changes in v4 from the cover letter

Patch (5/7):
- Split the flags variable into dma_bits;
- Chip selects set before requesting the DMA channel;
- '|' should be last character on the previous line.
Patch (7/7):
- Use devm_platform_ioremap_resource_byname();
- Add the dma_config() function pointer to replace the previous flags.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7mtd: rawnand: loongson1: Rename the prefix from ls1x to loongsonMAINTAINERS drivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/Makefile +1 more+177 -1702 replies
2/7mtd: rawnand: loongson: Add 6-byte NAND ID reading supportdrivers/mtd/nand/raw/loongson-nand-controller.c+23 -60 replies
3/7mtd: rawnand: loongson: Add nand chip select supportdrivers/mtd/nand/raw/loongson-nand-controller.c+90 -260 replies
4/7dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K0500 NAND controllerDocumentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml+4 -20 replies
5/7mtd: rawnand: loongson: Add Loongson-2K0500 NAND controller supportdrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/loongson-nand-controller.c+53 -20 replies
6/7dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K1000 NAND controllerDocumentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml+49 -10 replies
7/7mtd: rawnand: loongson: Add Loongson-2K1000 NAND controller supportdrivers/mtd/nand/raw/loongson-nand-controller.c+49 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRob Herring (Arm)Keguang Zhang
SeriesR-b T-b
1/7
2/7
3/7
4/7A-b
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/7] mtd: rawnand: loongson: Add Loongson-2K nand controller support

Hi all:

This patchset adds support for the Loongson-2K0500/Loongson-2K1000 NAND controllers, which are similar to the Loongson-1C NAND controller.

They support a maximum capacity of 16GB FLASH per chip, with a maximum page size of 8KB. The chip supports up to 4 chip selects and 4 RDY signals.

The key difference between the Loongson-2K NAND controllers is that the Loongson-2K1000 explicitly configures the DMA controller routing, while the Loongson-2K0500 defaults to using APBDMA0.

Summary of the patchset:
Ptach 1: Rename all prefixes from ls1x to loongson Patch 2: Add 6-byte NAND ID reading
Patch 3: Add chip select support
Patch 4-5: Add Loongson-2K0500 NAND controller support Patch 6-7: Add Loongson-2K1000 NAND controller support

Thanks.

-------
V4:
Patch (5/7):
- Split the flags variable into dma_bits;
- Chip selects set before requesting the DMA channel;
- '|' should be last character on the previous line.
Patch (7/7):
- Use devm_platform_ioremap_resource_byname();
- Add the dma_config() function pointer to replace the previous flags.

Link to V3:
https://lore.kernel.org/all/[email protected]/

V3:
Patch (1/7):
- Merge the first two rename patches;
Patch (3/7)
- Refact chip capacity calculation. Use a big switch-case

    for writesize, and sort the big switch-case by writesize;

- Drop the redundant 'nand_cs = 0x0';
Patch (6/7)
- Add Reviewed-by tag from Rob, thanks.

Link to V2:
https://lore.kernel.org/all/[email protected]/

V2:
Patch (5/8):
- Add Acked-by tag from Rob, thanks;
Patch (7/8):
- Update reg-names attribute description.

Link to V1:
https://lore.kernel.org/all/[email protected]/

Binbin Zhou (6):
mtd: rawnand: loongson1: Rename the prefix from ls1x to loongson
mtd: rawnand: loongson: Add nand chip select support
dt-bindings: mtd: loongson,ls1b-nand-controller: Document the
Loongson-2K0500 NAND controller
mtd: rawnand: loongson: Add Loongson-2K0500 NAND controller support
dt-bindings: mtd: loongson,ls1b-nand-controller: Document the
Loongson-2K1000 NAND controller
mtd: rawnand: loongson: Add Loongson-2K1000 NAND controller support

Keguang Zhang (1):
mtd: rawnand: loongson: Add 6-byte NAND ID reading support

 .../mtd/loongson,ls1b-nand-controller.yaml    |   56 +-
 MAINTAINERS                                   |    2 +-
 drivers/mtd/nand/raw/Kconfig                  |    8 +-
 drivers/mtd/nand/raw/Makefile                 |    2 +-
 .../mtd/nand/raw/loongson-nand-controller.c   | 1024 +++++++++++++++++
 .../mtd/nand/raw/loongson1-nand-controller.c  |  836 --------------
 6 files changed, 1083 insertions(+), 845 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/loongson-nand-controller.c
 delete mode 100644 drivers/mtd/nand/raw/loongson1-nand-controller.c

base-commit: c9f62564252c21d739a5003e9b2d6ad0828aa7bd

Signature · 1 line
2.47.3