Commit 477ffdbd authored by Christian Lamparter's avatar Christian Lamparter Committed by Florian Fainelli
Browse files

ARM: BCM53016: MR32: get mac-address from nvmem



The MAC-Address of the MR32's sole ethernet port is
located in offset 0x66 of the attached AT24C64 eeprom.

Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 6abc4ca5
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -110,6 +110,12 @@ eeprom: eeprom@50 {
			reg = <0x50>;
			pagesize = <32>;
			read-only;
			#address-cells = <1>;
			#size-cells = <1>;

			mac_address: mac-address@66 {
				reg = <0x66 0x6>;
			};
		};
	};
};
@@ -133,6 +139,11 @@ &uart2 {
	 */
};

&gmac0 {
	nvmem-cell-names = "mac-address";
	nvmem-cells = <&mac_address>;
};

&gmac1 {
	status = "disabled";
};