octeon: convert mtd-mac-address to nvmem implementation
[openwrt/staging/jow.git] / target / linux / octeon / files / arch / mips / boot / dts / cavium-octeon / cn7130_ubnt_edgerouter-4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "cn7130_ubnt_edgerouter-e300.dtsi"
4
5 / {
6 compatible = "ubnt,edgerouter-4", "cavium,cn7130";
7 model = "Ubiquiti EdgeRouter 4";
8 };
9
10 &pip {
11 interface@0 {
12 ethernet@0 {
13 label = "lan3";
14 status = "okay";
15 phy-mode = "sgmii";
16 phy-handle = <&phy4>;
17 nvmem-cells = <&macaddr_eeprom_0>;
18 nvmem-cell-names = "mac-address";
19 };
20 };
21 };
22
23 &eeprom {
24 compatible = "nvmem-cells";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 macaddr_eeprom_0: macaddr@0 {
29 reg = <0x0 0x6>;
30 };
31 };