ramips: add missing syscon compatible strings for MT7688 and RT3052
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_upvel_ur-326n4g.dts
index 211db1cbaba395cebee1a9e85fc2b034c45a4c1e..8104bf60538771870cc418cb6379371a2c828906 100644 (file)
                                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>;
+                                       };
+
+                                       macaddr_factory_4004: macaddr@4004 {
+                                               reg = <0x4004 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &otg {
        status = "okay";
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_4004: macaddr@4004 {
-               reg = <0x4004 0x6>;
-       };
-};