ramips: add support for Sercomm CPJ routers
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_belkin_f9k110x.dtsi
index f1c9a1d52f21a9c451cce20a0b99a3573133eb1e..22b6ee40a949907a00001f44ee60727dfca3cc1d 100644 (file)
        };
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &spi0 {
        status = "okay";
 
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "factory";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               eeprom_factory_8000: eeprom@8000 {
+                                       reg = <0x8000 0x200>;
+                               };
                        };
 
                        partition@50000 {
@@ -81,8 +88,8 @@
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &pci {
                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";
        };
 };