4c0858be0a71c528ce26926ae9be4fbb52d9ae62
[openwrt/staging/xback.git] /
1 From 7f7f8c7b9f3cbae1355fb3b0ce4ea9d6f1552521 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
3 Date: Fri, 1 Apr 2022 13:20:01 +0300
4 Subject: [PATCH] ARM: dts: BCM5301X: Retrieve gmac1 MAC address from NVRAM on
5 Asus RT-AC88U
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The et1macaddr NVRAM variable contains a MAC address for gmac1 on Asus
11 RT-AC88U. Add NVMEM cell for it and reference it in the gmac1 node.
12
13 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
14 Acked-by: Rafał Miłecki <rafal@milecki.pl>
15 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16 ---
17 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 8 ++++++++
18 1 file changed, 8 insertions(+)
19
20 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
21 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
22 @@ -25,6 +25,9 @@
23 nvram@1c080000 {
24 compatible = "brcm,nvram";
25 reg = <0x1c080000 0x00180000>;
26 +
27 + et1macaddr: et1macaddr {
28 + };
29 };
30
31 leds {
32 @@ -239,6 +242,11 @@
33 };
34 };
35
36 +&gmac1 {
37 + nvmem-cells = <&et1macaddr>;
38 + nvmem-cell-names = "mac-address";
39 +};
40 +
41 &usb2 {
42 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
43 };