From patchwork Fri Nov 2 19:52:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Weinelt X-Patchwork-Id: 992547 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=fail (p=none dis=none) header.from=darmstadt.ccc.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kLYM4Vmt"; 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 42mt6M75lxzB4Yx for ; Sat, 3 Nov 2018 06:53:15 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version: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=DJfnYIsryPuoKtF9RKZIkmT85QABMfzF0ZdVYd2oMkA=; b=kLYM4VmtwZ3ON/ GJtBdo5YTuIY1EwBus8PgDEDQJeY7xajA0imnWukKl7fGxQSX7yir9bxhMONEqPZabddUZHLacFf+ HBjJUG4D8eF2JzpZTLX6JIN/k9mMMQxmVc89lZC18lecFKc2LGms5wN5NjvhxTxW/EyQsrWnoIHE2 Pets++YkxCT2kMUFZlRfFlIudok+YehRLE9UatCVSyXiwARKMjVr8WG0ez9GFC/gE7z6IW7qJvIZS bK0wK3w7y6VBe6yES+dJY/u+twx7cBfcd6X+7I0GzmXLhm/biU8S/5NBE2ygCkgwQE4mZ3qY4mzcx /Gw0zlbuGDn+f1wBGlPg==; 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 1gIfV8-0004qu-EE; Fri, 02 Nov 2018 19:53:02 +0000 Received: from venus.chaos.hg.tu-darmstadt.de ([130.83.177.130]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIfV4-0004q3-L7 for openwrt-devel@lists.openwrt.org; Fri, 02 Nov 2018 19:53:00 +0000 Received: from eris.lossy.network (unknown [IPv6:2a06:8781:0:438:3ca2:6fcf:a16d:ad17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hexa) by venus.chaos.hg.tu-darmstadt.de (Postfix) with ESMTPSA id 62B66450A; Fri, 2 Nov 2018 20:52:31 +0100 (CET) From: hexa@darmstadt.ccc.de To: openwrt-devel@lists.openwrt.org Date: Fri, 2 Nov 2018 20:52:01 +0100 Message-Id: <20181102195201.26409-1-hexa@darmstadt.ccc.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_125258_834597_D9C0E15E X-CRM114-Status: GOOD ( 10.68 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [130.83.177.130 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH] ramips: fix leds on GL.iNet GL-MT300N-V2 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: Martin Weinelt Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Martin Weinelt The WAN LED now shows the link state. It's color is green, not blue. Use the physical radio for the WiFi-LED to be resilient against changing interface names Signed-off-by: Martin Weinelt --- target/linux/ramips/base-files/etc/board.d/01_leds | 3 ++- target/linux/ramips/dts/GL-MT300N-V2.dts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 5f5e5630fd..6a1729f34d 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -149,7 +149,8 @@ gl-mt750) set_wifi_led "$boardname:wlan" ;; gl-mt300n-v2) - set_wifi_led "$boardname:red:wlan" + ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1" + ucidef_set_led_switch "wlan2g" "wlan2g" "$boardname:red:wlan" "phy0tpt" ;; hc5661|\ hc5661a) diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts index 48c43baeff..ba5a595b10 100644 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts @@ -35,7 +35,7 @@ }; wan { - label = "gl-mt300n-v2:blue:wan"; + label = "gl-mt300n-v2:green:wan"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; };