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

index 366203a72d6d20f754e18eb985eda009c413ce79..93c9f8c3f223ea4e1bc3bf9230415c01d1b24941 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
 
+                       soc-uuid@140 {
+                               reg = <0x140 0x10>;
+                       };
+
                        lvts_calibration: calib@918 {
                                reg = <0x918 0x28>;
                        };