ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt2880_ralink_v11st-fe.dts
index 792a2e429f092d9e5dd4f385d2657a1666cf38a6..695db15a5500458a7fdd2069c702e8f3974163f0 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                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>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &ethernet {
        status = "okay";
 };
@@ -84,5 +92,6 @@
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };