All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: wii: Add the fixed OTP layout
@ 2026-07-26 18:19 Link Mauve
  2026-07-26 18:30 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Link Mauve @ 2026-07-26 18:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Link Mauve, J. Neuschäfer, techflashYT, Ash Logan,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP), devicetree, linuxppc-dev,
	linux-kernel

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@linkmauve.fr>
---
 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



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

end of thread, other threads:[~2026-07-26 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26 18:19 [PATCH] powerpc: wii: Add the fixed OTP layout Link Mauve
2026-07-26 18:30 ` sashiko-bot

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.