ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_asus_rt-n13u.dts
index 7382980887f6a8f5da66a8b2ce3325fb366b7947..cbd586232e0dc87b4cba5466b52e2ab32df27644 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -16,7 +14,7 @@
                led-upgrade = &led_power;
        };
 
-       cfi@1f000000 {
+       flash@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "rt-n13u:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
-                       label = "rt-n13u:blue:wifi";
+                       label = "blue:wifi";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
@@ -93,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};