--- /dev/null
+From a9e79863b62aaaefcdf469fc331bf482ae00db0d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Fri, 1 Sep 2023 14:43:11 +0200
+Subject: [PATCH] ARM: dts: BCM5301X: Set MAC address for Asus RT-AC87U
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Specify NVRAM access and use its "et1macaddr" NVMEM cell.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Link: https://lore.kernel.org/r/20230901124311.31156-1-zajec5@gmail.com
+Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
+---
+ arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+--- a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
++++ b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
+@@ -25,6 +25,12 @@
+ <0x88000000 0x08000000>;
+ };
+
++ nvram@1c080000 {
++ et1macaddr: et1macaddr {
++ #nvmem-cell-cells = <1>;
++ };
++ };
++
+ leds {
+ compatible = "gpio-leds";
+
+@@ -62,6 +68,11 @@
+ };
+ };
+
++&gmac0 {
++ nvmem-cells = <&et1macaddr 0>;
++ nvmem-cell-names = "mac-address";
++};
++
+ &usb3_phy {
+ status = "okay";
+ };