From cb6a8aa584a2be62aeac9b5b1573303d5615c672 Mon Sep 17 00:00:00 2001 From: Roger Pueyo Centelles Date: Wed, 24 Oct 2018 18:07:43 +0200 Subject: [PATCH] ramips: mt7620: add DIR-810L's mt7610e 5 GHz radio The 5 GHz radio of this device uses an mt7610e pci-e chip, which has been recently added support. Tested on the actual device as AP and client, TCP throughput ~90 Mbps U/D. Signed-off-by: Roger Pueyo Centelles --- target/linux/ramips/dts/DIR-810L.dts | 8 ++++++++ target/linux/ramips/image/mt7620.mk | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index b38290af53..c6d437820d 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -143,3 +143,11 @@ &wmac { ralink,mtd-eeprom = <&factory 0>; }; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index bf04a75ea1..a7aeaf130c 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -154,8 +154,9 @@ TARGET_DEVICES += dch-m225 define Device/dir-810l DTS := DIR-810L - IMAGE_SIZE := 6720k + DEVICE_PACKAGES := kmod-mt76x0e DEVICE_TITLE := D-Link DIR-810L + IMAGE_SIZE := 6720k endef TARGET_DEVICES += dir-810l