From patchwork Mon Oct 29 09:42:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149646 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906416ljp; Mon, 29 Oct 2018 02:43:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5cnli2wm8xIVCjFA+FIYycJBLYdoS1h5mXJBhM5LXrtmzRo5/64cJQtjjAc95ACeiLHLtZL X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr14310556pfj.152.1540806231175; Mon, 29 Oct 2018 02:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806231; cv=none; d=google.com; s=arc-20160816; b=cdImaNH9EpEWwZ1l5dphoOf9ESPTZs9dn5Uv5+IA8zj0rRnJ6snUdCdn0JxIyhROpj izXEFmr9Xd+vVu1nAcMaV1j1ESz4qPSLj16EEb4mZ5Kk6+PkvCCNhzgdUB9PvKUiPmzo cljV8kCaJj4+TZMsOUh+jXVxpw83MENR9RjfkdxqhVbXpB4GIBTr9bArPchmmpUxowRA eC1/81G5Nuli+AxcQ8JJCHS0P/Uzhw6zJVC7cQQsk1rG9k5eiLHNJa952KSSFbFasgvN 0G49461jAmVvXIkJa8AxAPjQZwNCNp4Y3LRsMtRnT3QrluOjS/LJXQeNqpb7+HGb9PSK rz/Q== 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=YQ3Z9bp1n09rCmgxsmmHJ+hpIsqJ8y+SpylMZ3JhIYJJur392dN3hRFNrwpZ+wQBPx 0ngOtENkH/FljacgncTfbyFqPey2wsHSNEnts5TtEp2lh9Nvf5wh0qGUaQozwXmP1U65 bHXwwGdr183h+ilDfDip9n0kzegN08JEqK6x9WNSjXLQH19RK2l3knE1PaoYJfQCgzqW Sr+4Di7jrxVhBlQ5p2Co691SRyrorzgHaPAcq0pCL9/UZbt15Ee0Kp2lXQAGPZgsllEz Saol2I6qYbVmkNbaoJ3lMw/TROPzxBQVA+qej8u6WeWMVQdXJGvyVgRcr3czlgJFbIOH e/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eLuO/mrF"; 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 l30-v6si6664190pgb.404.2018.10.29.02.43.50; Mon, 29 Oct 2018 02:43:51 -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="eLuO/mrF"; 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 S1729787AbeJ2Sbm (ORCPT + 1 other); Mon, 29 Oct 2018 14:31:42 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45127 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729788AbeJ2Sbl (ORCPT ); Mon, 29 Oct 2018 14:31:41 -0400 Received: by mail-pl1-f195.google.com with SMTP id o19-v6so3515454pll.12 for ; Mon, 29 Oct 2018 02:43:48 -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=eLuO/mrFrZhhfoTh7+ecSofPtV9INZyKge0eYhB0pd+HlMYW0bFQAN/PIf/pJIqKN9 73CuoW05pQJZ4MfnyiA8r0ZAk0pyRiYpGFUV0jbJuYTi7L90N23UIpQknS7+0GrD6XK/ XtDCMn04D+SenZUROSTtA8xPnONcQWNh82CWQ= 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=D/YBWyAzKtCAOkzK1SJnqEnqSIGx0cRBiyoYQonsJHm+8KrifZlXxPZhdLLxtbnQAo 6/t6QqX1HdwRxvwmWAueIkgMErl3xlBj3zwiPm3brDvL3caS5lOtWW7y0MqC1PO90gYG J1XhVkhBqzFPzq/hZVU4BKiEJ10ihP/+EBTgeD9CxgUj4i4kvg1Hal1jpUUXKbrVSiBL oBIAcP0ttIpGsWa+7IfGyRcez4KrryfUeC52tDs63Ohi2pvl9RQUDf/6siy4RuP7mY5s tdB9VT8mvcId3z+Zuy+W0jxXEMBOET4AL8yjKi8yoHwhPgkTtksKKR1czg8Hbc2m8e/s rOlg== X-Gm-Message-State: AGRZ1gJvPyZuQ5aJ/XOHz1XV4jk9rNcJBQ+0IqJCg4174ApiW/Cm/FVR xk3AxaZxH5dim7fRq9mY48hY X-Received: by 2002:a17:902:bb96:: with SMTP id m22-v6mr13451926pls.117.1540806228450; Mon, 29 Oct 2018 02:43:48 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:47 -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 v3 5/7] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:43 +0530 Message-Id: <20181029094245.7886-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-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"; }; };