ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_zbtlink_zbt-wr8305rt.dts
index 78269ca78426c44c8ab3e868a0df12801fbf6460..2ac2415736f42271f22ec79620a1ad6d1bf8078e 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7620n.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                led_sys: sys {
-                       label = "zbt-wr8305rt:green:sys";
+                       label = "green:sys";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "zbt-wr8305rt:green:usb";
+                       label = "green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wifi {
-                       label = "zbt-wr8305rt:green:wifi";
+                       label = "green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
@@ -59,7 +57,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 &ethernet {
        pinctrl-names = "default";
        pinctrl-0 = <&ephy_pins>;
-       mtd-mac-address = <&factory 0x4>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+
        mediatek,portmap = "llllw";
 };
 
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};