ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_comfast_cf-ew72-v2.dts
index b3a823b1f0850d511014173379bf15e3d52924d4..788684163ba277ec369aed5713778def0df8f83a 100644 (file)
@@ -70,7 +70,8 @@
                };
 
                wlan_blue {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
        };
                                read-only;
                        };
                        
-                       factory: partition@40000  {
+                       partition@40000  {
                                label = "factory";
-                               compatible = "nvmem-cells";
                                reg = <0x40000 0x10000>;
                                read-only;
 
                                                reg = <0x0 0x400>;
                                        };
 
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x4da8>;
+                                       };
+
                                        macaddr_factory_e000: macaddr@e000 {
                                                compatible = "mac-base";
                                                reg = <0xe000 0x6>;
        wifi_5_0_ghz: wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x8000>;
+               nvmem-cells = <&eeprom_factory_8000>;
+               nvmem-cell-names = "eeprom";
                // Wi-Fi device reads it's MAC address from EEPROM, (&factory + 0x8000 + 4)
                // adding anything related to mac-address here will cause use random MAC.
        };