ramips: convert MT7610 and MT7612 EEPROM to NVMEM format for MT7621
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_dlink_dir-300-b1.dts
index b6ada35495e769a75618027cec7741e017aea72a..e1397d92f919211cf6278ddb56419694e77b4331 100644 (file)
                compatible = "gpio-leds";
 
                status {
-                       label = "dir-300-b1:amber:status";
+                       label = "amber:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                led_status_green: status2 {
-                       label = "dir-300-b1:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "dir-300-b1:amber:wan";
+                       label = "amber:wan";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
-                       label = "dir-300-b1:green:wan";
+                       label = "green:wan";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "dir-300-b1:blue:wps";
+                       label = "blue:wps";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x4004>;
+       nvmem-cells = <&macaddr_devdata_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devdata 0x4000>;
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};