ramips: add support for Sercomm CPJ routers
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_airlink101_ar670w.dts
index 9d78ca142c31f1cc65491e3d52664cda54d3b353..4c9014b7d8623f8dd82e041236ab3e2c61672fdb 100644 (file)
                        };
 
                        factory: partition@30000 {
-                               reg = <0x30000 0x10000>;
+                               compatible = "nvmem-cells";
                                label = "factory";
+                               reg = <0x30000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_2000: eeprom@2000 {
+                                       reg = <0x2000 0x200>;
+                               };
+
+                               macaddr_factory_2004: macaddr@2004 {
+                                       reg = <0x2004 0x6>;
+                               };
                        };
 
                        partition@40000 {
@@ -85,7 +96,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x2004>;
+       nvmem-cells = <&macaddr_factory_2004>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0x2000>;
+       nvmem-cells = <&eeprom_factory_2000>;
+       nvmem-cell-names = "eeprom";
 };