c70fbc398bfad5a585f45c36f77e8c7f3d436500
[openwrt/staging/ansuel.git] /
1 From c8442f0fb09ca3d842b9b23d1d0650f649fd10f8 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 28 Feb 2022 10:52:07 +0100
4 Subject: [PATCH] ARM: dts: BCM5301X: Add Ethernet MAC address to Luxul
5 XWR-3150
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Luxul XWR-3150 stores MAC as NVRAM variable. Add NVMEM cell for it and
11 reference it in the Ethernet interface node.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 8 ++++++++
17 1 file changed, 8 insertions(+)
18
19 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
20 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
21 @@ -25,6 +25,9 @@
22 nvram@1eff0000 {
23 compatible = "brcm,nvram";
24 reg = <0x1eff0000 0x10000>;
25 +
26 + et0macaddr: et0macaddr {
27 + };
28 };
29
30 leds {
31 @@ -72,6 +75,11 @@
32 };
33 };
34
35 +&gmac0 {
36 + nvmem-cells = <&et0macaddr>;
37 + nvmem-cell-names = "mac-address";
38 +};
39 +
40 &usb3 {
41 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
42 };