ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_head-weblink_hdrm200.dts
index 2c6ac0baf7f5a01ed98fbf216778f750098a845a..10c9958e0a6e5a32cfc90d2770453b0822ddf735 100644 (file)
                compatible = "gpio-leds";
 
                rssi {
-                       label = "hdrm200:red:rssi";
+                       label = "red:rssi";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
 
                led_system: system {
-                       label = "hdrm200:green:system";
+                       label = "green:system";
                        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
 
                air {
-                       label = "hdrm200:green:wifi";
+                       label = "green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &gpio1 {
        status = "okay";
 };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@4 {
                status = "okay";
        };
 };
 
+&gsw {
+       mediatek,port4-gmac;
+       mediatek,ephy-base = /bits/ 8 <8>;
+};
+
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
 &uart {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};