linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] memory: add Atmel EBI (External Bus Interface) driver
@ 2016-04-27 14:35 Boris Brezillon
  2016-04-27 14:35 ` [PATCH v6 1/2] " Boris Brezillon
  2016-04-27 14:35 ` [PATCH v6 2/2] memory: atmel-ebi: add DT bindings documentation Boris Brezillon
  0 siblings, 2 replies; 15+ messages in thread
From: Boris Brezillon @ 2016-04-27 14:35 UTC (permalink / raw)
  To: Nicolas Ferre, Jean-Christophe Plagniol-Villard,
	Alexandre Belloni, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, devicetree
  Cc: linux-arm-kernel, linux-kernel, Arnd Bergmann,
	Jean-Jacques Hiblot, Boris Brezillon

The EBI (External Bus Interface) is used to access external peripherals
(NOR, SRAM, NAND, and other specific devices like ethernet controllers).
Each device is assigned a CS line and an address range and can have its
own configuration (timings, access mode, bus width, ...).
This driver provides a generic DT binding to configure a device according
to its requirements.
For specific device controllers (like the NAND one) the SMC timings
should be configured by the controller driver through the matrix and
smc syscon regmaps (or maybe we should provide an API for that?).

Changes since v5:
- remove the "atmel,specialized-logic" property: now all devices are
  are attached to the SMC logic by default, and specialized drivers
  (like the NAND controller one), should change this configuration
  manually.
- provide hardware readout to allow partial config description.
  This is mainly here to keep existing platforms (where everything
  is configured by the bootloader/bootstrap) in working state.
- rename "atmel,tdf-optimized" into "atmel,tdf-mode" and switch from
  a boolean to string property to properly support partial config

Changes since v4:
- fix inconsistencies in SMC and MATRIX registers definition
- add missing compatible strings for at91sam9rl SoC
- fix DT bindings documentation
- replace "atmel,generic-dev" property by "atmel,specialized-logic"

Changes since v3:
- added AT91_MATRIX_USBPUCR_PUON definition
- removed useless macros (those directly returning SoC specific register
  offsets)
- use syscon_regmap_lookup_by_phandle instead of of_parse_phandle +
  syscon_node_to_regmap
- drop AT91_EBICSA_REGFIELD and AT91_MULTI_EBICSA_REGFIELD macros

Changes since v2:
- minor fixes int DT bindings doc
- fix SMC macros
- make use of SMC macros defined in include/linux/mfd/syscon/atmel-smc.h

Changes since v1:
- almost everything :-)

Boris Brezillon (2):
  memory: add Atmel EBI (External Bus Interface) driver
  memory: atmel-ebi: add DT bindings documentation

 .../bindings/memory-controllers/atmel,ebi.txt      | 146 +++++
 drivers/memory/Kconfig                             |  11 +
 drivers/memory/Makefile                            |   1 +
 drivers/memory/atmel-ebi.c                         | 662 +++++++++++++++++++++
 4 files changed, 820 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt
 create mode 100644 drivers/memory/atmel-ebi.c

-- 
2.7.4

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

end of thread, other threads:[~2016-04-28 13:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 14:35 [PATCH v6 0/2] memory: add Atmel EBI (External Bus Interface) driver Boris Brezillon
2016-04-27 14:35 ` [PATCH v6 1/2] " Boris Brezillon
2016-04-28  8:47   ` Jean-Jacques Hiblot
2016-04-28  8:57     ` Boris Brezillon
2016-04-27 14:35 ` [PATCH v6 2/2] memory: atmel-ebi: add DT bindings documentation Boris Brezillon
2016-04-27 15:07   ` Mark Rutland
2016-04-27 15:37     ` Boris Brezillon
2016-04-28  6:44     ` Boris Brezillon
2016-04-28  9:29       ` Mark Rutland
2016-04-28  8:32   ` Jean-Jacques Hiblot
2016-04-28  8:49     ` Boris Brezillon
2016-04-28 12:18       ` Jean-Jacques Hiblot
2016-04-28 12:46         ` Boris Brezillon
2016-04-28 12:54           ` Jean-Jacques Hiblot
2016-04-28 13:17             ` Boris Brezillon

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).