From patchwork Mon Oct 29 09:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149637 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3869535ljp; Mon, 29 Oct 2018 02:01:28 -0700 (PDT) X-Google-Smtp-Source: AJdET5d9z7nMqcbNI+RhIL5N7MF2JX1goJJIQvR6bxH83kRAo26kce5blu2Cy543RgH8j2g0hlVq X-Received: by 2002:a63:4c23:: with SMTP id z35-v6mr13107435pga.312.1540803688332; Mon, 29 Oct 2018 02:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803688; cv=none; d=google.com; s=arc-20160816; b=BdfP9PJcLyLStceOIu0mfQ2OZlYh39v0uB0am1+/959tLgFyu+VBCbddptZAuwqdam YB9+KxtXSeaO7j+1lg/9cjO2nQALSyHsrXe8xDUWJLMySPhuZWkiyuesFLnepOnfbAy3 fMsBgdvx2rZUVwlPwSYx4LlW2A573UIxm4L1OisHksISuGDRqCU6kjarIFeytEVOIE8A RkgoemIsbyWColf6xfkc+YTbT8At+WZ6CQj8cs2z+zAp+uiBW3rHUk+vtyolL8ISZjnb 4bBuBCaVWkmnlXzLNFZ4xStnEgjxDEM6k/58B/hrvrMJ2WQlXi3jOQRXpB4T+d0j3Tmb C5Ew== 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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=PJQJhGagAWS2b+ljMBedG/9IX/N8XAtLzb2nhhCv5lEvhvTusjkgMI3Lh2dBef6q+4 4wfDNlHm86r3WZJHg+scjHc9WG8lzvjB4jCBSUrRLyYsdR8n16FagTufgIs6UgAMPfry zEIxbplTrid0huxqzCjqgmqzJCoR2MuyyJ7ld/9kPcrIqfMa9AruXGaEMAv6UT7LUzLW BfwlZ0znwGLpi53rHtlcJ2QKmv+VW/SKXHHlk8m9gTB2+4GGGYH4H/i64KEm7Vdqr4/U EThwpsOMqQe5bgRVDji6NlD4LmGYDCefa45EYJgfdKfAhkx7Dx+OAdSJd7gglAh0AsbN paXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ebZDNOIl; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 f8-v6si18292314pln.368.2018.10.29.02.01.27; Mon, 29 Oct 2018 02:01:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=ebZDNOIl; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 S1729643AbeJ2RtK (ORCPT + 1 other); Mon, 29 Oct 2018 13:49:10 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36597 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729631AbeJ2RtK (ORCPT ); Mon, 29 Oct 2018 13:49:10 -0400 Received: by mail-pf1-f196.google.com with SMTP id l81-v6so3681195pfg.3 for ; Mon, 29 Oct 2018 02:01:26 -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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=ebZDNOIlEKX7hx6BlBHcemhr+HLPaoSt2U0XQFC+CPJBEhjHMe7qiFAeOXuC7T4XVs bmPNma2YUkdycffAOC7nyECgJ5M2TlpIt/vauRBNOp9QcgN019BNj9UYrHPeYiGqsGqb ogA5vbqtg6LuiRXUgHDGDwOvc5/kmp7U04osE= 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=Vbqz/FFQSiZYMz4Ct6V+6er7vQMDEB5XowGv/dcExWY=; b=ggbI9KtdEBgbCphtsDqtm1dXZJf74x1GoS8XKUojDeEb+pOoFWqVCyV8Y31jpaHqO9 9fpx9Xtjp+4shW0eGkMKDFUrk2xVEFVWnAn7ip3K5CPHEs0clnrGAZm/7eMLb+sinsAt LStoUHnZWnTCWzZStRzZNJDEtTNV1h+b+P4uyoN9o1RXQknIJqS1JN4bJgiY57IlU4kd n7FRnXbHFyfRNhDX/+hJ0rZYhV0VQhoGQofNL1AgpuvX3N/glG71O4x9jEcv4Qb65ORF RYFp++UBCBuRpJbnm21X+SkGzCtnXNNlS+svksNYMs76kIwKT+Lz4P2IvEqZSTXA3KM1 ZuIw== X-Gm-Message-State: AGRZ1gIBu+V3g/hxYrMoA5yoy0PppWDlfw7wvhJPRe2Dju0XHGevrN+7 cg5QMWpBnCUiHBwhS0pNRwS2 X-Received: by 2002:aa7:8603:: with SMTP id p3-v6mr3225827pfn.247.1540803686248; Mon, 29 Oct 2018 02:01:26 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id m11-v6sm28265245pfi.102.2018.10.29.02.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:25 -0700 (PDT) From: Manivannan Sadhasivam To: robh@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com, pavel@ucw.cz, andy.gross@linaro.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v2 5/7] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:04 +0530 Message-Id: <20181029090006.4353-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> References: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org For all 96Boards, the following standard is used for onboard LEDs. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx 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..32716c96b457 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 = "green:user1"; gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; default-state = "off"; }; user-led1 { - label = "USER-LED1"; + label = "green:user2"; gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "mmc0"; default-state = "off"; }; user-led2 { - label = "USER-LED2"; + label = "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 = "green:user4"; gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; + panic-indicator; default-state = "off"; }; };