ARM: dts: BCM5301X: Add Ethernet MAC address to Luxul XWR-3150
authorRafał Miłecki <rafal@milecki.pl>
Mon, 28 Feb 2022 09:52:07 +0000 (10:52 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 28 Feb 2022 21:28:32 +0000 (13:28 -0800)
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

index 24ae3c8a3e09679f1c0a0d29c9445248bb8cd4b1..9efcb24242280aae5aa97d1d251486dfd25bcd90 100644 (file)
@@ -25,6 +25,9 @@
        nvram@1eff0000 {
                compatible = "brcm,nvram";
                reg = <0x1eff0000 0x10000>;
+
+               et0macaddr: et0macaddr {
+               };
        };
 
        leds {
        };
 };
 
+&gmac0 {
+       nvmem-cells = <&et0macaddr>;
+       nvmem-cell-names = "mac-address";
+};
+
 &usb3 {
        vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };