From patchwork Thu Mar 2 10:55:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Evensen X-Patchwork-Id: 734553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vYq5T5KFYz9s7m for ; Thu, 2 Mar 2017 21:57:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="A+Gq0K9g"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aQfydWlT"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hDbouXYHH9SsSnwY0uBDP1wHeIjlEphGecx7im6zGZE=; b=A+Gq0K9gQ48jaO ZfPRkS43ga4oO/kwKLl2CnU0XCPwZduTCgRAUZSjARh+f4ID0MoeJUxbKdN7NDirkgpusE2nQ8X+t HgWJx+P5ospRtMFXlrw0Lz6zg6LrvPYo5O4aDEWy6zXU22Dyc7ZFIeUyMJcvvlZloZENLFUPws8Bn KB5B7IZ5rkGblIfkSCI/F1JfkB5tE7wob+loKzQ545xH+VZ+9xz5TsoM3c2Ehxco35yU0q7EiGmkx 7odnD6/PplShRb4It65DoW/PNkHR+OmRVHj0YZi5nK2TGG5ouL+a6QYeOPbWSAs81cxMiGTWlmb8E i4AIjN+yatL34Rx8bIwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cjOPh-0006Bg-P1; Thu, 02 Mar 2017 10:56:49 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjOPJ-00069A-FO for lede-dev@lists.infradead.org; Thu, 02 Mar 2017 10:56:27 +0000 Received: by mail-lf0-x242.google.com with SMTP id r36so5422106lfi.0 for ; Thu, 02 Mar 2017 02:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Gj9g6h+jaA+NY7fRCfq51cSKRU6XgSKbyRooMXLt2sY=; b=aQfydWlTzm5tXqcUOh/KeLE22HMx7H+kLyE9mbRI9e0h0hrRxWvP+7UvZ4IOaZhDBu q+nAMupHfKR1+GIs9qvUIG+kgrQQXu+rH/Ns9rnDVELTNInCzSxC8KnL4TVoyavQ//9q BR+YklbTyMwYE/QnJQ2nHO2jJtWGYHjHFDJVhHQRvDS/pzAJBuYr5nERhr/M7dtKMVRy QDVKguHeOY+1505E53OV+MQoxjI+xIwR79N6SflafLrSk3e0011rmlce3tK2HvACMCvT U6f+cFKXxU/FrTa+/DzF7vsgiep62j66tbCqd0mbSVMHiK9y2eJ2C2q2pV6u8+S8+16u Xtlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gj9g6h+jaA+NY7fRCfq51cSKRU6XgSKbyRooMXLt2sY=; b=EM5yLvcbNkWqr2DgbcAL9OxLUgib6HcRGBWJ1r9vKeJ71CDyvHLRpQjbhFLRTrJDLF Rp8yDPFG/6YQLZI8m0NYjdZ7YBWke8mcECP7b8hH6oe0DKi9HShnDNFKlPFaoGPwQwtx zuWsxSHoNYXc+qF33GvLVhT7vQ366gF4F49Gsea71V1/4lkFKZqoyLvQNyEnZTbI7TOE ORw1gIR4jIEL/TpCDFLzD6/FC0bJ+jdceiDaZskSo+v4yC1M5kIDf+8dtrpoI4pUQab0 vfPeFPzs/nS6NbbI26o7JIC18x29tUnhehm8XIHjE1kuASSghAgCqm2Noj14dqnp3BmD daeg== X-Gm-Message-State: AMke39kTTXjp83mn4Nc8oXyR1nEKSGvpYqD1TVcSd5kNfe2vvmskFG5OiigO59qUQjUQ6A== X-Received: by 10.25.25.147 with SMTP id 141mr4336086lfz.87.1488452163002; Thu, 02 Mar 2017 02:56:03 -0800 (PST) Received: from localhost.localdomain ([91.90.161.66]) by smtp.gmail.com with ESMTPSA id a11sm1671388lfh.37.2017.03.02.02.56.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 02:56:02 -0800 (PST) From: Kristian Evensen To: lede-dev@lists.infradead.org Date: Thu, 2 Mar 2017 11:55:55 +0100 Message-Id: <20170302105555.14926-1-kristian.evensen@gmail.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170302_025625_722536_698C439E X-CRM114-Status: GOOD ( 10.29 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kristian.evensen[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [LEDE-DEV] [PATCH] ramips: Improve Sanlinking D240 config X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kristian Evensen MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org * The left most mini-PCIe (USB) slot (the one attached to SIM2) can be power-cycled by setting GPIO 0 to high/low. I have no strong opinion on the name, but since the slot can be used for other things than modems I went for usb2. * The D240 only needs the MT76x2 module, so update makefile to reflect this. Note that until the default mt7620 target is updated, then kmod-mt76 (and thus kmod-mt7603) will be selected by default. Signed-off-by: Kristian Evensen --- target/linux/ramips/dts/D240.dts | 14 ++++++++++++++ target/linux/ramips/image/mt7620.mk | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/D240.dts b/target/linux/ramips/dts/D240.dts index ef45d38..4abf7f5 100644 --- a/target/linux/ramips/dts/D240.dts +++ b/target/linux/ramips/dts/D240.dts @@ -46,6 +46,20 @@ bootargs = "console=ttyS0,115200"; }; + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + /* + * The modem ("usb port") connected with the SIM2 slot can be power + * controlled by setting gpio 0 to high/low. + */ + usb2 { + gpio-export,name = "usb2"; + gpio-export,output = ; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; + }; + gpio-leds { compatible = "gpio-leds"; diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 4a76ab3..0410a9a 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -471,6 +471,6 @@ define Device/d240 DTS := D240 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Sanlinking Technologies D240 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620 endef TARGET_DEVICES += d240