ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_ralink_v22rw-2x2.dts
index cfea59066714615461b6c7300f63cb9649677666..1b5ba03feb8dcaa85e7c93ec8e22daafda172eb6 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                                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 {
                compatible = "gpio-leds";
 
                led_security: security {
-                       label = "v22rw-2x2:green:security";
+                       label = "green:security";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "v22rw-2x2:red:wps";
+                       label = "red:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &otg {