]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: meraki-mr26: set mac address for gmac0
authorRosen Penev <rosenp@gmail.com>
Mon, 21 Oct 2024 01:51:47 +0000 (18:51 -0700)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Tue, 17 Dec 2024 18:23:28 +0000 (10:23 -0800)
Currently this needs to be done in userspace.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/r/20241021015147.172700-1-rosenp@gmail.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts

index 0bf5106f7012c9f34f469f217619a63b4c35d87a..08abfdc63d18e897b0241f9ef6cf3ca751667af0 100644 (file)
@@ -59,6 +59,9 @@
 
 &gmac0 {
        status = "okay";
+
+       nvmem-cells = <&macaddr_board_config_66>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
                };
 
                partition@800000 {
+                       compatible = "linux,ubi";
                        label = "ubi";
                        reg = <0x800000 0x7780000>;
+
+                       volumes {
+                               ubi-volume-board-config {
+                                       volname = "board-config";
+
+                                       nvmem-layout {
+                                               compatible = "fixed-layout";
+                                               #address-cells = <1>;
+                                               #size-cells = <1>;
+
+                                               macaddr_board_config_66: macaddr@66 {
+                                                       reg = <0x66 0x6>;
+                                               };
+                                       };
+                               };
+                       };
                };
        };
 };