ramips: convert MT7628 EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.dts
index faf1fe222e9c4eef6f1682a3eb6adec46d81ddc2..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 {
                compatible = "gpio-leds";
 
                internet {
-                       label = "f5d8235-v2:blue:internet";
+                       label = "blue:internet";
                        gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                };
 
                internet2 {
-                       label = "f5d8235-v2:amber:internet";
+                       label = "amber:internet";
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
                modem {
-                       label = "f5d8235-v2:blue:modem";
+                       label = "blue:modem";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                modem2 {
-                       label = "f5d8235-v2:amber:modem";
+                       label = "amber:modem";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                led_router: router {
-                       label = "f5d8235-v2:blue:router";
+                       label = "blue:router";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                storage {
-                       label = "f5d8235-v2:blue:storage";
+                       label = "blue:storage";
                        gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&otg_port1>;
                        linux,default-trigger = "usbport";
                };
 
                storage2 {
-                       label = "f5d8235-v2:amber:storage";
+                       label = "amber:storage";
                        gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
 
                security {
-                       label = "f5d8235-v2:blue:security";
+                       label = "blue:security";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                security2 {
-                       label = "f5d8235-v2:amber:security";
+                       label = "amber:security";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x40004>;
+       nvmem-cells = <&macaddr_uboot_40004>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
 };
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&uboot 0x40000>;
+       nvmem-cells = <&eeprom_uboot_40000>;
+       nvmem-cell-names = "eeprom";
 };
 
 &otg {