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: 10659043 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 3983B13A9 for ; Mon, 29 Oct 2018 09:58:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2362C28CDF for ; Mon, 29 Oct 2018 09:58:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16ECC295FA; Mon, 29 Oct 2018 09:58:13 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1C37728CDF for ; Mon, 29 Oct 2018 09:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8k7Vyh2ql8AHh3gqVpBsTpT6Hxjo1a+HRojIkvpqul4=; b=dE4fdhvp30P2cxB87o6HnmjO91 7GU7g1dAaDA81F0+fbhrkJMrIopZzzlondvrsmPdnnX0md1d/Hxit4/e0slrEFf+YI1GDduU0Rpot Hh83FWIFogQc01QbUA7HAf9ssvx/2DBlBtkGp+f3pwAIlOD9bWXg4Hzegp+DacN0Krye8qzkG2Yi9 VsnM8mP8i2B6IIDDz4NzhtyEjF7ZIob0rk1VPEqXdovO/fUHJmUFgFca3Yv3mE84gPYhs92xTYjjN qAhmLJ2/DEiwyf/6WAiIfyCdAfTi3Zp05MzBVAZf4wXEk5da1C+ed1pB9GBhRubhp2C9J1frVDTNb cnf4vG4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH4JB-0007Z9-PX; Mon, 29 Oct 2018 09:58:05 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH454-0006wy-ML for linux-rockchip@lists.infradead.org; Mon, 29 Oct 2018 09:44:00 +0000 Received: by mail-pf1-x441.google.com with SMTP id e22-v6so693957pfn.8 for ; Mon, 29 Oct 2018 02:43:29 -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=RnX4cvxsIA+d5OGqWVNeqDr7HIHomkcyAI2eCDTJ74J4IVz12lvZ2eyf7Xyeced1ST DWRzGFJDKKebUrdgyL4yHOBlkH1aFiIKK3AE3BO1COT1diVSlX/kH/fATdK4AOELGzUw Ntsp5FWi4lflkJEu0gMS/s+DHHXOuJ1RSJ6FDdfCRV2FQH0b8TOOmLXGgEZg6ZFwuKD6 3l6gX6TvI/Nq4wSXduORf48/SlAHo8gNBD28DiRv9Hz3YizzvYonXnZv4U2Dg9abhmwv 4xdbKg5QaBD1unqyYlnoO1/iZ+SKtZaV4VS+TwzEpcdYCX2LxG14+Wuj8TVR8vIPQ6Ux zzqA== X-Gm-Message-State: AGRZ1gK0c7uR4R23Z5JTgf33ULYVrpD0ukD4DQ0cieb+LAXD72Kwq4x6 jJ6tGkMI14HQXVT69EYppfGA 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181029_024330_750023_5C5CCCF0 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linux-arm-msm@vger.kernel.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, linux-leds@vger.kernel.org, Manivannan Sadhasivam , nicolas.dechesne@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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"; }; };