From c1023c8075b0590390020d65fd077b908cefad63 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 12 Oct 2017 11:49:00 +0200 Subject: [PATCH] mt76: sync with version 878456caf60d from master Backport required DT changes from commit dabdd123c90c. Significantly improves stability and performance for MT76x2 and MT7603 Signed-off-by: Felix Fietkau --- package/kernel/mt76/Makefile | 8 ++++---- target/linux/ramips/dts/ArcherC20i.dts | 1 - target/linux/ramips/dts/ArcherC50.dts | 2 +- target/linux/ramips/dts/ArcherMR200.dts | 1 - target/linux/ramips/dts/DIR-860L-B1.dts | 4 ++-- target/linux/ramips/dts/FIREWRT.dts | 4 ++-- target/linux/ramips/dts/GL-MT750.dts | 1 - target/linux/ramips/dts/MAC1200RV2.dts | 2 +- target/linux/ramips/dts/MIWIFI-MINI.dts | 2 +- target/linux/ramips/dts/MZK-750DHP.dts | 1 - target/linux/ramips/dts/MZK-EX750NP.dts | 1 - target/linux/ramips/dts/Newifi-D1.dts | 3 +-- target/linux/ramips/dts/PBR-M1.dts | 3 +-- target/linux/ramips/dts/PSG1208.dts | 2 +- target/linux/ramips/dts/PSG1218.dts | 2 +- target/linux/ramips/dts/RE6500.dts | 4 ++-- target/linux/ramips/dts/SAP-G3200U3.dts | 4 ++-- target/linux/ramips/dts/SK-WB8.dts | 3 +-- target/linux/ramips/dts/W2914NSV2.dtsi | 11 +++++------ target/linux/ramips/dts/WF-2881.dts | 4 ++-- target/linux/ramips/dts/WHR-1166D.dts | 2 +- target/linux/ramips/dts/WITI.dts | 4 ++-- target/linux/ramips/dts/WL-WN575A3.dts | 2 +- target/linux/ramips/dts/WNDR3700V5.dts | 3 +-- target/linux/ramips/dts/WSR-1166.dts | 3 +-- target/linux/ramips/dts/WSR-600.dts | 1 - target/linux/ramips/dts/Y1.dtsi | 2 +- target/linux/ramips/dts/ZBT-APE522II.dts | 2 +- target/linux/ramips/dts/ZBT-WG2626.dts | 4 ++-- target/linux/ramips/dts/ZBT-WG3526.dtsi | 3 +-- target/linux/ramips/dts/mt7628an.dtsi | 1 - 31 files changed, 38 insertions(+), 52 deletions(-) diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile index 8a6e414e10..06b9eb07f3 100644 --- a/package/kernel/mt76/Makefile +++ b/package/kernel/mt76/Makefile @@ -1,16 +1,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mt76 -PKG_RELEASE=2 +PKG_RELEASE=1 PKG_LICENSE:=GPLv2 PKG_LICENSE_FILES:= PKG_SOURCE_URL:=https://github.com/openwrt/mt76 PKG_SOURCE_PROTO:=git -PKG_SOURCE_DATE:=2017-01-31 -PKG_SOURCE_VERSION:=3c8caafc5e150db79f714b958a51cee8f242f309 -PKG_MIRROR_HASH:=c03c166466cb7ea825e52cd085511045e3847d927ba2bde2b8fb46595a3ed13a +PKG_SOURCE_DATE:=2017-10-12 +PKG_SOURCE_VERSION:=1be430fc8ae486e61f51f76925b30d6ff64c37dd +PKG_MIRROR_HASH:=992e3d86d493b976ec23fb4f1179a72c3e34199c6ec5a93f37069555c9b19d9c PKG_MAINTAINER:=Felix Fietkau PKG_BUILD_PARALLEL:=1 diff --git a/target/linux/ramips/dts/ArcherC20i.dts b/target/linux/ramips/dts/ArcherC20i.dts index b1001bfaab..5d0fc308c3 100644 --- a/target/linux/ramips/dts/ArcherC20i.dts +++ b/target/linux/ramips/dts/ArcherC20i.dts @@ -147,7 +147,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&radio 32768>; - mediatek,2ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts index 465260b561..c581787166 100644 --- a/target/linux/ramips/dts/ArcherC50.dts +++ b/target/linux/ramips/dts/ArcherC50.dts @@ -181,7 +181,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&radio 32768>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&rom 0xf100>; mtd-mac-address-increment = <(-1)>; }; diff --git a/target/linux/ramips/dts/ArcherMR200.dts b/target/linux/ramips/dts/ArcherMR200.dts index bbbf0af388..f41014bbf6 100644 --- a/target/linux/ramips/dts/ArcherMR200.dts +++ b/target/linux/ramips/dts/ArcherMR200.dts @@ -188,7 +188,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&radio 32768>; - mediatek,2ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts index 98c9d8a0bb..cc6c32b146 100644 --- a/target/linux/ramips/dts/DIR-860L-B1.dts +++ b/target/linux/ramips/dts/DIR-860L-B1.dts @@ -116,7 +116,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&radio 0x2000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -125,7 +125,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&radio 0>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index 1871de99be..c1509ccc55 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -93,7 +93,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -102,7 +102,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts index 8bf96c7d35..ad1e3f9173 100644 --- a/target/linux/ramips/dts/GL-MT750.dts +++ b/target/linux/ramips/dts/GL-MT750.dts @@ -143,7 +143,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/MAC1200RV2.dts b/target/linux/ramips/dts/MAC1200RV2.dts index 45c26e1e80..73ba493c5d 100644 --- a/target/linux/ramips/dts/MAC1200RV2.dts +++ b/target/linux/ramips/dts/MAC1200RV2.dts @@ -87,7 +87,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&art 0x1000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts index 101ae8d844..45e1f2ef5f 100644 --- a/target/linux/ramips/dts/MIWIFI-MINI.dts +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts @@ -134,7 +134,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts index 4107c6faac..dfefb0e320 100644 --- a/target/linux/ramips/dts/MZK-750DHP.dts +++ b/target/linux/ramips/dts/MZK-750DHP.dts @@ -122,7 +122,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/MZK-EX750NP.dts b/target/linux/ramips/dts/MZK-EX750NP.dts index 3aa2a57dfb..29a11898e8 100644 --- a/target/linux/ramips/dts/MZK-EX750NP.dts +++ b/target/linux/ramips/dts/MZK-EX750NP.dts @@ -143,7 +143,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 2d128ac6d2..89bc8515a6 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -117,7 +117,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -126,7 +126,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts index 9a0c713daa..7baf07499b 100644 --- a/target/linux/ramips/dts/PBR-M1.dts +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -149,7 +149,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -158,7 +158,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/PSG1208.dts b/target/linux/ramips/dts/PSG1208.dts index 6ae56f2d70..6680f5df2a 100644 --- a/target/linux/ramips/dts/PSG1208.dts +++ b/target/linux/ramips/dts/PSG1208.dts @@ -103,7 +103,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/PSG1218.dts b/target/linux/ramips/dts/PSG1218.dts index 5e90d1bf1c..1e53dcef3d 100644 --- a/target/linux/ramips/dts/PSG1218.dts +++ b/target/linux/ramips/dts/PSG1218.dts @@ -109,7 +109,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/RE6500.dts b/target/linux/ramips/dts/RE6500.dts index 3fe875db12..07439fa573 100644 --- a/target/linux/ramips/dts/RE6500.dts +++ b/target/linux/ramips/dts/RE6500.dts @@ -103,7 +103,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -112,7 +112,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/SAP-G3200U3.dts b/target/linux/ramips/dts/SAP-G3200U3.dts index 7be6e033c7..dbaa6a31cf 100644 --- a/target/linux/ramips/dts/SAP-G3200U3.dts +++ b/target/linux/ramips/dts/SAP-G3200U3.dts @@ -95,7 +95,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -104,7 +104,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts index 87adc9ae1d..f5da941031 100644 --- a/target/linux/ramips/dts/SK-WB8.dts +++ b/target/linux/ramips/dts/SK-WB8.dts @@ -92,7 +92,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -101,7 +101,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/W2914NSV2.dtsi b/target/linux/ramips/dts/W2914NSV2.dtsi index 7b11a0f6a2..51ec161840 100644 --- a/target/linux/ramips/dts/W2914NSV2.dtsi +++ b/target/linux/ramips/dts/W2914NSV2.dtsi @@ -72,20 +72,19 @@ status = "okay"; pcie0 { - wifi@14c3,7662 { - compatible = "pci14c3,7662"; + wifi@14c3,7603 { + compatible = "pci14c3,7603"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; pcie1 { - wifi@14c3,7603 { - compatible = "pci14c3,7603"; + wifi@14c3,7662 { + compatible = "pci14c3,7662"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts index 84a14e4e01..80676fa896 100644 --- a/target/linux/ramips/dts/WF-2881.dts +++ b/target/linux/ramips/dts/WF-2881.dts @@ -85,7 +85,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -94,7 +94,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts index 66fcc9b683..a0eb5c0c25 100644 --- a/target/linux/ramips/dts/WHR-1166D.dts +++ b/target/linux/ramips/dts/WHR-1166D.dts @@ -165,7 +165,7 @@ compatible = "pci0,0"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/WITI.dts b/target/linux/ramips/dts/WITI.dts index de0c517d0c..91f669364d 100644 --- a/target/linux/ramips/dts/WITI.dts +++ b/target/linux/ramips/dts/WITI.dts @@ -89,7 +89,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&factory 0xe000>; }; }; @@ -99,7 +99,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; mtd-mac-address = <&factory 0xe000>; }; }; diff --git a/target/linux/ramips/dts/WL-WN575A3.dts b/target/linux/ramips/dts/WL-WN575A3.dts index 63eff77a08..98716beb49 100644 --- a/target/linux/ramips/dts/WL-WN575A3.dts +++ b/target/linux/ramips/dts/WL-WN575A3.dts @@ -77,7 +77,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts index bb879a1441..ec97ac805d 100644 --- a/target/linux/ramips/dts/WNDR3700V5.dts +++ b/target/linux/ramips/dts/WNDR3700V5.dts @@ -111,7 +111,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -120,7 +120,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts index ab6a9a4e3f..5d5725cfde 100644 --- a/target/linux/ramips/dts/WSR-1166.dts +++ b/target/linux/ramips/dts/WSR-1166.dts @@ -170,7 +170,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -179,7 +179,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/WSR-600.dts b/target/linux/ramips/dts/WSR-600.dts index 63206b4d61..3f7238cfa7 100644 --- a/target/linux/ramips/dts/WSR-600.dts +++ b/target/linux/ramips/dts/WSR-600.dts @@ -173,7 +173,6 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; }; diff --git a/target/linux/ramips/dts/Y1.dtsi b/target/linux/ramips/dts/Y1.dtsi index 8e6133a61c..0ac04c43c1 100644 --- a/target/linux/ramips/dts/Y1.dtsi +++ b/target/linux/ramips/dts/Y1.dtsi @@ -84,7 +84,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-APE522II.dts b/target/linux/ramips/dts/ZBT-APE522II.dts index 5eca65f24c..9a8b700a50 100644 --- a/target/linux/ramips/dts/ZBT-APE522II.dts +++ b/target/linux/ramips/dts/ZBT-APE522II.dts @@ -124,7 +124,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts b/target/linux/ramips/dts/ZBT-WG2626.dts index a75ca89aa8..65541a5a44 100644 --- a/target/linux/ramips/dts/ZBT-WG2626.dts +++ b/target/linux/ramips/dts/ZBT-WG2626.dts @@ -93,7 +93,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -102,7 +102,7 @@ reg = <0x0000 0 0 0 0>; device_type = "pci"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; + ieee80211-freq-limit = <2400000 2500000>; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-WG3526.dtsi b/target/linux/ramips/dts/ZBT-WG3526.dtsi index e48ef3a25b..582e420839 100644 --- a/target/linux/ramips/dts/ZBT-WG3526.dtsi +++ b/target/linux/ramips/dts/ZBT-WG3526.dtsi @@ -88,7 +88,6 @@ compatible = "pci14c3,7603"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; @@ -97,7 +96,7 @@ compatible = "pci14c3,7662"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; + ieee80211-freq-limit = <5000000 6000000>; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index dc3ba9e323..b64a87a493 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -474,6 +474,5 @@ status = "disabled"; mediatek,mtd-eeprom = <&factory 0x0000>; - mediatek,5ghz = <0>; }; }; -- 2.30.2