From patchwork Wed Jun 14 08:23:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9785817 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8381960384 for ; Wed, 14 Jun 2017 08:49:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 675692858D for ; Wed, 14 Jun 2017 08:49:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BDD0285C1; Wed, 14 Jun 2017 08:49:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CFCA12858D for ; Wed, 14 Jun 2017 08:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tNgd0tCDxQR7HJN7GjxNsQXK3Aj1NSeqoDjywbyAbRQ=; b=rbLkd0rAd4v0WafzsB8D1MMvJJ /kNh3vfAN/Rj393x+Lbf7e0v0iA5mY1xY5OwZNb+Dsu1CRf+L84qIKvsyN0EJ2PtJdiTm5Z4sohv0 XmAwmpYnHEtdFYPq96svXDArK6oX/mVWkDT6STUeV5PGfCsBXbgqg4M5xrYLv5GnOseML1NU5KWoN kwDINusXsuuixk2WtuuWqh/zkc3zrhN5eCp2FVmoWGVeFZcDZBhW/qrnLbSE9dFgBNB9WvZshwysn 2Mjxl8hDwiFRfPidAOvPBmXLhYEQzVOmxtsoYKxYk+L/CVc+j7O+arLxO25JZSqN1Mnl8Ge5vDYp1 6YpMer8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dL3zr-0001yx-Hm; Wed, 14 Jun 2017 08:49:51 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3zM-0001A1-CZ for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Jun 2017 08:49:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=QxcHnPP/OhulpoUFAlwheRs7x elk/f+cXZv/rFZokeqC094YRi4wAxpgdkp0ChhuSLr4VA06CgEAmUgKKR/XKcg3Wg458xYyYSEHvP IPtdgk14stJEIjvvb7uB/ocFzDSOkPbmtY0Ko3+7pzOeil0MPWHXJ9FkIhUVKhuFHGca1y93PpjW6 5WUkPDtyGWbt6N5+BIt2tllRqh98GM0BpUUHXMff+vuL2CpQ56kflda4RZNqWBb4Od+kLZiKHN6Dz PIgPqIyFIgBfdUlEwfA7Qu0T8O/sRm+UeqIgWKcF3Y4TWaCIgKB7rXASPDBACU5Sfokeyryo7Ktv7 DX8o6zwaQ==; Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3cB-0003EF-3z for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2017 08:25:24 +0000 Received: by mail-pg0-x22d.google.com with SMTP id v18so72591693pgb.1 for ; Wed, 14 Jun 2017 01:25:02 -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=LEFpAON/OPh4lm2tBi8IXn4Ski49P8q7MiWeFZQtQTzYaFhE9UsqXJ+TvaDTNLwq4+ R6lV9ifrIeP5sTAmNes2oewdGjAeA+riVLAtcMkCHVCHWm+THOMntER25qgLRAqynfxK /kE9EnmmDLKFU4uLZm1QTkxs20HdaJHygzRy0= 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=hdJUK9pSC6KfMt2Vr9aXFOJmkc6iSdR2npjzQKmvJm0Svol0WMAbgsd3Xz88stYbek QmYI0ll/DA2aMdOd8L/dB9qjCXee9HiEHc84DJwSi0fTkOqKGub0IEMaaq9jfych6esX 8iUlyW3qrZ3Lv9XDNTh4yg6rv/fiiIPsHYp5jLWO7KLIIadk9F/79M8QHY9zmZ4BRc7a 4vkn0S8DgPW0SKOwxrK0SPqDQwNNRoOiwifkABSXDqiU2c3Zeaw6aa3jHXyokW8pvnp+ QkK5vk/wltWdfRyopVwBKeutLngb7X+LcZ32NzHrUEkD7Tz2VL7vUuySgAHE8UNsQiDJ HNqw== X-Gm-Message-State: AKS2vOxaxh3yjg3Q9jH2NgwSOCULwBVtkPNa7zAOUfWaF/zV4PoLP0fV ZxP/62sxxD1annVm X-Received: by 10.84.217.141 with SMTP id p13mr3660452pli.271.1497428700831; Wed, 14 Jun 2017 01:25:00 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:25:00 -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, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Subject: [PATCH v3 11/21] arm64: dts: hikey960: add LED nodes Date: Wed, 14 Jun 2017 16:23:28 +0800 Message-Id: <20170614082338.15673-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , linux-pci@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, zhangfei.gao@linaro.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-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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 {