ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_engenius_epg600.dts
index bf4c4347deda0e02003bd005eb31b00c6a8a7773..85911a68d8ac1d722440718400f3b26a5247c670 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 = "engenius,epg600", "ralink,mt7620a-soc";
@@ -46,7 +47,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                                reg = <0x30000 0x10000>;
                        };
 
-                       factory: partition@40000 {
-                               compatible = "nvmem-cells";
+                       partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_factory_0: eeprom@0 {
-                                       reg = <0x0 0x200>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
                                };
                        };
 
-                       rf: partition@50000 {
-                               compatible = "nvmem-cells";
+                       partition@50000 {
                                label = "rf";
                                reg = <0x50000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_rf_0: eeprom@0 {
-                                       reg = <0x0 0x200>;
-                               };
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_rf_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
 
-                               macaddr_rf_4: macaddr@4 {
-                                       reg = <0x4 0x6>;
+                                       macaddr_rf_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
                                };
                        };
 
 };
 
 &pcie0 {
-       wifi@0,1,0 {
+       wifi@0,0 {
                compatible = "pci1814,3091";
-               reg = <0x0 1 0 0 0>;
+               reg = <0x0000 0 0 0 0>;
                nvmem-cells = <&eeprom_factory_0>;
                nvmem-cell-names = "eeprom";
        };