ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.dts
index 444a5af4f53fef0a4c4b6630e59c6edce3943b0f..55eba3bc0a590d71af1c7aab993343b6102486cc 100644 (file)
                        #size-cells = <1>;
 
                        uboot: partition@0 {
+                               compatible = "nvmem-cells";
                                label = "uboot";
                                reg = <0x0 0x50000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_uboot_40000: eeprom@40000 {
+                                       reg = <0x40000 0x200>;
+                               };
+
+                               macaddr_uboot_40004: macaddr@40004 {
+                                       reg = <0x40004 0x6>;
+                               };
                        };
 
                        partition@50000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&uboot 0x40000>;
+       nvmem-cells = <&eeprom_uboot_40000>;
+       nvmem-cell-names = "eeprom";
 };
 
 &otg {
        status = "okay";
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_40004: macaddr@40004 {
-               reg = <0x40004 0x6>;
-       };
-};