11ce7acb5361b55c0704fd3292f75f14727be155
[openwrt/staging/neocturne.git] /
1 From a9e79863b62aaaefcdf469fc331bf482ae00db0d Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 1 Sep 2023 14:43:11 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Set MAC address for Asus RT-AC87U
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Specify NVRAM access and use its "et1macaddr" NVMEM cell.
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Link: https://lore.kernel.org/r/20230901124311.31156-1-zajec5@gmail.com
13 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
14 ---
15 arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts | 11 +++++++++++
16 1 file changed, 11 insertions(+)
17
18 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
19 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
20 @@ -25,6 +25,12 @@
21 <0x88000000 0x08000000>;
22 };
23
24 + nvram@1c080000 {
25 + et1macaddr: et1macaddr {
26 + #nvmem-cell-cells = <1>;
27 + };
28 + };
29 +
30 leds {
31 compatible = "gpio-leds";
32
33 @@ -62,6 +68,11 @@
34 };
35 };
36
37 +&gmac0 {
38 + nvmem-cells = <&et1macaddr 0>;
39 + nvmem-cell-names = "mac-address";
40 +};
41 +
42 &usb3_phy {
43 status = "okay";
44 };