ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_dlink_dwr-118-a1.dts
index 19acb0bb3a5cf35f6565cccc2b64adb50102acd3..978de470f0a1827b783760e5565d9befef126596 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
@@ -36,7 +37,8 @@
                compatible = "gpio-leds";
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
@@ -46,7 +48,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
@@ -56,7 +59,8 @@
                };
 
                usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                                reg = <0x10000 0xfe0000>;
                        };
 
-                       config: partition@ff0000 {
+                       partition@ff0000 {
                                label = "config";
                                reg = <0xff0000 0x10000>;
                                read-only;
                                        };
 
                                        macaddr_config_e496: macaddr@e496 {
+                                               compatible = "mac-base";
                                                reg = <0xe496 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 &pcie0 {
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496>;
+               nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(2)>;
 
                led {
                        led-sources = <0>;