devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse
@ 2025-09-20 11:56 Daniel Golle
  2025-09-20 11:56 ` [PATCH v2 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel Golle @ 2025-09-20 11:56 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 'soc-uuid' 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.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
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..158bd9a305d7 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>;
 
+		soc-uuid@140 {
+			reg = <0x140 0x8>;
+		};
+
 		thermal_calibration: calib@198 {
 			reg = <0x198 0xc>;
 		};
-- 
2.51.0

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

* [PATCH v2 2/4] arm64: dts: mediatek: mt7986a: add 'soc-uuid' cell to efuse
  2025-09-20 11:56 [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse Daniel Golle
@ 2025-09-20 11:56 ` Daniel Golle
  2025-09-20 11:56 ` [PATCH v2 3/4] arm64: dts: mediatek: mt7981b: " Daniel Golle
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Golle @ 2025-09-20 11:56 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 MT7986 contains an 8-byte unique identifier.
Add a 'soc-uuid' 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 R3 which
doesn't have any factory-assigned addresses.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index a8972330a7b8..7790601586cc 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -450,6 +450,10 @@ efuse: efuse@11d00000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
 
+			soc-uuid@140 {
+				reg = <0x140 0x8>;
+			};
+
 			thermal_calibration: calib@274 {
 				reg = <0x274 0xc>;
 			};
-- 
2.51.0

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

* [PATCH v2 3/4] arm64: dts: mediatek: mt7981b: add 'soc-uuid' cell to efuse
  2025-09-20 11:56 [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse Daniel Golle
  2025-09-20 11:56 ` [PATCH v2 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
@ 2025-09-20 11:56 ` Daniel Golle
  2025-09-20 11:57 ` [PATCH v2 4/4] arm64: dts: mediatek: mt7988a: " Daniel Golle
  2025-10-13  9:35 ` [PATCH v2 1/4] arm64: dts: mediatek: mt7622: " AngeloGioacchino Del Regno
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Golle @ 2025-09-20 11:56 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 MT7981 contains a 16-byte unique identifier.
Add a 'soc-uuid' cell covering those 16 bytes to the nvmem defininition
of the efuse to allow easy access from userspace, eg. to generate a
persistent random MAC address on boards which don't have any
factory-assigned addresses.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 277c11247c13..25c164114213 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -237,6 +237,10 @@ efuse@11f20000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
 
+			soc-uuid@140 {
+				reg = <0x140 0x10>;
+			};
+
 			thermal_calibration: thermal-calib@274 {
 				reg = <0x274 0xc>;
 			};
-- 
2.51.0

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

* [PATCH v2 4/4] arm64: dts: mediatek: mt7988a: add 'soc-uuid' cell to efuse
  2025-09-20 11:56 [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse Daniel Golle
  2025-09-20 11:56 ` [PATCH v2 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
  2025-09-20 11:56 ` [PATCH v2 3/4] arm64: dts: mediatek: mt7981b: " Daniel Golle
@ 2025-09-20 11:57 ` Daniel Golle
  2025-10-13  9:35 ` [PATCH v2 1/4] arm64: dts: mediatek: mt7622: " AngeloGioacchino Del Regno
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Golle @ 2025-09-20 11:57 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 MT7988 contains a 16-byte unique identifier.
Add a 'soc-uuid' cell covering those 16 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 R4 which
doesn't have any factory-assigned addresses.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index 366203a72d6d..93c9f8c3f223 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -714,6 +714,10 @@ efuse@11f50000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
 
+			soc-uuid@140 {
+				reg = <0x140 0x10>;
+			};
+
 			lvts_calibration: calib@918 {
 				reg = <0x918 0x28>;
 			};
-- 
2.51.0

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

* Re: [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse
  2025-09-20 11:56 [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse Daniel Golle
                   ` (2 preceding siblings ...)
  2025-09-20 11:57 ` [PATCH v2 4/4] arm64: dts: mediatek: mt7988a: " Daniel Golle
@ 2025-10-13  9:35 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-10-13  9:35 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	Daniel Golle

On Sat, 20 Sep 2025 12:56:42 +0100, Daniel Golle wrote:
> The efuse of the MediaTek MT7622 contains an 8-byte unique identifier.
> Add a 'soc-uuid' 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.
> 
> 
> [...]

Applied to v6.18-next/dts64, thanks!

[1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse
      commit: 79fb9654a2eeea8e973f6d329ccf68221703ec59
[2/4] arm64: dts: mediatek: mt7986a: add 'soc-uuid' cell to efuse
      commit: 18d0f98a17757c4030c0af046dfd864c8108738a
[3/4] arm64: dts: mediatek: mt7981b: add 'soc-uuid' cell to efuse
      commit: d261557f7ad37fad44e3c07e76e63a60abcf8bc3
[4/4] arm64: dts: mediatek: mt7988a: add 'soc-uuid' cell to efuse
      commit: 6bb220964d608b133a81ac2ff15177a32617ac77

Cheers,
Angelo



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

end of thread, other threads:[~2025-10-13  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-20 11:56 [PATCH v2 1/4] arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse Daniel Golle
2025-09-20 11:56 ` [PATCH v2 2/4] arm64: dts: mediatek: mt7986a: " Daniel Golle
2025-09-20 11:56 ` [PATCH v2 3/4] arm64: dts: mediatek: mt7981b: " Daniel Golle
2025-09-20 11:57 ` [PATCH v2 4/4] arm64: dts: mediatek: mt7988a: " Daniel Golle
2025-10-13  9:35 ` [PATCH v2 1/4] arm64: dts: mediatek: mt7622: " 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;
as well as URLs for NNTP newsgroup(s).