Skip to content

Commit f167292

Browse files
nehebffainelli
authored andcommitted
ARM: dts: meraki-mr26: set mac address for gmac0
Currently this needs to be done in userspace. Signed-off-by: Rosen Penev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]>
1 parent 618775c commit f167292

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959

6060
&gmac0 {
6161
status = "okay";
62+
63+
nvmem-cells = <&macaddr_board_config_66>;
64+
nvmem-cell-names = "mac-address";
6265
};
6366

6467
&gmac1 {
@@ -102,8 +105,25 @@
102105
};
103106

104107
partition@800000 {
108+
compatible = "linux,ubi";
105109
label = "ubi";
106110
reg = <0x800000 0x7780000>;
111+
112+
volumes {
113+
ubi-volume-board-config {
114+
volname = "board-config";
115+
116+
nvmem-layout {
117+
compatible = "fixed-layout";
118+
#address-cells = <1>;
119+
#size-cells = <1>;
120+
121+
macaddr_board_config_66: macaddr@66 {
122+
reg = <0x66 0x6>;
123+
};
124+
};
125+
};
126+
};
107127
};
108128
};
109129
};

0 commit comments

Comments
 (0)