Skip to content

add STM32 FMC2 controller drivers

Christophe Kerello linux-devicetree linux-mtd lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 38 repliesIn review
  2. v112 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- use of regmap_bulk_write/regmap_bulk_read APIs
- remove ops from stm32_fmc2 structure
- add 2 APIs to manage FMC2 enable/disable
- add 2 APIs to manage FMC2 NWAIT shared signal

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12dt-bindings: mfd: stm32-fmc2: add STM32 FMC2 controller documentationDocumentation/devicetree/bindings/mfd/st,stm32-fmc2.yaml+370 -02 replies
2/12mfd: stm32-fmc2: add STM32 FMC2 controller driverdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/stm32-fmc2.c +1 more+374 -010 replies
3/12bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driverdrivers/bus/Kconfig drivers/bus/Makefile drivers/bus/stm32-fmc2-ebi.c+1103 -05 replies
4/12mtd: rawnand: stm32_fmc2: manage all errors cases at probe timedrivers/mtd/nand/raw/stm32_fmc2_nand.c+9 -48 replies
5/12mtd: rawnand: stm32_fmc2: remove useless inline commentsdrivers/mtd/nand/raw/stm32_fmc2_nand.c+0 -401 reply
6/12mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_MS for timeoutsdrivers/mtd/nand/raw/stm32_fmc2_nand.c+5 -67 replies
7/12mtd: rawnand: stm32_fmc2: cleanupdrivers/mtd/nand/raw/stm32_fmc2_nand.c+404 -4082 replies
8/12mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macrosdrivers/mtd/nand/raw/stm32_fmc2_nand.c+85 -922 replies
9/12mtd: rawnand: stm32_fmc2: move all registersdrivers/mtd/nand/raw/stm32_fmc2_nand.c+1 -1530 replies
10/12mtd: rawnand: stm32_fmc2: use regmap APIsdrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/stm32_fmc2_nand.c+126 -1431 reply
11/12mtd: rawnand: stm32_fmc2: use stm32_fmc2 structure in nfc controllerdrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/stm32_fmc2_nand.c+128 -610 replies
12/12mtd: rawnand: stm32_fmc2: add new MP1 compatible stringdrivers/mtd/nand/raw/stm32_fmc2_nand.c+1 -00 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchMarek VasutMiquel Raynal
1/12
2/12
3/12T-b
4/12
5/12R-b
6/12
7/12R-b
8/12R-b
9/12
10/12R-b
11/12
12/12

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

Read the v2 thread

Cover letter [PATCH v2 00/12] add STM32 FMC2 controller drivers

The FMC2 functional block makes the interface with: synchronous and asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped peripherals) and NAND flash memories.
Its main purposes are:
- to translate AXI transactions into the appropriate external device protocol
- to meet the access time requirements of the external devices
All external devices share the addresses, data and control signals with the controller. Each external device is accessed by means of a unique Chip Select. The FMC2 performs only one access at a time to an external device.

Changes in v2:
- use of regmap_bulk_write/regmap_bulk_read APIs
- remove ops from stm32_fmc2 structure
- add 2 APIs to manage FMC2 enable/disable
- add 2 APIs to manage FMC2 NWAIT shared signal

Christophe Kerello (12):
dt-bindings: mfd: stm32-fmc2: add STM32 FMC2 controller documentation
mfd: stm32-fmc2: add STM32 FMC2 controller driver
bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver
mtd: rawnand: stm32_fmc2: manage all errors cases at probe time
mtd: rawnand: stm32_fmc2: remove useless inline comments
mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_MS for timeouts
mtd: rawnand: stm32_fmc2: cleanup
mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macros
mtd: rawnand: stm32_fmc2: move all registers
mtd: rawnand: stm32_fmc2: use regmap APIs
mtd: rawnand: stm32_fmc2: use stm32_fmc2 structure in nfc controller
mtd: rawnand: stm32_fmc2: add new MP1 compatible string

 .../devicetree/bindings/mfd/st,stm32-fmc2.yaml     |  370 ++++++
 drivers/bus/Kconfig                                |   11 +
 drivers/bus/Makefile                               |    1 +
 drivers/bus/stm32-fmc2-ebi.c                       | 1091 +++++++++++++++++
 drivers/mfd/Kconfig                                |   12 +
 drivers/mfd/Makefile                               |    1 +
 drivers/mfd/stm32-fmc2.c                           |  136 +++
 drivers/mtd/nand/raw/Kconfig                       |    3 +
 drivers/mtd/nand/raw/stm32_fmc2_nand.c             | 1277 +++++++++-----------
 include/linux/mfd/stm32-fmc2.h                     |  225 ++++
 10 files changed, 2413 insertions(+), 714 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/st,stm32-fmc2.yaml
 create mode 100644 drivers/bus/stm32-fmc2-ebi.c
 create mode 100644 drivers/mfd/stm32-fmc2.c
 create mode 100644 include/linux/mfd/stm32-fmc2.h
Signature · 1 line
1.9.1