ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_iptime_a8004t.dts
index dc9033c3940509843ec51241cb11cf732040a147..249904da6a37e6d4d809bbc7d3294dc1c2d17caa 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "iptime,a8004t", "mediatek,mt7621-soc";
@@ -20,7 +21,8 @@
                compatible = "gpio-leds";
 
                led_cpu: cpu {
-                       label = "orange:cpu";
+                       function = LED_FUNCTION_CPU;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       uboot: partition@0 {
-                               compatible = "nvmem-cells";
+                       partition@0 {
                                label = "u-boot";
                                reg = <0x0 0x20000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               macaddr_uboot_1fc20: macaddr@1fc20 {
-                                       reg = <0x1fc20 0x6>;
-                               };
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_uboot_1fc20: macaddr@1fc20 {
+                                               reg = <0x1fc20 0x6>;
+                                       };
 
-                               macaddr_uboot_1fc40: macaddr@1fc40 {
-                                       reg = <0x1fc40 0x6>;
+                                       macaddr_uboot_1fc40: macaddr@1fc40 {
+                                               reg = <0x1fc40 0x6>;
+                                       };
                                };
                        };
 
                                read-only;
                        };
 
-                       factory: partition@30000 {
-                               compatible = "nvmem-cells";
+                       partition@30000 {
                                label = "factory";
                                reg = <0x30000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_factory_0: eeprom@0 {
-                                       reg = <0x0 0x4da8>;
-                               };
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x4da8>;
+                                       };
 
-                               eeprom_factory_8000: eeprom@8000 {
-                                       reg = <0x8000 0x4da8>;
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x4da8>;
+                                       };
                                };
                        };