From patchwork Thu May 25 08:18:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 100474 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp731502obb; Thu, 25 May 2017 01:21:39 -0700 (PDT) X-Received: by 10.84.193.129 with SMTP id f1mr49316321pld.129.1495700499432; Thu, 25 May 2017 01:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495700499; cv=none; d=google.com; s=arc-20160816; b=nHn8QiwkvhaUV2QcgSS8T2Ix62suRIwQNf+a7dLclN8RG18tvyClthA8vKfh5p5kjQ 56ax90iqsIUl9lJ49gJsBHar/N6GrLkfCkAldLQl5hHW20d1q/JE839/19efRaZRWBKW r2ZquoUlY4DeC2yjiTDIw+GlzAKqtHt99JvXdUessbepQ0bv4/vba7+ZCXKDQ0pjtpDn liZqbGYB1mDQT0AEyRdU3RCptGkGOvUcwSbceBDrf49o9ggDRshny1paNJCm0Mlq/l8z kr8chzJ2i/89ZmQhWc/WzzcdDwxXgVkG5iXgaYQn6m11wQHZUtrgoceGGdAX5qEB6l6B nidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=4E3Ok1x53uRD54MUCyEQpN3NBW5jVU3TurfWo8e60LI=; b=I7YtU5OfLidKL5KsQxZhjwbFO59FPtFSo3CIJW25ymmqQDrms0v5tbYognmIG32jCq HdYGAjcjl8OhFObXjHcDaTu/r2tStWinEWnYoZe71F4LLF/yH9XotlNxPftQS6VwYAAJ LO1w9Zh6e52SXTHV/rBJO0xtohOd8PBbZmAHszbE9bkQlWJorsiVQD2JE8RyXiYrXZBx 1Eus6tDRS9oIUYrVEhOy0VFt3uiNd1L+ka1djBRTr1fD9FhFWiTr925qbDY+IS/imWep A6EmDwggV1gcA28dsVGiRPf1o+v82atM9MoeVK/9xzweeX1YKHGAmjaHVW71zkMjQU6u Zfvw== ARC-Authentication-Results: i=1; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si27179390plk.94.2017.05.25.01.21.39; Thu, 25 May 2017 01:21:39 -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 sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423692AbdEYIVB (ORCPT + 7 others); Thu, 25 May 2017 04:21:01 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35679 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423678AbdEYIUD (ORCPT ); Thu, 25 May 2017 04:20:03 -0400 Received: by mail-pf0-f174.google.com with SMTP id n23so160520371pfb.2 for ; Thu, 25 May 2017 01:20:03 -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=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=VysoN4LR7Ar+vcufLGinyeS5j46dZGP0useI/j0IEYdkkB/Xiu6S2S8/g3+eML5ahG MT2SfMNTBY7VIwSiwVx+E+LnSrBu4DdV3N/yuPjOz6eY0vRTL62TyiZ0+SNip+CsY3Lz +zFI4UPSyg1iek18Rz5P6FvRwOV2RjLwP9g78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=IZ64qwjTshLs973DPMfSBsWXdsl+sGAfZR/bGImV9DbHUF5OOzwMpHH8zxc93/U7Z1 r3Q0KamodQX4TxbQ8Jiu2MntkEKWh+ijIEKtAh7tx3YNbYp4OUw8Gc/adSf/60v2+jqa 76fwwvfC2n04zn8EhFKEuRLVof/hoWqQ6zuI3VtJm3+rWxm2TAX5hBQ7+aHfZcYwfrWj 5A+d58pOd1LTz46FDtS4Q4SQmU+HRaTCZ7ft4ITd1lb5w/Gh33+RgSO76Y4+eEciu0aN n3aIuP0TOBe/vIzvYQBB6zqr7AcfFUzfo9fpHd2y+ROCkJBWU4RsR7E8Tuxjx4DtHrZR WFrw== X-Gm-Message-State: AODbwcCm+FtUoDnHim/HsQQWNIhmae3UYyrKLZPA7Cq3pyUrRjXzXAHx tQwhuBjS78R7N5um X-Received: by 10.84.194.37 with SMTP id g34mr49394882pld.182.1495700402731; Thu, 25 May 2017 01:20:02 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.222]) by smtp.gmail.com with ESMTPSA id b72sm11574470pfd.118.2017.05.25.01.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 01:20:02 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu Subject: [PATCH v2 11/12] arm64: dts: hikey960: add LED nodes Date: Thu, 25 May 2017 16:18:53 +0800 Message-Id: <20170525081854.4701-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170525081854.4701-1-guodong.xu@linaro.org> References: <20170525081854.4701-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT respectively. All of them are implemented as GPIO. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- 2.10.2 -- 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/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 7aac35b..9ecf6c6 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -49,6 +49,54 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + user_led1 { + label = "user_led1"; + /* gpio_150_user_led1 */ + gpios = <&gpio18 6 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "user_led2"; + /* gpio_151_user_led2 */ + gpios = <&gpio18 7 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "user_led3"; + /* gpio_189_user_led3 */ + gpios = <&gpio23 5 0>; + default-state = "off"; + }; + + user_led4 { + label = "user_led4"; + /* gpio_190_user_led4 */ + gpios = <&gpio23 6 0>; + linux,default-trigger = "cpu0"; + }; + + wlan_active_led { + label = "wifi_active"; + /* gpio_205_wifi_active */ + gpios = <&gpio25 5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "bt_active"; + gpios = <&gpio25 7 0>; + /* gpio_207_user_led1 */ + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; }; &i2c0 {