From patchwork Sat Apr 2 09:29:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 8731131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D03A39F3D1 for ; Sat, 2 Apr 2016 09:39:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D4C8201F5 for ; Sat, 2 Apr 2016 09:39:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 39088200EC for ; Sat, 2 Apr 2016 09:39:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1amHyP-0006uM-1x; Sat, 02 Apr 2016 09:36:05 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1amHuX-0001fZ-EA for linux-arm-kernel@lists.infradead.org; Sat, 02 Apr 2016 09:32:11 +0000 Received: by mail-pa0-x22d.google.com with SMTP id td3so108133928pab.2 for ; Sat, 02 Apr 2016 02:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tGp1xeoFI4H7ydTs8UDQyYn6SzS/rJUjyTrERt8ShUE=; b=KEwbj2A76L0QTBzZF4S2zpMUovAxFNywmPODkZVxqxqiJ/D1MrVyDp6HddBkd+MLet UVyDHlDy2RnJGKcNE9PIl7rVNfcJTBOYlkxQo+rMVCocnZ8B4aYtJFaEyahvoMC9jeFO ds1VDpL0NVGP7QrkHj2NE1YHQSARAl0/VFUK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tGp1xeoFI4H7ydTs8UDQyYn6SzS/rJUjyTrERt8ShUE=; b=EE9hhAf6yzHv/nJ/kwM8UKxpiCmX498NotZUcUuy52fJC69eMr8LiHP2ahPrmV5kof Wl2BjnuJ30ypaGUSPNwnqpycNcg4h55kQJLoBGNOYRxtPK+b8d0/NCKcsWEXrfbI20/D BG8gUjT4jJcCzWson7TfSA7nqUfk9b1FiaAtU9k927uEhB00dRa/oyzmLJ7ykuUKu8Ck U8IPXxhOupVZoWNOpsH+In49pOU+YAVJNI3AD62uCEwI6AYhi2oxCnz7qjd90YEOov0e 9gFbTg/Rd8w+9gXLc/YGQIvLklrj7TvsrTldoKB8P4en2A9+QoeDIBoFl3iv0ru++OE0 dq6A== X-Gm-Message-State: AD7BkJK8vHNTSus146zu8dhTOU2oCAqRdoQTHJRtUGG23qUlY2RRbmT703OiKXGjcVGzc475 X-Received: by 10.66.139.137 with SMTP id qy9mr37707783pab.57.1459589509187; Sat, 02 Apr 2016 02:31:49 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id i9sm25425804pfi.95.2016.04.02.02.31.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Apr 2016 02:31:48 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca, linus.walleij@linaro.org, arnd.bergmann@linaro.org Subject: [PATCH v2 13/16] arm64: dts: add LED nodes for hi6220-hikey Date: Sat, 2 Apr 2016 17:29:40 +0800 Message-Id: <1459589383-16914-14-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> References: <1459589383-16914-1-git-send-email-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160402_023205_723647_051C3CD7 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, kong.kongxinwei@hisilicon.com, Guodong Xu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index c4f560a..28bc646 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -63,6 +63,47 @@ status = "ok"; }; }; + + leds { + compatible = "gpio-leds"; + user_led4 { + label = "user_led4"; + gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ + linux,default-trigger = "heartbeat"; + }; + + user_led3 { + label = "user_led3"; + gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ + linux,default-trigger = "mmc0"; + }; + + user_led2 { + label = "user_led2"; + gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ + linux,default-trigger = "mmc1"; + }; + + user_led1 { + label = "user_led1"; + gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ + linux,default-trigger = "cpu0"; + }; + + wlan_active_led { + label = "wifi_active"; + gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "bt_active"; + gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ + linux,default-trigger = "hci0rx"; + default-state = "off"; + }; + }; }; &uart2 {