public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] arm64: dts: mediatek: mt7622: add 'serial' cell to efuse
@ 2025-09-16 23:05 Daniel Golle
  2025-09-16 23:05 ` [PATCH 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Daniel Golle @ 2025-09-16 23:05 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek

The efuse of the MediaTek MT7622 contains an 8-byte unique identifier.
Add a 'serial' cell covering those 8 bytes to the nvmem defininition of
the efuse to allow easy access from userspace, eg. to generate a
persistent random MAC address on boards like the BananaPi R64 which
doesn't have any factory-assigned addresses.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 917fa39a74f8..0b9803a183b9 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -278,6 +278,10 @@ efuse: efuse@10206000 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		serial@140 {
+			reg = <0x140 0x8>;
+		};
+
 		thermal_calibration: calib@198 {
 			reg = <0x198 0xc>;
 		};
-- 
2.51.0

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

end of thread, other threads:[~2025-09-17 11:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-16 23:05 [PATCH 1/4] arm64: dts: mediatek: mt7622: add 'serial' cell to efuse Daniel Golle
2025-09-16 23:05 ` [PATCH 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
2025-09-16 23:05 ` [PATCH 3/4] arm64: dts: mediatek: mt7981b: " Daniel Golle
2025-09-16 23:05 ` [PATCH 4/4] arm64: dts: mediatek: mt7988a: " Daniel Golle
2025-09-17  9:06 ` [PATCH 1/4] arm64: dts: mediatek: mt7622: " AngeloGioacchino Del Regno
2025-09-17 10:08   ` Daniel Golle
2025-09-17 11:53     ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox