ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3052_asiarf_awapn2403.dts
index 313d866a7328b949606ff3f28d374a541ccf1d47..49965d4e5e8fb8e4b26cd42b7f47f4dfc548232f 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -20,7 +18,7 @@
                compatible = "gpio-leds";
 
                led_wps: wps {
-                       label = "awapn2403:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
@@ -89,5 +97,6 @@
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };