ramips: rework network settings for HC5861
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HC5861.dts
index 371f8db217e111c50352fba6cc225119b6a445d5..76b2ce1088d5cdcfea355b516fd980910a307edf 100644 (file)
@@ -13,7 +13,7 @@
                led-upgrade = &led_system;
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                led_system: system {
        };
 };
 
+&ehci {
+       status = "okay";
+};
+
+&ohci {
+       status = "okay";
+};
+
 &ethernet {
        status = "okay";
        mtd-mac-address = <&factory 0x4>;
        pinctrl-names = "default";
-       pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
+       pinctrl-0 = <&rgmii1_pins &mdio_pins>;
        mediatek,portmap = "wllll";
 
-       port@4 {
-               status = "okay";
-               phy-handle = <&phy4>;
-               phy-mode = "rgmii";
-       };
-
        port@5 {
                status = "okay";
                phy-handle = <&phy5>;
        mdio-bus {
                status = "okay";
 
-               phy4: ethernet-phy@4 {
-                       reg = <4>;
-                       phy-mode = "rgmii";
-               };
-
                phy5: ethernet-phy@5 {
                        reg = <5>;
                        phy-mode = "rgmii";
        };
 };
 
-&gsw {
-       mediatek,port4 = "gmac";
+&pcie {
+       status = "okay";
+};
+
+&pcie0 {
+       wifi@0,0 {
+               compatible = "pci14c3,7662";
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x8000>;
+               ieee80211-freq-limit = <5000000 6000000>;
+       };
+};
+
+&state_default {
+       gpio {
+               ralink,group = "uartf", "wled", "rgmii2", "ephy";
+               ralink,function = "gpio";
+       };
 };