[PATCH] powerpc: wii: Add the fixed OTP layout
From: Link Mauve
Date: Sun Jul 26 2026 - 14:19:43 EST
These 128 bytes have a known fixed layout, so we can expose those as
cells for either kernel or userspace consumption.
Signed-off-by: Link Mauve <linkmauve@xxxxxxxxxxxx>
---
arch/powerpc/boot/dts/wii.dts | 38 +++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index 473d9feb9cdb..0d1806273d43 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -233,6 +233,44 @@ control@d800100 {
otp@d8001ec {
compatible = "nintendo,hollywood-otp";
reg = <0x0d8001ec 0x8>;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ boot1_sha1@0 {
+ reg = <0x00 0x14>;
+ };
+
+ common_key@14 {
+ reg = <0x14 0x10>;
+ };
+
+ device_id@24 {
+ reg = <0x24 0x4>;
+ };
+
+ device_private_key@28 {
+ reg = <0x28 0x1c>;
+ };
+
+ nand_hmac_key@44 {
+ reg = <0x44 0x14>;
+ };
+
+ nand_key@58 {
+ reg = <0x58 0x10>;
+ };
+
+ backup_key@68 {
+ reg = <0x68 0x10>;
+ };
+
+ unknown@78 {
+ reg = <0x78 0x8>;
+ };
+ };
};
disk@d806000 {
base-commit: 9eebf259d5352b87080d67758f483583d9e763d7
--
2.55.0