ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_belkin_f9k110x.dtsi
index 0b2c7602d1c6b1c041c5bace129164b4308bbbf0..a2d1906b8956eb98bcf6c914efe2993095ababac 100644 (file)
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x200>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
@@ -77,8 +91,8 @@
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &pci {
 &pci1 {
        status = "okay";
 
-       wifi@1,0 {
+       wifi@0,0 {
                compatible = "pci1814,3091";
                reg = <0x10000 0 0 0 0>;
                ralink,5ghz = <0>;
-               ralink,mtd-eeprom = <&factory 0x8000>;
+               nvmem-cells = <&eeprom_factory_8000>;
+               nvmem-cell-names = "eeprom";
        };
 };