diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_zyxel_nr7101.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_zyxel_nr7101.dts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts b/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts index ef3306caa7..2a0bc6f8fd 100644 --- a/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts +++ b/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts @@ -144,7 +144,8 @@ }; &gmac0 { - mtd-mac-address = <&factory 0xe000>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; }; &switch0 { @@ -162,3 +163,13 @@ function = "gpio"; }; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_e000: macaddr@e000 { + reg = <0xe000 0x6>; + }; +}; |