From patchwork Tue Oct 9 14:05:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148496 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4947668lji; Tue, 9 Oct 2018 07:06:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV60emeTZrdcQtjyE8mVPYalOC0OTdoSpo3HjtJRaCbpH9TbP2glHHUqO2xewt0Tz7AWhgwC0 X-Received: by 2002:a17:902:bb96:: with SMTP id m22-v6mr28772683pls.117.1539093962426; Tue, 09 Oct 2018 07:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093962; cv=none; d=google.com; s=arc-20160816; b=pp2HHjhNxxehRXDICD3W0aBLKiXWOS70Hi9RCyfyKsqBxJb4lHV2pLVrL6EWAZfBI+ 3EM+mFPG3c55QtguciSpQKtT5yQ1pitOdLi7l2MwWBS35EEXXDhEnR+yyvakFOh5qt74 zZ3UpMFFfGrM4CzgMuZo9bQfF7ubVAcR/tdvWgU/JXsK0azOvpRBySNorCgIXYS/e+Iq zDmZYArZPE1SCr8Cwuo0jQ/GP7vaVx+vlMpgMa7Ct4iRs8gWUiQeTdi+ZdCLfwHOSR4+ TWWnkbGQ/dUGhdwVqhRX/sd8D6WnPAOMrN2084sQlPrNOazGIq+TdZ5UBTFy2IuaoGo1 SeCQ== 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; bh=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=lF9THFh85qtD+4JnkSL/Kyd1OsOywt3KrJpwjgjZK3kObFt2xHFx9BoxYHK5xQVBRC iasGONTt/x3w36GI7VgMF01bSF1A1ukl9ePjRkhIK8oZi7cMl7XoX4AyNJn3Gzl19/Fm GlaZDIESc0qvFRBWZajya9srEWpFWX7fwWJ42p4vMSP0ph1R6NGW6Xn8LXVjKzzWNY1F EFIrfuEOI7kHS4c57vQEXBzBntQEkbpnefeWDsRteMeTAwQKBPVm1s3l5SmPBJPWDPnE zntLfKoXcP0ENxIyQEmi+pXg4PX58UfpjOxbOu4fl62v834CIhJbTmqeiSGgKel4q0zM JYaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cIj4DW1S; 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=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 185-v6si18569034pge.516.2018.10.09.07.06.02; Tue, 09 Oct 2018 07:06:02 -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=pass header.i=@linaro.org header.s=google header.b=cIj4DW1S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbeJIVXI (ORCPT + 6 others); Tue, 9 Oct 2018 17:23:08 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34024 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbeJIVXH (ORCPT ); Tue, 9 Oct 2018 17:23:07 -0400 Received: by mail-pg1-f193.google.com with SMTP id g12-v6so875911pgs.1 for ; Tue, 09 Oct 2018 07:06:00 -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=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=cIj4DW1SfQaNlFJdhnGgnF4jb/XGXIwnEgEEcFf1Tp7iWKUMxnWNdiMDh1qM6uybzM PqwWmbQyWCCz5HsqZd4uxFqDxNhvoJUgTesCNu6bgQ1c/r9Wpn9zeRAns+7MwEGjrVOe WBIb3z5JExOkgna6KkUfKqnmnLX8Y2mol9hvE= 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=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=uVC4e1XyvfUeeia+GDR4fC8ltsNAfAIubGHGxJjXOhiKQqm4PdMzcti2RapsMbY66v aiBb9in2ZsQrejN00uL7lSsAOHH2nGKwH/pKnwA84KVBJCSh1kDyR6iUGQGVj3IFBvYA QcVm07T2ttMmV/x799d8kXr2e2YtvzDhfUnMpqA4/1S3RggYm9Y5TYT+hUKjaYyHYMbJ hb4i+zWZNf9Hlxx8hIcgMpz3JbvjgnRG7lhY3v4CvpdG1wdPZakApten10rgwcPLdBYX n0UDJE5D3RrxriioTXqZdVDjeQtSctzS5VWB2uhI91Kgkqmt5aPGt6Z01WHAgu40DDBD xeNg== X-Gm-Message-State: ABuFfojrORY4rXmSuiBPn43zCM2ajcfIij2BIyTGVCnlxxrrBuMeO+rU 8Y5CDZeRPIgWHumrokAfFbJ7 X-Received: by 2002:a63:cc51:: with SMTP id q17-v6mr25509145pgi.291.1539093960346; Tue, 09 Oct 2018 07:06:00 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id e64-v6sm28947722pfe.55.2018.10.09.07.05.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:05:59 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, Manivannan Sadhasivam Subject: [PATCH 3/6] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:19 +0530 Message-Id: <20181009140522.6492-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> References: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For all 96Boards, the following standard is used for onboard LEDs. device-name:green:user1 default-trigger: heartbeat device-name:green:user2 default-trigger: mmc0/disk-activity (onboard-storage) device-name:green:user3 default-trigger: mmc1 (SD-card) device-name:green:user4 default-trigger: none, panic-indicator device-name:yellow:wlan default-trigger: phy0tx device-name:blue:bt default-trigger: hci0-power So lets adopt the same for HiKey, which is one of the 96Boards CE platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..3dd9543da0b6 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -340,42 +340,43 @@ leds { compatible = "gpio-leds"; + user_led4 { - label = "user_led4"; + label = "hi6220-hikey:green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; user_led3 { - label = "user_led3"; + label = "hi6220-hikey:green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; user_led2 { - label = "user_led2"; + label = "hi6220-hikey:green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; user_led1 { - label = "user_led1"; + label = "hi6220-hikey:green:user4"; gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ panic-indicator; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; }; wlan_active_led { - label = "wifi_active"; + label = "hi6220-hikey:yellow:wlan"; gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ linux,default-trigger = "phy0tx"; default-state = "off"; }; bt_active_led { - label = "bt_active"; + label = "hi6220-hikey:blue:bt"; gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ - linux,default-trigger = "hci0rx"; + linux,default-trigger = "hci0-power"; default-state = "off"; }; };