diff options
Diffstat (limited to 'target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts')
-rw-r--r-- | target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts index 7d31885928..c1a41cbf70 100644 --- a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts +++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts @@ -32,7 +32,8 @@ status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy4>; - mtd-mac-address = <&eeprom 0>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; }; }; @@ -44,8 +45,9 @@ status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy8>; - mtd-mac-address = <&eeprom 0>; - mtd-mac-address-increment = <(4)>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(4)>; }; ethernet@1 { @@ -53,8 +55,19 @@ status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy9>; - mtd-mac-address = <&eeprom 0>; - mtd-mac-address-increment = <(5)>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(5)>; }; }; }; + +&eeprom { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_eeprom_0: macaddr@0 { + reg = <0x0 0x6>; + }; +}; |