From patchwork Thu Jul 26 00:35:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10545039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06A4F139A for ; Thu, 26 Jul 2018 00:42:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC02E289E5 for ; Thu, 26 Jul 2018 00:42:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF51328A2D; Thu, 26 Jul 2018 00:42:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7EE8A289E5 for ; Thu, 26 Jul 2018 00:42:47 +0000 (UTC) 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:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=BSlHI59VW1fKi2XW+OBrW2z7sFLf00O3McvaGfcakpg=; b=f15Y21JYYC8sFds0aEC6YTIVZq I4tnXkKGPzvndYHVS8wLJgZ5xGZM2RqfT3seDxgn9n3RfkgZrbxLGNbvvlzrUnu4mr7V2SFnDp/qJ aVSoUJaldJu/nnHFNGJ4smUOO1qDXTaq8nzkm89phgvFuSm27Qo4bTSVN5RiYYFaqyb0HekTiq6E5 1zb1W6f7BBGt6YWphpY2LswNKoAVCHXltDnnqg1VoSn7ZZTKYL7MiiSOPYZ8euFeL+h62zL8NRJJx hETbWztSBBZGhdKygH509YQn1aLH+Se7Wea+vFHNxdS+qYa0dAS1wWXK0ZUctgG2Vave/zUr7lKqB 4NrO492A==; 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 1fiUMa-00008i-Lt; Thu, 26 Jul 2018 00:42:40 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiUIJ-0003RJ-7K for linux-arm-kernel@bombadil.infradead.org; Thu, 26 Jul 2018 00:38:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3BbHujoGiP1NSZmK1R32wjVXq9bi4Ph4IU9sklKmY1Q=; b=JQO0VM1kLxeOlMcbWTW33ByXo qrl6HdH8ypHi7jjYiUZAznPLDErUEFlf9ygaBHHb30dpLTnE3CiI8+4/zGU9HYEi6uFnzX9ZaYnUQ aIc2Vf+A/cYAZ3CnVE81Gd/6MGu768QUrVEw/rE2bWLlsqr+GpTC06rPDl2JHYbbBU4qxzcO/RYTR 08DMNz3UeLD2KgFbtYzNtN6NnRmFxNJ4fv9bY4jPHJcNwkpUOnDAIgOG+FomNNGyeqcNTIlb6ogaM En47tVD1l+KJktHoAdoGBugszST5JEUIcZx8zmnG3tQXRw5b4S07RAA/yorPWqfMAgYNNwhqBy4ul YMhHpKYgA==; Received: from foss.arm.com ([217.140.101.70]) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiUIG-0006OC-5H for linux-arm-kernel@lists.infradead.org; Thu, 26 Jul 2018 00:38:13 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F3D91650; Wed, 25 Jul 2018 17:37:57 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7BB333F6A8; Wed, 25 Jul 2018 17:37:55 -0700 (PDT) From: Andre Przywara To: Maxime Ripard Subject: [PATCH v2 18/18] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Date: Thu, 26 Jul 2018 01:35:32 +0100 Message-Id: <20180726003532.18751-19-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180726003532.18751-1-andre.przywara@arm.com> References: <20180726003532.18751-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180725_203812_278148_58B6BD68 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , linux-sunxi@googlegroups.com, Chen-Yu Tsai , Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Beside the non-controllable green power LED, the NanoPi-A64 features a blue "status" LED, connected to PD24. Add the device tree node to make it usable. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 705e0b23589e..d75d4d5cbf73 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -60,6 +60,15 @@ stdout-path = "serial0:115200n8"; }; + leds { + compatible = "gpio-leds"; + + blue { + label = "nanopi-a64:blue:status"; + gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */ + }; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */