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: 64923 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp250739lbc; Sat, 2 Apr 2016 02:32:09 -0700 (PDT) X-Received: by 10.98.67.67 with SMTP id q64mr5009715pfa.44.1459589529612; Sat, 02 Apr 2016 02:32:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si26752442pfi.16.2016.04.02.02.32.09; Sat, 02 Apr 2016 02:32:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754023AbcDBJb5 (ORCPT + 29 others); Sat, 2 Apr 2016 05:31:57 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:34112 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753946AbcDBJby (ORCPT ); Sat, 2 Apr 2016 05:31:54 -0400 Received: by mail-pa0-f54.google.com with SMTP id fe3so108562503pab.1 for ; Sat, 02 Apr 2016 02:31:54 -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=KQPCff6JGeXFab+iNlynWeTCD3aBGxmj1+msY7Tqxct8qTlrGPKEw8yKAjwSZYuWda Hz2N9jJZOUsRLp5CMXquOh5GzTs4fbMn5PqK+O+kU6Y90cx840JR1n3xGV5xPna8cZFw aOrN7fx8P3xpjSb47z11aBA+SRzuHreC1LeSyxtMV3SZSE47MYB4+vKIAZ3V37ZdNwCb RouGBuIl1Ck5OYx0qtUs7u0Hou4cAlHK/T6yrsV+4ZLYf+sRvBR+1Ly+mIRzYviByfdE 7gN4wZiNJNjSf0H+oQk9OqBkSL19nP/XAI54ISQVD2qM9ahxgGLuti6RO6A5j7B4F9Ys lqSQ== X-Gm-Message-State: AD7BkJJwvtd3EO+fr2C+uQ1vb+wuvhGDOBqOyvGhmEMiM/HU2nYvds5PphAhpFTYAZZVX6lP 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kong.kongxinwei@hisilicon.com, Guodong Xu 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 1.9.1 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 {