ramips: add support for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_lb-link_bl-w1200.dts
index b0112559de7b9fb73ba23e40a6f167ea5f467350..5368f939a2b6ea7ea104b2daccb35775c2e48eb9 100644 (file)
@@ -1,7 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
-/dts-v1/;
-
 #include "mt7620a.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -31,7 +29,7 @@
                compatible = "gpio-leds";
 
                led_wps: wps {
-                       label = "bl-w1200:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
@@ -92,7 +90,8 @@
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii2_pins &mdio_pins>;
 
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 
        };
 };
 
+&gsw {
+       mediatek,ephy-base = /bits/ 8 <12>;
+};
+
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};