From: Ozgur Can Leonard Date: Fri, 2 Aug 2019 18:55:41 +0000 (+0300) Subject: ramips: add kmod-mt7615e to Xiaomi Mi Router 3 Pro images X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a885f7d3d00f1d2332dda355828ac22f44beef13;p=openwrt%2Fstaging%2Fxback.git ramips: add kmod-mt7615e to Xiaomi Mi Router 3 Pro images Now that the mt76/mt7615e driver is in Openwrt, might as well use it. Signed-off-by: Ozgur Can Leonard (cherry picked from commit d7c082ba4f7de97b3708d1f4a064954ffc774778) --- diff --git a/target/linux/ramips/dts/MIR3P.dts b/target/linux/ramips/dts/MIR3P.dts index cd929e5e33..ff250136f2 100644 --- a/target/linux/ramips/dts/MIR3P.dts +++ b/target/linux/ramips/dts/MIR3P.dts @@ -161,15 +161,16 @@ &pcie0 { wifi@0,0 { - compatible = "pci14c3,7615"; + compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; + ieee80211-freq-limit = <2400000 2500000>; }; }; &pcie1 { wifi@0,0 { - compatible = "pci14c3,7615"; + compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; ieee80211-freq-limit = <5000000 6000000>; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 5001a5da82..53a264f527 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -266,7 +266,8 @@ define Device/xiaomi_mir3p IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := \ - kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools + kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \ + uboot-envtools endef TARGET_DEVICES += xiaomi_mir3p