From patchwork Thu Jan 17 05:48:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Kletsky X-Patchwork-Id: 1026411 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=allycomm.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Kj13L/Jn"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::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 43gCmw18dvz9sBZ for ; Thu, 17 Jan 2019 16:48:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Date:Message-ID:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xNqAZ9untcBlG3yljgKdZAjGEs6bcBhlMfeQalnALoo=; b=Kj13L/JnkK87Qh hJx3VHpHsMCZ2emmS+cUSo3kAkd8NIQLwdCYelYT96H1/GybkqxqP5L8y/XeckRonEob56ntmBUWs 1j2yR1RZONbaxnjIi/vSt641yHBeFYKgANC1QAt+2GMByHsKthK3+yyIvyyl3Z0IQ/TlABsq/kjpW 4mZFlqAM1AQtU0DIPs3MHrzpUiXdHBTf12h0PWiH7SzBnl+MrKAhcv4b+hfwGtxwEpNlciWCl0yi0 iTFZJLrMZ3a54/OHZXrG8iYw7+wRfwRo2O4wYo2WoEo2Z1R/V/3Fn9KnH7NqbZjlwZ7lurg7XDZ9q huJytLvD6kwcLwy7Wl+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gk0XT-0001EO-6c; Thu, 17 Jan 2019 05:48:27 +0000 Received: from mx.allycomm.com ([138.68.30.55]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gk0XQ-0001E2-DF for openwrt-devel@lists.openwrt.org; Thu, 17 Jan 2019 05:48:25 +0000 Received: from ubuntu.pn.wagsky.com (c-69-181-42-248.hsd1.ca.comcast.net [69.181.42.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.allycomm.com (Postfix) with ESMTPSA id 4FF2840313 for ; Wed, 16 Jan 2019 21:48:22 -0800 (PST) From: Jeff Klesky To: openwrt-devel@lists.openwrt.org Message-ID: <123e5041-846e-bd3c-5c04-5e5b9631b2e1@wagsky.com> Date: Wed, 16 Jan 2019 21:48:11 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190116_214824_486302_A753978D X-CRM114-Status: GOOD ( 13.59 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [OpenWrt-Devel] [PATCH] ath79: Add GL.iNet AR-300M-Lite: Setup with eth0 as LAN X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From f6c780752d5812b24a923286700a58f174d792ae Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Wed, 16 Jan 2019 12:32:15 -0800 Subject: [PATCH] ath79: Add GL.iNet AR-300M-Lite: Setup with eth0 as LAN AR300M-Lite is single-Ethernet variant of the AR300M series Its eth0 would otherwise be assigned to the WAN interface making it unreachable firstboot or failsafe. Removes the assignment of GPIO 2 as an "LED" as the feature to switch the power to the USB port is not present this version Installation instructions from OEM (OpenWrt variant): * Upload the sysupgrade image to the device * Flash with "sysupgrade -n -F " Tested on GL.iNet AR300M-Lite Signed-off-by: Jeff Kletsky Signed-off-by: Jeff Kletsky --- target/linux/ath79/base-files/etc/board.d/02_network | 1 + target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts | 11 +++++++++++ target/linux/ath79/image/generic.mk | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 3eb0e413f3..fa947203f8 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -13,6 +13,7 @@ ath79_setup_interfaces() devolo,dvl1200i|\ devolo,dvl1750c|\ devolo,dvl1750i|\ + glinet,ar300m-lite|\ ocedo,koala|\ ocedo,raccoon|\ pcs,cap324|\ diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts new file mode 100644 index 0000000000..c38fcf735d --- /dev/null +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts @@ -0,0 +1,11 @@ +/dts-v1/; + +#include "qca9531_glinet_gl-ar300m-nor.dts" + +/ { + compatible = "glinet,gl-ar300m-lite", "qca,qca9531"; + model = "GL.iNet GL-AR300M-Lite"; +}; + +/delete-node/ &{/leds/usb}; + diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 22ba5305b1..38cdd5d109 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -296,6 +296,15 @@ define Device/glinet_gl-ar150 endef TARGET_DEVICES += glinet_gl-ar150 +define Device/glinet_gl-ar300m-lite + ATH_SOC := qca9531 + DEVICE_TITLE := GL.iNet GL-AR300M-Lite + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + IMAGE_SIZE := 16000k + SUPPORTED_DEVICES += gl-ar300m-lite +endef +TARGET_DEVICES += glinet_gl-ar300m-lite + define Device/glinet_gl-ar300m-nor ATH_SOC := qca9531 DEVICE_TITLE := GL.iNet GL-AR300M