From patchwork Tue Apr 12 23:55:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 65671 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2205001qge; Tue, 12 Apr 2016 16:59:44 -0700 (PDT) X-Received: by 10.66.132.37 with SMTP id or5mr8569098pab.144.1460505584350; Tue, 12 Apr 2016 16:59:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u86si649971pfa.250.2016.04.12.16.59.44; Tue, 12 Apr 2016 16:59:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965344AbcDLX7g (ORCPT + 7 others); Tue, 12 Apr 2016 19:59:36 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:32794 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964905AbcDLX7e (ORCPT ); Tue, 12 Apr 2016 19:59:34 -0400 Received: by mail-pf0-f181.google.com with SMTP id 184so22970453pff.0 for ; Tue, 12 Apr 2016 16:59:34 -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=sbChcm9F6FFdqCrFt7n7l1cM4Hz6ium9tJWfzhE2ITc=; b=Sfsq1p3Hwaqk4LOxlb/XOoWcTV07MnT8FhGQ8pd+CriXRUtfEHtd+20XKVtxzYqBHZ jdIRUdc/SoXCgb5l5qTCMubulD9BS59b8AiyINiTAQL2J25nDYGGkCumlreUeMHHHdPm CySnIbLHRrOx59qOPBZHMaROhC2IzMQC67P8Y= 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=sbChcm9F6FFdqCrFt7n7l1cM4Hz6ium9tJWfzhE2ITc=; b=CvuQBFzU+tUhoxTlGBXd8uPxNQslMcHXJPI/WyNUuAfaw6tIL6hIPODgg60YQCB0yd JqkK5cvAgZ5ZT3nEeng0Kcy6JqISXO09U/TYAAaS2OKXNzY52INIQrG0z+m7RHoAodI7 5hx1GVsDVoeP7hyb1gT3VOjp98QV1u7JEfHm4vZtBzCeSMX+SsG0nO3MyPfwt3UIOr15 yFNqmalt0l3O0ius+dU7L53pcpmlsnoitSmfC4BbCZLHrL2ao+S4D/DenZdyjUWc9GiS CNDMQibN2MTAr7m/xBQE+iRJzqIGIvZ8FRNPbbMnq7ev0gV6B3za7e8MqI1pVcaFrr5D 7PPA== X-Gm-Message-State: AOPr4FU9izpn/Jc5OPY3aAJVpARm03ckhDj+hESdlxDmCb+xiCuHC5OaIGZQnh5YHkxZvzKj X-Received: by 10.98.72.213 with SMTP id q82mr8566944pfi.164.1460505574082; Tue, 12 Apr 2016 16:59:34 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.226]) by smtp.gmail.com with ESMTPSA id i1sm46165795pfj.17.2016.04.12.16.59.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 16:59:33 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, catalin.marinas@arm.com, will.deacon@arm.com, haojian.zhuang@linaro.org, linus.walleij@linaro.org, tony@atomide.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu Subject: [PATCH v4 13/16] arm64: dts: add LED nodes for hi6220-hikey Date: Wed, 13 Apr 2016 07:55:49 +0800 Message-Id: <1460505352-13157-14-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460505352-13157-1-git-send-email-guodong.xu@linaro.org> References: <1460505352-13157-1-git-send-email-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add LED nodes for hi6220-hikey. There are total 6 LEDs on HiKey. Four general purposed, one for WiFi activity, and one for Bluetooth activity. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 30c92bd..b7c41f8 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -66,6 +66,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 {