diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts b/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts index ef0d48b8c4..6e5f5772be 100644 --- a/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts +++ b/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts @@ -109,7 +109,8 @@ }; &gmac0 { - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; }; &switch0 { @@ -117,7 +118,8 @@ wan_port: port@0 { status = "okay"; label = "wan"; - mtd-mac-address = <&factory 0x28>; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; }; port@1 { @@ -194,3 +196,17 @@ }; }; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; +}; |