devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] nvmem: Enable OTP access for Raspberry Pi
@ 2018-11-21 13:11 Stefan Wahren
  2018-11-21 13:11 ` [PATCH 1/5] dt-bindings: nvmem: add binding for Raspberry Pi OTP Stefan Wahren
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Stefan Wahren @ 2018-11-21 13:11 UTC (permalink / raw)
  To: Srinivas Kandagatla, Rob Herring, Mark Rutland, Florian Fainelli,
	Ray Jui, Scott Branden, Eric Anholt, Arnd Bergmann, gregkh
  Cc: Stefan Wahren, devicetree, bcm-kernel-feedback-list,
	linux-rpi-kernel, linux-arm-kernel

The VC4 firmware exposes a mailbox interface that allows the ARM core
to access only the customer part (8 cells * 32 bits) of the OTP memory.
This version brings read-only support, but could also be extended to
write support. Beside the kernelspace support this is also a limited userspace
alternative to the vendor specific "vcgencmd otp_dump".

I think this driver could be helpful for vendors, which integrate the
Raspberry Pi Compute Module in their products need to store unique data
like a serial or additional MAC address in the OTP.

Note for testers: This series needs "firmware: raspberrypi: Fix firmware calls
with large buffers" from James Hughes to work properly.

Changes since RFC:
- implement improvements suggested by Rob Herring and Eric Anholt
- extend Kconfig description
- define nvmem type and read only
- make MODULE_LICENSE match license text
- add patches to enable driver in bcm2835 and multi_v7 defconfig
- rebased on current srini/nvmem.git/for-next

Stefan Wahren (5):
  dt-bindings: nvmem: add binding for Raspberry Pi OTP
  nvmem: add driver for Raspberry Pi OTP
  ARM: dts: bcm2835-rpi: Enable OTP access for Raspberry Pi
  ARM: bcm2835_defconfig: Enable Raspberry Pi OTP driver
  ARM: multi_v7_defconfig: Enable Raspberry Pi OTP driver

 .../nvmem/raspberrypi,bcm2835-customer-otp.txt     |  22 ++++
 arch/arm/boot/dts/bcm2835-rpi.dtsi                 |   4 +
 arch/arm/configs/bcm2835_defconfig                 |   2 +
 arch/arm/configs/multi_v7_defconfig                |   1 +
 drivers/nvmem/Kconfig                              |  10 ++
 drivers/nvmem/Makefile                             |   2 +
 drivers/nvmem/raspberrypi-otp.c                    | 113 +++++++++++++++++++++
 7 files changed, 154 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/raspberrypi,bcm2835-customer-otp.txt
 create mode 100644 drivers/nvmem/raspberrypi-otp.c

-- 
2.7.4

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

end of thread, other threads:[~2018-12-28 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-21 13:11 [PATCH 0/5] nvmem: Enable OTP access for Raspberry Pi Stefan Wahren
2018-11-21 13:11 ` [PATCH 1/5] dt-bindings: nvmem: add binding for Raspberry Pi OTP Stefan Wahren
2018-12-06 23:49   ` Rob Herring
2018-12-07  8:10     ` Stefan Wahren
2018-12-28 15:46       ` Stefan Wahren
2018-11-21 13:11 ` [PATCH 2/5] nvmem: add driver " Stefan Wahren
2018-11-21 13:11 ` [PATCH 3/5] ARM: dts: bcm2835-rpi: Enable OTP access for Raspberry Pi Stefan Wahren
2018-11-21 13:11 ` [PATCH 4/5] ARM: bcm2835_defconfig: Enable Raspberry Pi OTP driver Stefan Wahren
2018-11-21 13:11 ` [PATCH 5/5] ARM: multi_v7_defconfig: " Stefan Wahren

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