ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3883_trendnet_tew-691gr.dts
index 03e504a6d19f4ee13b97fd9ca6aa1e222b6a11c9..4cd356e7a1269c08e8b90438d72039a54f74ab54 100644 (file)
                                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 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0x0>;
        ralink,5ghz = <0>;
-       mtd-mac-address = <&factory 0x4>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+       nvmem-cell-names = "eeprom", "mac-address";
+       mac-address-increment = <1>;
 };