From patchwork Wed May 17 08:37:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9730473 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 E049A60138 for ; Wed, 17 May 2017 08:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD85824151 for ; Wed, 17 May 2017 08:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C23772865A; Wed, 17 May 2017 08:49:05 +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 3516624151 for ; Wed, 17 May 2017 08:49:05 +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=kh/ArekNbSpr3EX+W18/pde7VBnD2OijQHiWIq4ogqw=; b=L6gpaaj4lTjwmei4UHP2stIaDZ vBIUG8313vgr8lLI9/zdun+89RNCCiLERoHILqgiikX9rWuHiyn2ZqapZCfFINqgxIOF0YrekOFHI MyubHK9ccPhBkpQy/FURLOtlDY4MWUVUJq0UAfgtyr0gB8xzlzPjHsIv64hXpnjMZwLXSjzKqY7Ov 0PZcpMG86kfQZsvswQgaT/zdh4vDvhyTbN4FkhlLGy19vu+2D0cZesWYF1s0txrkin8jUg5CMzW+G vVNoqJRae98HstI+kEV0tKxuumAkHtvEVcUwsCKGxVTNWeIacLOWwNyh63qAsmR7YxhJbEAtx3yuG eUoTCM5Q==; 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 1dAudi-0006ta-0Z; Wed, 17 May 2017 08:49:02 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAudU-0006Ru-L2 for linux-arm-kernel@bombadil.infradead.org; Wed, 17 May 2017 08:48:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=XQG3jLNAKCdaavzcr5ZRCJk5/GVomXK3lU+SfAZlrio=; b=YDmnrcXulMyJcjG0TyY+IJUlz 4UCTGUtI8kNOZbLiAHFzFIW0GDCxtUQVZx5TwrRRsitt9As46ddQSfedvvbT8ScXVphveAtGV6409 0NeDdYiBJ2v7Za5VtbD8eVA2RMIu6ks5VeVKDJG60IUihF2Em4a2p2RM40FMyzz3TKr9bMl90zxLJ vc7MpMkE8WNRx2WjsVAMCPrwE+Pc/M88nu24lFfroOe8X5o067FTJOyJqnG121GT+i3ATjc1zHPa0 kqFcSOgZf0hw4zU14w77Gm3TyJYGkt/TiaTetXZbdGtCig2B0SG2cDORAvRJCvsFadoiq/Es5GpdR bsyox6VpA==; Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuUU-0006qV-37 for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 08:39:32 +0000 Received: by mail-pf0-x230.google.com with SMTP id n23so3963080pfb.2 for ; Wed, 17 May 2017 01:39:09 -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=XQG3jLNAKCdaavzcr5ZRCJk5/GVomXK3lU+SfAZlrio=; b=Q1hy1QPlVk5m3dkyYSHhIJfVOMD7ISy+3KPbwZ0Cz8mLqYYs0duv9PuIDscx0Aw5YG 0PpoWOUhPn/hsZ9/tFIPKspZFl5Gr4PC0GlQ46nm3bR0w9OGwEtG5TI99vfcsTVAnolW FJM47tGnbnb1rlk8FOS/l6XnWU/NF7G9Y0DsY= 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=XQG3jLNAKCdaavzcr5ZRCJk5/GVomXK3lU+SfAZlrio=; b=KYAW2e/zZ++e47W90L693noM3aTCsFA+bjTIeNCZtTLbhbWrho+IwvlKhc2kubkx53 Ah4YsCuT7LrakaoV0FVE9B22lNdzsqchZZqg8HMq3vdecH3W7/rCZb5c3lszSvkn6dbC hy6OjAXp6SFasIihADuxHAVJxi6A/gkIEw0hKgS2IFUJ4ZytDCnRq3UnMGmieyCyEORf QPDur1tzIwK6iDEfLrD59dftvAOR5N7U9LW2SCvNAkBc8HGhb88bRH3DVHOe5VxczsHG OO6ZPOc/bA5TQ56vbP3zcujUZ2ybuHutzcKNzXIybNKbgjj/yGuyv/uW9iF0Ng8J9ALw tIaQ== X-Gm-Message-State: AODbwcC6Dvuz3zdLfQCcmArj1iDmP6Kyxi0YenPD9GFiGBt2dBySt62e 5ReqrVrVV5yOYhwF X-Received: by 10.98.222.133 with SMTP id h127mr2384121pfg.63.1495010348183; Wed, 17 May 2017 01:39:08 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.39.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:39:07 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Subject: [PATCH 12/12] arm64: dts: hikey960: add LED nodes Date: Wed, 17 May 2017 16:37:45 +0800 Message-Id: <20170517083745.24479-13-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_093930_305334_E53CA208 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. 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: Guodong Xu , linux-kernel@vger.kernel.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 6de86c0..4839885 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -48,6 +48,54 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + status = "disabled"; + 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 = "hci0rx"; + default-state = "off"; + }; + }; }; };