ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_asus_rt-n56u.dts
index 4f9bc9843aee9fdb6b84620255fc077bb2a8b0dd..38191d2643a0aadd33dddb1ea8db6f831d1279ed 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3883.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -16,7 +14,7 @@
                led-upgrade = &led_power;
        };
 
-       nor-flash@1c000000 {
+       flash@1c000000 {
                compatible = "cfi-flash";
                reg = <0x1c000000 0x800000>;
                bank-width = <2>;
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "rt-n56u:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "rt-n56u:blue:lan";
+                       label = "blue:lan";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "rt-n56u:blue:wan";
+                       label = "blue:wan";
                        gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "rt-n56u:blue:usb";
+                       label = "blue:usb";
                        gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 &state_default {
        gpio {
-               ralink,group = "spi", "i2c", "jtag", "uartf";
-               ralink,function = "gpio";
+               groups = "spi", "i2c", "jtag", "uartf";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 1>;
 &wmac {
        status = "okay";
        ralink,2ghz = <0>;
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
 };
 
 &ehci {
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};