]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt7622: add 'soc-uuid' cell to efuse
authorDaniel Golle <daniel@makrotopia.org>
Sat, 20 Sep 2025 11:56:42 +0000 (12:56 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 13 Oct 2025 09:34:37 +0000 (11:34 +0200)
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>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7622.dtsi

index 917fa39a74f8d7f3d07cb71b7f0533c0777b5583..158bd9a305d7084e062289198c79250e3f77d262 100644 (file)
                #address-cells = <1>;
                #size-cells = <1>;
 
+               soc-uuid@140 {
+                       reg = <0x140 0x8>;
+               };
+
                thermal_calibration: calib@198 {
                        reg = <0x198 0xc>;
                };