From patchwork Tue Oct 9 14:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148498 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4947884lji; Tue, 9 Oct 2018 07:06:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60yXWsXODHJZ14We4JhHlwgx/PEYS6yddqRhfpFXgYK89uL0OeOvYfbTp2F8229eYBs58GW X-Received: by 2002:a63:680a:: with SMTP id d10-v6mr13021905pgc.7.1539093972278; Tue, 09 Oct 2018 07:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093972; cv=none; d=google.com; s=arc-20160816; b=yzuPkDPKrsytQzMAkS4c0pd8i+ttSIFddK5h6lB5iYxd8eGq1ZVHbI0OTDoyhjjDLP OmB58iJDWEg1uUojnd8kk31MNR31t4coXjq+odH6BMJ5eQmIvHxxYCCbj8dTBhI0lWtb TjsCTg/QVAy7hu2K/t9LC5DaWavNSMDIjBye53O9vakAo9aWNXpiuUMWOPiOrBHkwi+Q 7SXVDz+yHMgmYUq9ZOblNhFK8s5X0FKuFCSABB8q9hi8SBmCGDHiiFKeJ0AZ4SOH4ubM opYq1zJtL7U0Pe2wkYtMiSVP9hTunaz7LnPqNz+mY50US73k7w10M+VodxtuIO+W5/o1 +RxA== 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=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=JfNOwZdh4qVORhGSBEB3u+KjbTWCD7WI22cucDKGvnz0ejxszRppI7MLJXXuHz8Ttl 1A1t6YU7o1+zCJHrLkjA4Vr69m1Y/R6avo7uI3CaBjhARCo+zizSQm0Y+PFEj9qOScLc FhYAPfM/rzzyMJ4JHI2KUq5PdwDAVECKad/BjrZaD4VGZzN6x0CgWDSkQr+7wYQ2A6wp Zhb9BZSiVwoaR3zHYd+DHe5it+ZsEDF0mPteP4ZE0Y40mBCjfKdyunMDt4vdMkmgKZqx X7BjfybAN6vYkv16WRQlrJ7F//qer8lsjHBQXeBVFA3/jRHUX7RxHUwYYHi0PYIgIm+y 1OXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R+UTf16z; 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 f63-v6si892037pfb.0.2018.10.09.07.06.10; Tue, 09 Oct 2018 07:06:12 -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.s=google header.b=R+UTf16z; 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 S1727160AbeJIVXQ (ORCPT + 32 others); Tue, 9 Oct 2018 17:23:16 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39086 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbeJIVXP (ORCPT ); Tue, 9 Oct 2018 17:23:15 -0400 Received: by mail-pf1-f194.google.com with SMTP id c25-v6so903402pfe.6 for ; Tue, 09 Oct 2018 07:06:08 -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=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=R+UTf16zmaJc7ZMBbNHwtbXPuEUJ/r0zyjbirplJ0qwSRSkepl+UXCqxKWAF/JbBl1 gX3Ha2zMfEriX1CsQIOnFTX7g8lvRiDEbl+wcI4fl60156xF3nwMV6mg52DGJ77bvOQx /EWNvn4wzKm8echOtZNCPGKaxcacC5F74bYOw= 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=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=MwPEdD2+JTKbRXRGLc9wIZTTIVA2T5AmfsNwfPvo6JPhhKLcorRt6UTt/Yt3uOFb1C 2I5chT3G3qydLD/gEbsiV2G1zEQc+YL4OthuQVhPEpN5CIlBvUQnMlHT1fzKVmZkcsfM g7R2XwX6qnNqOLCR1VuCxm6snkwuBx7CBaj1SW3thF5jJCS7JM1xuXfs9wJ9aZ/wElsV csXpotHYLM5VzbfjLnScFKz0+4e1HQ+PfjrsUT502XRt/m/9v2H57vtHVoNF+51SQtDJ Vzl0nZojtDf6GlCtOOTkq2nRjVsrMs77QN8zI5prND8fJe6jIM/wZC5RWQZCy/7wDONW b5NA== X-Gm-Message-State: ABuFfohQ6/mrCu7bO5Na9+oSbM2sTFhL/t8CZmvZRrrm7GYGY+eoAap4 rPvzJKPZmGS3WWcAUIbizKR8 X-Received: by 2002:a63:bf46:: with SMTP id i6-v6mr17390656pgo.378.1539093968247; Tue, 09 Oct 2018 07:06:08 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id e64-v6sm28947722pfe.55.2018.10.09.07.06.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:06:07 -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 5/6] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:21 +0530 Message-Id: <20181009140522.6492-6-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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Poplar, which is one of the 96Boards Enterprise edition platform. Due to absence of WLAN and BT support, corresponding LED nodes are not considered. Signed-off-by: Manivannan Sadhasivam --- .../arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts index d30f6eb8a5ee..f6f3e928a54e 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts @@ -35,30 +35,31 @@ compatible = "gpio-leds"; user-led0 { - label = "USER-LED0"; + label = "hi3798cv200-poplar:green:user1"; gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; default-state = "off"; }; user-led1 { - label = "USER-LED1"; + label = "hi3798cv200-poplar:green:user2"; gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "mmc0"; default-state = "off"; }; user-led2 { - label = "USER-LED2"; + label = "hi3798cv200-poplar:green:user3"; gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "none"; + linux,default-trigger = "mmc1"; default-state = "off"; }; user-led3 { - label = "USER-LED3"; + label = "hi3798cv200-poplar:green:user4"; gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; + panic-indicator; default-state = "off"; }; };