From: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org
Cc: "Emmanuel Gil Peyrot" <linkmauve@linkmauve.fr>,
linux-kernel@vger.kernel.org, "Rob Herring" <robh+dt@kernel.org>,
"Paul Mackerras" <paulus@samba.org>,
"Ash Logan" <ash@heyquark.com>,
"Jonathan Neuschäfer" <j.ne@posteo.net>
Subject: [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP
Date: Wed, 19 May 2021 11:45:42 +0200 [thread overview]
Message-ID: <20210519094546.3954-1-linkmauve@linkmauve.fr> (raw)
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
next reply other threads:[~2021-05-19 12:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 9:45 Emmanuel Gil Peyrot [this message]
2021-05-19 9:45 ` [PATCH 1/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP Emmanuel Gil Peyrot
2021-05-19 9:45 ` [PATCH 2/4] dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support Emmanuel Gil Peyrot
2021-05-19 9:45 ` [PATCH 3/4] powerpc: wii.dts: Expose the OTP on this platform Emmanuel Gil Peyrot
2021-05-19 9:45 ` [PATCH 4/4] powerpc: wii_defconfig: Enable OTP by default Emmanuel Gil Peyrot
-- strict thread matches above, loose matches on Subject: below --
2021-05-19 9:05 [PATCH 0/4] nvmem: nintendo-otp: Add new driver for the Wii and Wii U OTP Emmanuel Gil Peyrot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210519094546.3954-1-linkmauve@linkmauve.fr \
--to=linkmauve@linkmauve.fr \
--cc=ash@heyquark.com \
--cc=devicetree@vger.kernel.org \
--cc=j.ne@posteo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=robh+dt@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).