ramips: cf-ew72-v2: Add support for COMFAST CF-EW72 V2
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iodata_wnpr2600g.dts
index 827e606b52b6f38465e420424b15cf2b8875f025..871327f8a70cccea4d7cc0093a0b86ee3ff96759 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "wnpr2600g:green:power";
+                       label = "green:power";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                notification {
-                       label = "wnpr2600g:green:notification";
+                       label = "green:notification";
                        gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
                };
 
                wlan2g {
-                       label = "wnpr2600g:green:wlan2g";
+                       label = "green:wlan2g";
                        gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0radio";
                };
 
                wlan5g {
-                       label = "wnpr2600g:green:wlan5g";
+                       label = "green:wlan5g";
                        gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy1radio";
                };
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan4";
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};