ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1167ghbk2-s.dts
index 3a6eb7cec8758ab7af084d3eda9f2e9e4c38b609..c43f0ad198e949e5667b437bf9394a480f26fb20 100644 (file)
@@ -26,6 +26,7 @@
                wlan2g {
                        label = "wrc-1167ghbk2-s:white:wlan2g";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0radio";
                };
 
                wlan5g {
@@ -55,8 +56,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "i2c", "uart3", "jtag", "wdt";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               ralink,group = "i2c", "uart3", "jtag", "wdt";
+               ralink,function = "gpio";
        };
 };
 
 &pcie {
        status = "okay";
-       /*
-        * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
-        * but it's not supported in OpenWrt.
-        */
+};
+
+&pcie0 {
+       wifi@0,0 {
+               compatible = "mediatek,mt76";
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x0>;
+               mtd-mac-address = <&factory 0xe000>;
+               mtd-mac-address-increment = <1>;
+       };
 };
 
 &xhci {