[OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

郭传鈜 gch981213 at gmail.com
Fri Feb 6 08:21:41 EST 2015


Sorry,I forgot another simple problem of this device tree in the previus patch.
The "pcie0" part in pcie at 10140000 should be defined as "pcie-bridge".
And 2ghz should be disabled on this router.
I think the problem should be fixed now.Roger,Please test this patch:D

Signed-off-by: 郭传鈜 <gch981213 at gmail.com>
---
 target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
index fda3325..6f57f39 100644
--- a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
+++ b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
@@ -97,11 +97,12 @@
 	pcie at 10140000 {
 		status = "okay";
 
-		pcie0 {
+		pcie-bridge {
 			mt76 at 0,0 {
 				reg = <0x0000 0 0 0 0>;
 				device_type = "pci";
-				mediatek,mtd-eeprom = <&factory 0x8000>;
+				mediatek,mtd-eeprom = <&factory 32768>;
+				mediatek,2ghz = <0>;
 			};
 		};
 	};
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list