All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
@ 2021-05-19  9:05 Emmanuel Gil Peyrot
  2021-05-19  9:05   ` Emmanuel Gil Peyrot
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Emmanuel Gil Peyrot @ 2021-05-19  9:05 UTC (permalink / raw)
  To: Srinivas Kandagatla, linuxppc-dev, devicetree
  Cc: Emmanuel Gil Peyrot, linux-kernel, Rob Herring, Paul Mackerras,
	Ash Logan, Jonathan Neuschäfer

The OTP is a read-only memory area which contains various keys and
signatures used to decrypt, encrypt or verify various pieces of storage.

Its size depends on the console, it is 128 bytes on the Wii and
1024 bytes on the Wii U (split into eight 128 bytes banks).

It can be used directly by writing into one register and reading from
the other one, without any additional synchronisation.

This series has only been tested on the Wii U so far, using the
downstream 4.19 branch from linux-wiiu[1], but it should also work on
the Wii on mainline.

[1] https://gitlab.com/linux-wiiu/linux-wiiu

Emmanuel Gil Peyrot (4):
  nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
  dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support
  powerpc: wii.dts: Expose the OTP on this platform
  powerpc: wii_defconfig: Enable OTP by default

 .../bindings/nvmem/nintendo-otp.txt           |  14 +++
 arch/powerpc/boot/dts/wii.dts                 |   5 +
 arch/powerpc/configs/wii_defconfig            |   1 +
 drivers/nvmem/Kconfig                         |  11 ++
 drivers/nvmem/Makefile                        |   2 +
 drivers/nvmem/nintendo-otp.c                  | 115 ++++++++++++++++++
 6 files changed, 148 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/nintendo-otp.txt
 create mode 100644 drivers/nvmem/nintendo-otp.c

-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
@ 2021-05-19  9:45 Emmanuel Gil Peyrot
  0 siblings, 0 replies; 10+ messages in thread
From: Emmanuel Gil Peyrot @ 2021-05-19  9:45 UTC (permalink / raw)
  To: Srinivas Kandagatla, linuxppc-dev, devicetree
  Cc: Emmanuel Gil Peyrot, linux-kernel, Rob Herring, Paul Mackerras,
	Ash Logan, Jonathan Neuschäfer

The OTP is a read-only memory area which contains various keys and
signatures used to decrypt, encrypt or verify various pieces of storage.

Its size depends on the console, it is 128 bytes on the Wii and
1024 bytes on the Wii U (split into eight 128 bytes banks).

It can be used directly by writing into one register and reading from
the other one, without any additional synchronisation.

This series has only been tested on the Wii U so far, using the
downstream 4.19 branch from linux-wiiu[1], but it should also work on
the Wii on mainline.

[1] https://gitlab.com/linux-wiiu/linux-wiiu

Emmanuel Gil Peyrot (4):
  nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
  dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support
  powerpc: wii.dts: Expose the OTP on this platform
  powerpc: wii_defconfig: Enable OTP by default

 .../bindings/nvmem/nintendo-otp.txt           |  14 +++
 arch/powerpc/boot/dts/wii.dts                 |   5 +
 arch/powerpc/configs/wii_defconfig            |   1 +
 drivers/nvmem/Kconfig                         |  11 ++
 drivers/nvmem/Makefile                        |   2 +
 drivers/nvmem/nintendo-otp.c                  | 115 ++++++++++++++++++
 6 files changed, 148 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/nintendo-otp.txt
 create mode 100644 drivers/nvmem/nintendo-otp.c

-- 
2.31.1


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

end of thread, other threads:[~2021-05-19 12:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19  9:05 [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP Emmanuel Gil Peyrot
2021-05-19  9:05 ` [PATCH 1/4] " Emmanuel Gil Peyrot
2021-05-19  9:05   ` Emmanuel Gil Peyrot
2021-05-19  9:05 ` [PATCH 2/4] dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support Emmanuel Gil Peyrot
2021-05-19  9:05   ` Emmanuel Gil Peyrot
2021-05-19  9:05 ` [PATCH 3/4] powerpc: wii.dts: Expose the OTP on this platform Emmanuel Gil Peyrot
2021-05-19  9:05   ` Emmanuel Gil Peyrot
2021-05-19  9:05 ` [PATCH 4/4] powerpc: wii_defconfig: Enable OTP by default Emmanuel Gil Peyrot
2021-05-19  9:05   ` Emmanuel Gil Peyrot
2021-05-19  9:45 [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP Emmanuel Gil Peyrot

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.