From patchwork Sat Mar 2 17:01:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Kletsky X-Patchwork-Id: 1050653 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="A31sDGIW"; 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 44BXfd5XRHz9s6w for ; Sun, 3 Mar 2019 04:03:05 +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-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nCdBrrk5emuspVqAg4V/p2OqOLyH/GSJCc4E+tRUbvY=; b=A31sDGIW68AT/C 1nl1/AS4E3rXskG0H/R4KydjONA1QlGbFuLaNn1E9eZ/OoVQ0wx+wCbip/d/RfmbyoKSJgruS6yoO hiQ0X0spzZhTuvS0Q/9mzCYoWjeLs7/ndwa1mK1yO5qCu0QOxUny1ZozBMhP6Jr48VWJeaGZ6kYtg bFGWTTILmVk9IYzWnmjxXTUcN5O/I25NJAZvFQt+i6A3xc8xnggachQWLL1bDGahdpylUoQW3CQnw ZDwqMJE5eT01yo753rbEzf97bAXHKBH6sJd9+1gMAaz44vhNgRuG2R2GsdV9aEpL8mVg1m2P/ASk1 iza3pyyKYj0SUQRucdkg==; 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 1h082A-00013b-6B; Sat, 02 Mar 2019 17:02:46 +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 1h0827-00013J-Rs for openwrt-devel@lists.openwrt.org; Sat, 02 Mar 2019 17:02:45 +0000 Received: from mail.allycomm.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 ESMTPS id 5146E40757 for ; Sat, 2 Mar 2019 09:02:12 -0800 (PST) Received: by mail.allycomm.com (Postfix, from userid 58) id 485145021; Sat, 2 Mar 2019 09:02:12 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.allycomm.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Original-To: openwrt-devel@lists.openwrt.org Received: from deb-devel.wired (deb-devel.bevandjeff.com [192.168.6.49]) by mail.allycomm.com (Postfix) with ESMTP id 8C0C35011; Sat, 2 Mar 2019 09:02:10 -0800 (PST) From: Jeff Kletsky To: openwrt-devel@lists.openwrt.org Date: Sat, 2 Mar 2019 09:01:50 -0800 Message-Id: <20190302170150.15949-1-lede@allycomm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <3178284c-daa8-5ffd-540e-43690a082f56@andreas-ziegler.de> References: <3178284c-daa8-5ffd-540e-43690a082f56@andreas-ziegler.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_090243_905889_41A07470 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. 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 GL-AR300M Family to /etc/board.d/01_leds 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: , Cc: Jeff Kletsky MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Jeff Kletsky Previously missing, add the three variants; -nand, -nor, -lite to the definitions in 01_leds -Lite variant uses language-independent Ethernet as its single port may be configured as WAN or LAN, depending use case. Non-lite variants thanks to Andreas Ziegler https://patchwork.ozlabs.org/patch/1049396/ Runtime-tested: GL.iNet AR300M-Lite Signed-off-by: Jeff Kletsky --- target/linux/ath79/base-files/etc/board.d/01_leds | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index a56fe58f76..a5c23e1f84 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -63,6 +63,13 @@ glinet,gl-ar150) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02" ;; +glinet,gl-ar300m-nand|\ +glinet,gl-ar300m-nor) + ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:wan" "eth0" + ;; +glinet,gl-ar300m-lite) + ucidef_set_led_netdev "ethernet" "Ethernet" "gl-ar300m-lite:green:wan" "eth0" + ;; glinet,gl-x750) ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" ;;