diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts index cfd55ea221..63643927d5 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -130,7 +130,8 @@ pinctrl-names = "default"; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; - mtd-mac-address = <&rom 0xf100>; + nvmem-cells = <&macaddr_rom_f100>; + nvmem-cell-names = "mac-address"; port@5 { status = "okay"; @@ -164,7 +165,8 @@ &wmac { ralink,mtd-eeprom = <&radio 0x0>; - mtd-mac-address = <&rom 0xf100>; + nvmem-cells = <&macaddr_rom_f100>; + nvmem-cell-names = "mac-address"; }; &ehci { @@ -183,7 +185,18 @@ mt76@0,0 { reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; - mtd-mac-address = <&rom 0xf100>; + nvmem-cells = <&macaddr_rom_f100>; + nvmem-cell-names = "mac-address"; mac-address-increment = <(-1)>; }; }; + +&rom { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_rom_f100: macaddr@f100 { + reg = <0xf100 0x6>; + }; +}; |