stdin

Home   »   stdin

diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/snic10e.dts b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/snic10e.dts
index 08f7f6ef44d..837f9a2f365 100644
--- a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/snic10e.dts
+++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/snic10e.dts
@@ -74,10 +74,17 @@
 				compatible = "atmel,24c01";
 				reg = <0x50>;
 			};
-			[email protected] {
+			tlv_eeprom: [email protected] {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
 				compatible = "atmel,24c256";
 				reg = <0x53>;
 				pagesize = <64>;
+
+				macaddr_eeprom: [email protected] {
+					reg = <0x3c 0x6>;
+				};
 			};
 		};
 
@@ -642,7 +649,8 @@
 				[email protected] {
 					compatible = "cavium,octeon-3860-pip-port";
 					reg = <0x0>; /* Port */
-					local-mac-address = [ 00 00 00 00 00 00 ];
+					nvmem-cells = <&macaddr_eeprom>;
+					nvmem-cell-names = "mac-address";
 					phy-handle = <&phy0>;
 				};
 			};
@@ -655,7 +663,9 @@
 				[email protected] {
 					compatible = "cavium,octeon-3860-pip-port";
 					reg = <0x0>; /* Port */
-					local-mac-address = [ 00 00 00 00 00 00 ];
+					nvmem-cells = <&macaddr_eeprom>;
+					nvmem-cell-names = "mac-address";
+					mac-address-increment = <(1)>;
 					phy-handle = <&phy1>;
 				};
 			};

Leave a Reply

Your email address will not be published. Required fields are marked *