From patchwork Mon Oct 29 09:42:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10658963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A379313A9 for ; Mon, 29 Oct 2018 09:43:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94DBF28639 for ; Mon, 29 Oct 2018 09:43:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85EE62894E; Mon, 29 Oct 2018 09:43:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23E4428639 for ; Mon, 29 Oct 2018 09:43:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729554AbeJ2Sb2 (ORCPT ); Mon, 29 Oct 2018 14:31:28 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43752 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729739AbeJ2SbV (ORCPT ); Mon, 29 Oct 2018 14:31:21 -0400 Received: by mail-pg1-f195.google.com with SMTP id n10-v6so3598829pgv.10 for ; Mon, 29 Oct 2018 02:43:28 -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=eF7R+wV5XvQwulmXcDJVVSDaYAoMfcK0EngVpIC/pTQ=; b=T1oqIA+WZ4VaD4gwcVt/EeAQUL4LV9w5Bh7g8yYjkzfIfCAFcLVAnsA19+mO3LBBP0 PpkpGcOSbeMuVukpajaZrAZ0Pyau3UPtBCe5qq54srP8RuB1aBuHiv4te2jgNa24fiLE 5WRKUPHFDvMM5lqLKbVjQMkuvf0f40dJKoX0o= 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=eF7R+wV5XvQwulmXcDJVVSDaYAoMfcK0EngVpIC/pTQ=; b=JEW6CY8fU5h1kpe7WGsfwySX9YYudESAb6E5Dm3vEYhQYcxCYHIR6UyDECVKOYtDiQ Jx/tfUUQ7zJQt8Ft3PzMA53+gzxZTcZ54c+H53404kQj5RGxvCvZfCaLtbW3pFKbAySQ 5c4c69HsIjgSpfu2ckoHfMZd9B4M+NsEjYl5jLkwKuSzVKbnbt8uAazpz1Kk+iUPxH2T otxt79QJ9ZPXHbzNZDbWchgEt1Q5sY3pPN8I/XLHcfDCz5P/ZImzMVwfCa4aA0Lrke1Y 9KmjPcNpAFyIvwtm2hahxWLhB3VjkrurwFQLOA3eEMAtSuTvf3a8yNT0nn+See6lNgcx Ig6Q== X-Gm-Message-State: AGRZ1gJItFt/lVEGP/fD/vph++YLzyZsNyILyFEe7xBohOOeYznKuR0Q f085t4e0HFLG+xeJTz/pM5gB X-Google-Smtp-Source: AJdET5dV2bclnlsREn8R0dTaX1qfHV+FwC1BvmKMU/oD6xKGnnAEFNm/zu0Dnw3DX0BceVZOoDepDg== X-Received: by 2002:a63:2e47:: with SMTP id u68-v6mr13188980pgu.294.1540806208288; Mon, 29 Oct 2018 02:43:28 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:27 -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 3/7] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:41 +0530 Message-Id: <20181029094245.7886-4-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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 HiKey, which is one of the 96Boards CE platform. Signed-off-by: Manivannan Sadhasivam --- .../arm64/boot/dts/hisilicon/hi6220-hikey.dts | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..610235028cc7 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"; + + user_led1 { + label = "green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; - user_led3 { - label = "user_led3"; + user_led2 { + label = "green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; - user_led2 { - label = "user_led2"; + user_led3 { + label = "green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; - user_led1 { - label = "user_led1"; + user_led4 { + label = "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 = "yellow:wlan"; gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ linux,default-trigger = "phy0tx"; default-state = "off"; }; bt_active_led { - label = "bt_active"; + label = "blue:bt"; gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ - linux,default-trigger = "hci0rx"; + linux,default-trigger = "hci0-power"; default-state = "off"; }; };