mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
9ac80a47ea
Tested on Luxul XWR-3150 (boot, NAND, PCIe, switch, Ethernet). Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From c8442f0fb09ca3d842b9b23d1d0650f649fd10f8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
Date: Mon, 28 Feb 2022 10:52:07 +0100
|
|
Subject: [PATCH] ARM: dts: BCM5301X: Add Ethernet MAC address to Luxul
|
|
XWR-3150
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Luxul XWR-3150 stores MAC as NVRAM variable. Add NVMEM cell for it and
|
|
reference it in the Ethernet interface node.
|
|
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
---
|
|
arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
|
|
+++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
|
|
@@ -25,6 +25,9 @@
|
|
nvram@1eff0000 {
|
|
compatible = "brcm,nvram";
|
|
reg = <0x1eff0000 0x10000>;
|
|
+
|
|
+ et0macaddr: et0macaddr {
|
|
+ };
|
|
};
|
|
|
|
leds {
|
|
@@ -72,6 +75,11 @@
|
|
};
|
|
};
|
|
|
|
+&gmac0 {
|
|
+ nvmem-cells = <&et0macaddr>;
|
|
+ nvmem-cell-names = "mac-address";
|
|
+};
|
|
+
|
|
&usb3 {
|
|
vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
|
|
};
|