From patchwork Thu Jun 15 03:04:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105620 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp595673qgd; Wed, 14 Jun 2017 20:06:44 -0700 (PDT) X-Received: by 10.98.58.217 with SMTP id v86mr3008500pfj.115.1497496004062; Wed, 14 Jun 2017 20:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497496004; cv=none; d=google.com; s=arc-20160816; b=ELXZvVGlmWYwNfvhNfIe8o0E9/fWqTmvr0N6/PSXneZ+Y1dmXAyiMa1cmJY5DrMo4c keYpDIB7Uo/IMtuRjkH4m+DTjhlV26l0PcR9bw61aB/ZvJB8341mFBmvrmLKak71YZFP 3xk7qP04mSLuQn6/tUe6ePccMdWvBzhieGGSYsZ+DYTWa6DsilAMVGSz7ci2HbZniUk9 oCHnijgYqBn88EGX5lZuDaoHlmxZy3RQBvtvGBjSzGT4FkymzKlcKKnycYJrlPGcT9/x FQ7rrHENXID+ijf338A8dEC0pQ932TDndK9HKuDsIHDAuPUPyM4Zo9e4g0YiUajwvbc+ yhZw== 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=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=VlfRGoRqFxWOadpS9uMvgoC2lOSwO2xzDA+8oXUVRWl5Y+dCuZnG5ySpoLKgGNw8+t cYdKNP/486qjK5CDSc9n7LSGWf91h1YDVwJa9R3pFJoSIGthfJEgXYg+o6gettAEEPk/ 4ZCFrGPxwZdTkcAYVfZ6YdIqEDzVN+7waYZ8qsjiVwbCaOL0472FEaCZ8u88UVUj9qHm ke5t8gdf0FwislgOUatqM0psw0yG7BT58YCHZxx1ppw63Dc7FkELZaEx4I7bWtapHeyV AvoWY1pxOnRdoBwcqQSOYqabEwkZg0Xm0+z6S2wIDihJJRHNP7xICwkqL6kUPSRPpkOG KrPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=VZ9MK2J3; 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 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 f32si1334027plf.393.2017.06.14.20.06.43; Wed, 14 Jun 2017 20:06:44 -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 header.b=VZ9MK2J3; 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 sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686AbdFODGk (ORCPT + 25 others); Wed, 14 Jun 2017 23:06:40 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:36689 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbdFODGh (ORCPT ); Wed, 14 Jun 2017 23:06:37 -0400 Received: by mail-pg0-f52.google.com with SMTP id a70so1236908pge.3 for ; Wed, 14 Jun 2017 20:06:37 -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=VZ9MK2J3mEpAx4BrJPbr0U+WbTmhh0+P3ybe/4oCgyfVfrushP4zLJGuinZiAWus0V +dCt7sRBst8XfTxLZ7V0+vLtLSK88yo/rs/qlMnqj7RgprQIKeT3TQWCv2aRpFw68912 Gi1+P8v0p5kKoEnBaEVM1SUd5pX5pra3IQNL0= 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=eur00OjeiCvysig81YbdS/LBu3Pwb0c6f1heBJDpSfqgGVrCVU7gd1zCfS8EkNwqrW 0nyl34fU/WW2d6iFqN/tqvrrPYgjkX/2JvnMOpdP8D4qceKauO7o3fM6syZcXG21qu8I sBlE2lbAxfOlrp3rbaUZPb0ZeyQyoxCiPFW9dhiogdiQXKbZTUhWtwbCxxqt5GbsWTj5 OYWhP6bai7YLDAwXwqC4SJlgfEFt0iWBPmNrWujZxx2cXCszLxQ09G4rOAu435rt5RPE 5KECKC2BxX/SDeAlc4W+zkEICrT91o0eGSnc7LhMOQGsLliR+j2q/DfIR3QriY9pxF6y OMSQ== X-Gm-Message-State: AKS2vOzN1+bYtMcceLaMzCU/n743cgom6ZaTBKq8D3Yw0W3cTu3CS+69 0TzF2C8Ho45niDOb X-Received: by 10.99.125.9 with SMTP id y9mr20862pgc.76.1497495991881; Wed, 14 Jun 2017 20:06:31 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.17]) by smtp.gmail.com with ESMTPSA id y65sm2156656pgd.33.2017.06.14.20.06.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 20:06:31 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hw.wangxiaoyin@hisilicon.com, Guodong Xu Subject: [PATCH v4 11/20] arm64: dts: hikey960: add LED nodes Date: Thu, 15 Jun 2017 11:04:08 +0800 Message-Id: <20170615030417.14059-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170615030417.14059-1-guodong.xu@linaro.org> References: <20170615030417.14059-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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 {