ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_dlink_dap-1350.dts
index a506b792ef64d734d6bb790ead5f28ef257cfb03..581da5acbb8b6977f21555947f1d0766ad7f1d16 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "dlink,dap-1350", "ralink,rt3052-soc";
@@ -20,7 +19,7 @@
                bootargs = "console=ttyS0,115200";
        };
 
-       cfi@1f000000 {
+       flash@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                                read-only;
                        };
 
-                       devdata: partition@30000 {
+                       partition@30000 {
                                label = "devdata";
                                reg = <0x30000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_devdata_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_devdata_2e: macaddr@2e {
+                                               reg = <0x2e 0x6>;
+                                       };
+                               };
                        };
 
                        partition@40000 {
                compatible = "gpio-leds";
 
                led_power_blue: power {
-                       label = "dap-1350:blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
-                       label = "dap-1350:red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "dap-1350:blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x2e>;
+       nvmem-cells = <&macaddr_devdata_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&devdata 0>;
+       nvmem-cells = <&eeprom_devdata_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &otg {