From patchwork Sun Feb 8 10:32:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Roger Pueyo Centelles | Guifi.net" X-Patchwork-Id: 437688 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 1E10D14016B for ; Sun, 8 Feb 2015 21:33:28 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id BC35928A6B5; Sun, 8 Feb 2015 11:30:43 +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.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4D1762890C4 for ; Sun, 8 Feb 2015 11:30:25 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from smtp1.guifi.net (smtp1.guifi.net [109.69.9.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 8 Feb 2015 11:30:24 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.guifi.net (Postfix) with ESMTP id 454EB4B400A7 for ; Sun, 8 Feb 2015 11:32:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guifi.net; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=dkim; t=1423391574; x=1425205975; bh=n0MF5 /P72s5X1B/DcQWifsdgpuGh6m1YQkUbHiGXdb0=; b=B0WX5THBAiCNXWTIPsVDg bEIz/ut0SBix2Ltv2WZCZ8FOej+//CBCM7ZT6i30dCnlerS4EtMAWKr+vCzT7sM5 W4mCsbUIINDuql8AU7tmNKTx2ll0s3mkwyO+cFmuiA8vlFzt9iKBBjKZGq/Ll1v/ LmGUXj93vr6h7GnEbaFDw4y/3ggglkkShtQrDYK2sd/Y335p9xEm4KghkUTyoSFN v1ErrUJryCdOTGoYm16iWMKW2Gc4O3u+CkAuNRQ2CMYaYj8CfOdKElazO4ruM+aS 2t39f52oX2zrbbcXgOb9b6wakyEht8HJave1ftO3/yXN9wLffIfMGJniXEHQrLaM w== X-Amavis-Modified: Mail body modified (using disclaimer) - smtp1.elserrat.org X-Virus-Scanned: Scrollout F1 on Debian amavisd-new at elserrat.org Received: from smtp1.guifi.net ([127.0.0.1]) by localhost (smtp1.elserrat.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A5CcYfqmbJIV for ; Sun, 8 Feb 2015 11:32:54 +0100 (CET) Received: from mail.elserrat.org (109-69-9-9-guifi-gurb.ip4.guifi.net [109.69.9.9]) by smtp1.guifi.net (Postfix) with ESMTP id 8D2CB4B400A3 for ; Sun, 8 Feb 2015 11:32:54 +0100 (CET) Received: from localhost.localdomain (unknown [84.88.85.1]) by mail.elserrat.org (Postfix) with ESMTPSA id 493DF6ABE52; Sun, 8 Feb 2015 11:32:54 +0100 (CET) From: roger.pueyo@guifi.net To: openwrt-devel@lists.openwrt.org Date: Sun, 8 Feb 2015 11:32:36 +0100 Message-Id: <1423391556-10069-1-git-send-email-roger.pueyo@guifi.net> X-Mailer: git-send-email 2.1.4 Cc: Roger Pueyo Centelles Subject: [OpenWrt-Devel] [PATCH] ramips: fix mt76 radio pcie location definition for in Xiaomi MiWiFi 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: Roger Pueyo Centelles This patch sets the correct location of the mt76 radio in the pcie bridge (pcie-bridge instead of pcie0). Additionaly, it disables the 2.4 GHz band. Signed-off-by: Roger Pueyo Centelles --- target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts index fda3325..2cc5548 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,2ghz = <0>; }; }; };