ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_dlink_dwr-512-b.dts
index e467c826884bdf0a10465c1ddf598414ec00d344..56efcde9f5cd5accf2c92a4091151b9f00787bcd 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
 #include "rt5350.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
                compatible = "gpio-leds";
 
                sms {
-                       label = "dwr-512-b:green:sms";
+                       label = "green:sms";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
                led_status: status {
-                       label = "dwr-512-b:green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
                2g {
-                       label = "dwr-512-b:green:2g";
+                       label = "green:2g";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
                3g {
-                       label = "dwr-512-b:green:3g";
+                       label = "green:3g";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
                sstrengthr {
-                       label = "dwr-512-b:red:sigstrength";
+                       label = "red:sigstrength";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
                sstrengthg {
-                       label = "dwr-512-b:green:sigstrength";
+                       label = "green:sigstrength";
                        gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
        };
                                reg = <0x10000 0x7e0000>;
                        };
 
-                       config: partition@7f0000 {
+                       partition@7f0000 {
                                label = "config";
                                reg = <0x7f0000 0x10000>;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_config_e07e: macaddr@e07e {
+                                               reg = <0xe07e 0x6>;
+                                       };
+
+                                       eeprom_config_e08a: eeprom@e08a {
+                                               reg = <0xe08a 0x200>;
+                                       };
+                               };
                        };
                };
        };
        spidev@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "siliconlabs,si3210";
+               compatible = "silabs,si3210";
 
                reg = <0>;
                spi-max-frequency = <1000000>;
 };
 
 &ethernet {
-       mtd-mac-address = <&config 0xe07e>;
+       nvmem-cells = <&macaddr_config_e07e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&config 0xe08a>;
        ralink,led-polarity = <1>;
-       mtd-mac-address = <&config 0xe07e>;
+       nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };