All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add support for NXP LPC18xx EEPROM using nvmem
@ 2015-10-19 17:32 ` Ariel D'Alessandro
  0 siblings, 0 replies; 50+ messages in thread
From: Ariel D'Alessandro @ 2015-10-19 17:32 UTC (permalink / raw)
  To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	ezequiel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ,
	manabian-Re5JQEeQqe8AvxtiuMwx3w, galak-sgV2jX0FEOL9JmXXK+q4OQ,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, mark.rutland-5wv7dgnIgG8,
	pawel.moll-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	Ariel D'Alessandro

This patch series adds support for NXP LPC18xx EEPROM memory found in
NXP LPC185x/3x and LPC435x/3x/2x/1x devices.

This patchset is based on tag next-20151019 of the linux-next
repository. It has been successfully tested on a LPC4337 CIAA-NXP
Board.

EEPROM notes:
------------

EEPROM size is 16384 bytes and it can be entirely read and 
written/erased with 1 word (4 bytes) granularity. The last page
(128 bytes) contains the EEPROM initialization data and is not writable.

Erase/program time is less than 3ms. The EEPROM device requires a
~1500 kHz clock (min 800 kHz, max 1600 kHz) that is generated dividing
the system bus clock by the division factor, contained in the divider
register (minus 1 encoded).

Changeset:
---------
v1 -> v2:
* Moved dt-bindings to be the first patch.
* Changed compatible name from lpc1850 to lpc1857 as the former doesn't have EEPROM.
* Fix hardware description which contained SoCs models without EEPROM.
* Disabled fast_io and changed mdelay for msleep in regmap writes.
* Replaced BUG_ON() in write function for an -EINVAL return.
* Add patches for defconfig and devicetree files.

Thanks,

Ariel D'Alessandro (4):
  DT: nvmem: Add NXP LPC18xx EEPROM memory binding documentation
  nvmem: NXP LPC18xx EEPROM memory NVMEM driver
  ARM: dts: lpc18xx: add EEPROM memory node
  ARM: configs: lpc18xx: enable EEPROM NVMEM driver

 .../devicetree/bindings/nvmem/lpc1857-eeprom.txt   |  26 ++
 arch/arm/boot/dts/lpc18xx.dtsi                     |  12 +
 arch/arm/configs/lpc18xx_defconfig                 |   2 +
 drivers/nvmem/Kconfig                              |   9 +
 drivers/nvmem/Makefile                             |   2 +
 drivers/nvmem/lpc18xx_eeprom.c                     | 266 +++++++++++++++++++++
 6 files changed, 317 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
 create mode 100644 drivers/nvmem/lpc18xx_eeprom.c

-- 
2.6.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-12-03 18:39 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 17:32 [PATCH v2 0/4] Add support for NXP LPC18xx EEPROM using nvmem Ariel D'Alessandro
2015-10-19 17:32 ` Ariel D'Alessandro
     [not found] ` <1445275946-32653-1-git-send-email-ariel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-19 17:32   ` [PATCH v2 1/4] DT: nvmem: Add NXP LPC18xx EEPROM memory binding documentation Ariel D'Alessandro
2015-10-19 17:32     ` Ariel D'Alessandro
     [not found]     ` <1445275946-32653-2-git-send-email-ariel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-24 21:44       ` Joachim Eastwood
2015-10-24 21:44         ` Joachim Eastwood
     [not found]         ` <CAGhQ9VyCBTWh6qgZ__eNLqooNURsYr9ZVtDz2qCKoa0MoVgXtA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-30 12:45           ` Ariel D'Alessandro
2015-10-30 12:45             ` Ariel D'Alessandro
2015-10-27  7:49       ` Rob Herring
2015-10-27  7:49         ` Rob Herring
2015-10-19 17:32   ` [PATCH v2 2/4] nvmem: NXP LPC18xx EEPROM memory NVMEM driver Ariel D'Alessandro
2015-10-19 17:32     ` Ariel D'Alessandro
     [not found]     ` <1445275946-32653-3-git-send-email-ariel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-24 22:04       ` Joachim Eastwood
2015-10-24 22:04         ` Joachim Eastwood
     [not found]         ` <CAGhQ9Vyg6sScq7yM=7judsMPHOc5VF2zf=7LPxmbmL7wF=vvgw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-26 13:37           ` Srinivas Kandagatla
2015-10-26 13:37             ` Srinivas Kandagatla
     [not found]             ` <562E2CB1.80706-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-30 14:58               ` Ariel D'Alessandro
2015-10-30 14:58                 ` Ariel D'Alessandro
     [not found]                 ` <563385B2.90403-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-11-16 15:33                   ` Ariel D'Alessandro
2015-11-16 15:33                     ` Ariel D'Alessandro
     [not found]                     ` <5649F74A.9020706-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-11-16 15:37                       ` Srinivas Kandagatla
2015-11-16 15:37                         ` Srinivas Kandagatla
     [not found]                         ` <5649F856.9000101-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-12-03 18:39                           ` Ezequiel Garcia
2015-12-03 18:39                             ` Ezequiel Garcia
2015-10-30 14:55           ` Ariel D'Alessandro
2015-10-30 14:55             ` Ariel D'Alessandro
     [not found]             ` <563384CB.3070607-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-11-16 15:24               ` Ariel D'Alessandro
2015-11-16 15:24                 ` Ariel D'Alessandro
2015-10-26 14:23       ` Srinivas Kandagatla
2015-10-26 14:23         ` Srinivas Kandagatla
     [not found]         ` <562E377A.3040604-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-30 15:42           ` Ariel D'Alessandro
2015-10-30 15:42             ` Ariel D'Alessandro
     [not found]             ` <56338FF4.8050102-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-30 16:00               ` Ezequiel Garcia
2015-10-30 16:00                 ` Ezequiel Garcia
2015-11-03  8:20     ` Stefan Wahren
2015-11-03  8:20       ` Stefan Wahren
     [not found]       ` <56386E30.4060905-eS4NqCHxEME@public.gmane.org>
2015-11-16 15:29         ` Ariel D'Alessandro
2015-11-16 15:29           ` Ariel D'Alessandro
     [not found]           ` <5649F64B.5050407-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-11-17 10:01             ` Stefan Wahren
2015-11-17 10:01               ` Stefan Wahren
     [not found]               ` <1526033037.5264.1447754499675.JavaMail.open-xchange-h4m1HHXQYNFdfASV6gReHsgmgJlYmuWJ@public.gmane.org>
2015-11-17 19:53                 ` Ariel D'Alessandro
2015-11-17 19:53                   ` Ariel D'Alessandro
2015-10-19 17:32   ` [PATCH v2 3/4] ARM: dts: lpc18xx: add EEPROM memory node Ariel D'Alessandro
2015-10-19 17:32     ` Ariel D'Alessandro
     [not found]     ` <1445275946-32653-4-git-send-email-ariel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-24 21:42       ` Joachim Eastwood
2015-10-24 21:42         ` Joachim Eastwood
2015-10-19 17:32   ` [PATCH v2 4/4] ARM: configs: lpc18xx: enable EEPROM NVMEM driver Ariel D'Alessandro
2015-10-19 17:32     ` Ariel D'Alessandro
     [not found]     ` <1445275946-32653-5-git-send-email-ariel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2015-10-24 21:41       ` Joachim Eastwood
2015-10-24 21:41         ` Joachim Eastwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.