X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt3883_trendnet_tew-692gr.dts;h=ee2ca91af7ff5d7b4d3a2e94aeb58a1202b5ea00;hb=443e3bd1c6e61aa39f4fc176b22ad2d75f33bcb4;hp=39fb3d1c78d4d22a4f531c891302bb6166584ded;hpb=d284e6ef0f06551bad5696f16f26e6ff27b065d4;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 39fb3d1c78..ee2ca91af7 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -40,6 +40,22 @@ reg = <0x00040000 0x00010000>; label = "factory"; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x200>; + }; + + macaddr_factory_4: macaddr@4 { + compatible = "mac-base"; + reg = <0x4 0x6>; + #nvmem-cell-cells = <1>; + }; + }; }; partition@50000 { @@ -95,7 +111,8 @@ ðernet { status = "okay"; - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4 0>; + nvmem-cell-names = "mac-address"; port@0 { phy-handle = <&phy0>; @@ -139,9 +156,7 @@ }; &wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x0>; ralink,5ghz = <0>; - mtd-mac-address = <&factory 0x4>; - mac-address-increment = <3>; + nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 3>; + nvmem-cell-names = "eeprom", "mac-address"; };