diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index 91f30f8721..398a84117c 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -128,7 +128,8 @@ }; &gmac0 { - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; }; &switch0 { @@ -136,7 +137,8 @@ port@0 { status = "okay"; label = "wan"; - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; mac-address-increment = <1>; }; @@ -183,3 +185,13 @@ &xhci { status = "disabled"; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; +}; |