X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7621_xzwifi_creativebox-v1.dts;h=6e04f9a49346cae509323450261ee1ec9a5dc878;hb=06bb4a5018cd84dc4553e71c273e2daae2c996ab;hp=afee235ac7da00fceb6d8bb40f6a57fbafd8f872;hpb=abc17bf306acd1c5954fbba97134e891439f917c;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index afee235ac7..6e04f9a493 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -153,7 +153,8 @@ }; &gmac0 { - mtd-mac-address = <&factory 0xe000>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; }; &switch0 { @@ -181,7 +182,8 @@ port@4 { status = "okay"; label = "wan"; - mtd-mac-address = <&factory 0xe000>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; mac-address-increment = <1>; }; }; @@ -193,3 +195,13 @@ function = "gpio"; }; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_e000: macaddr@e000 { + reg = <0xe000 0x6>; + }; +};