From patchwork Mon Dec 10 22:46:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1010757 X-Patchwork-Delegate: openwrt@kresin.me 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=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O5nrEBYP"; 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 43DJ9K6nxTz9s0t for ; Tue, 11 Dec 2018 09:47:01 +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: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=pdm8iHh/hLHeo1mAxTrrCW2mM6U+jE5jxvZqHM4WnoY=; b=O5nrEBYPmaj9Ph UWgjkCgb29JCjitnAg56za6sDlhI9EAjUO2XZOwZLtmaQFLtJ2v19GHpjYUtj51g9IFXRrtWW+6UH m3qruMqVud1B/B83yHuhQquoKNxxLGMV6Y6HoMX8mrvLfT6RezOh9ngM933znKLpehJ+gT2F4s6Lk w32ehAkPzzzCR3/ztPt4N98EsRerPB3Q6MLJbcOXKjHY2aDc8ev6PChWqdKqQNMgHzC83D6QGv2E8 8snodjwyB+VvTqfkISmPy9UHwO8Ec5Va3VpC6aXCSU0gvHhSglbWl04I86po2wKznUzFibRamOWSZ iyFW2/gKze1CEU69NJEg==; 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 1gWUKI-000831-JY; Mon, 10 Dec 2018 22:46:58 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWUK6-0007ro-F3 for openwrt-devel@lists.openwrt.org; Mon, 10 Dec 2018 22:46:48 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 3D6BA4B5A; Mon, 10 Dec 2018 23:46:38 +0100 (CET) Received: from localhost.localdomain (localhost [127.0.0.1]) by meh.true.cz (OpenSMTPD) with ESMTP id 733f7ef0; Mon, 10 Dec 2018 23:46:36 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 10 Dec 2018 23:46:24 +0100 Message-Id: <1544481988-30032-2-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1544481988-30032-1-git-send-email-ynezz@true.cz> References: <1544481988-30032-1-git-send-email-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181210_144646_662244_7A80AED5 X-CRM114-Status: UNSURE ( 9.55 ) 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 ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH 1/5] ath79: ubnt-xw: Add LED aliases for diag and status LED support 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: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Currently there is no LED signalization for various system states implemented in diag.sh, so this patch adds support for it. Tested-by: Joe Ayers Signed-off-by: Petr Štetiar --- target/linux/ath79/dts/ar9342_ubnt_xw.dtsi | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi index b104bc6..742df11 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi +++ b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi @@ -9,15 +9,22 @@ compatible = "ubnt,xw", "qca,ar9342"; model = "Ubiquiti Networks XW board"; + aliases { + led-boot = &boot; + led-failsafe = &failsafe; + led-running = &boot; + led-upgrade = &upgrade; + }; + gpio-leds { compatible = "gpio-leds"; - link1 { + upgrade: link1 { label = "ubnt:red:link1"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - link2 { + failsafe: link2 { label = "ubnt:orange:link2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; @@ -27,7 +34,7 @@ gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - link4 { + boot: link4 { label = "ubnt:green:link4"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; };