ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_asus_wl-330n3g.dts
index f264446741459b93831d6621193413fef7f46328..4b9add1fda56fc57f24c755c73d86767e38a92c3 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3050.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                3g {
-                       label = "wl-330n3g:blue:3g";
+                       label = "blue:3g";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                3g2 {
-                       label = "wl-330n3g:red:3g";
+                       label = "red:3g";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "wl-330n3g:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
@@ -56,7 +54,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};