From patchwork Fri Feb 6 13:21:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chuanhong Guo X-Patchwork-Id: 437295 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6264C14017B for ; Sat, 7 Feb 2015 00:22:19 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 38B9B28B72C; Fri, 6 Feb 2015 14:19:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, T_DKIM_INVALID autolearn=no version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DEE5B28B405 for ; Fri, 6 Feb 2015 14:19:34 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-pd0-f181.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 6 Feb 2015 14:19:34 +0100 (CET) Received: by pdbnh10 with SMTP id nh10so12156073pdb.12 for ; Fri, 06 Feb 2015 05:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=yDV3GVcSsU0ug3c9dwQUgQ70X0tIdFTclfVHHHb4/5k=; b=j/CwoIx48TA76E+FaEL3R2DY+n43EP9tQnlgyfiDSrLOBGDtLfuB+ZREAOtJKI1ZHo NyOYIMm/hjw4aomUAE7rS/GXreHdwt/UW/VJyB6j6zVYQYDoKhglb29HOzmFf6RCbjbp mSk5rluPySlx1GtWb9rJQY7o3gi0mVDr+LR4e+7BaK/cfTHKgmQ6JTLjsWfNTQlayON3 UWI4GDop0Khg+o5LAEZehQInVh6BSMq9RHIYAk+svB4rjQ/qdO87/HJpBuVRC4YTJGsg bLqwaseEWxzLow0IEoQbpvc6qYh7XI0V0TjazX1YYDOzo4K9pNF799tRewXM9zcX/k+r nlnA== X-Received: by 10.66.90.193 with SMTP id by1mr5796249pab.56.1423228925915; Fri, 06 Feb 2015 05:22:05 -0800 (PST) Received: from guoguopc-lan.lan ([110.90.19.44]) by mx.google.com with ESMTPSA id tn2sm8117370pbc.15.2015.02.06.05.22.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Feb 2015 05:22:05 -0800 (PST) From: =?UTF-8?q?=E9=83=AD=E4=BC=A0=E9=88=9C?= To: rogerpueyo@rogerpueyo.com, openwrt-devel@lists.openwrt.org Date: Fri, 6 Feb 2015 21:21:41 +0800 Message-Id: <1423228901-4864-1-git-send-email-gch981213@gmail.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Sorry,I forgot another simple problem of this device tree in the previus patch. The "pcie0" part in pcie@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: 郭传鈜 --- 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@10140000 { status = "okay"; - pcie0 { + pcie-bridge { mt76@0,0 { reg = <0x0000 0 0 0 0>; device_type = "pci"; - mediatek,mtd-eeprom = <&factory 0x8000>; + mediatek,mtd-eeprom = <&factory 32768>; + mediatek,2ghz = <0>; }; }; };