From patchwork Tue Nov 10 15:38:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 11894669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18F36C388F7 for ; Tue, 10 Nov 2020 15:40:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8469F2068D for ; Tue, 10 Nov 2020 15:40:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WIUc1iPk"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VbX18nLD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8469F2068D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=+D1KkjrhIIkwNLN/9klw1iwQm/QVr5xyxamk7OsSmps=; b=WIUc1iPkLLy3rBw2P1XhkIDx3h XxBSvPlZ4iaZ2Bz9bvWT1r0xfKnQCJU08qWLmxWQsDI4+hrtyU+2+d84Nsb5AnWa/i22ILRdytSMZ IvxfCK5+wRu17y3ufIpgJPfzcHnbXSED27i1pBPJiJNHyK0PXO14JswMt/nk8S5k2bbUcj3cj2Xh1 xtChi5wpDB2DBU/xRohHX1nzzxL6GzGLvVv6D0VG0zCMhaDvRAqdzb//7LbTHHKszWZcWCQqPHZqe QGXnpT+xl2wcaLOS/pQ7DKjU4ocPZsKGGBEXKuZg7Q2JMRzg4r5tocHifZwFQo8o1DkvbxmAOF2ZK h9D3tM4A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcVjM-0005mf-Vf; Tue, 10 Nov 2020 15:38:49 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcVjJ-0005l1-7e for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 15:38:46 +0000 Received: by mail-lf1-x141.google.com with SMTP id e27so18176356lfn.7 for ; Tue, 10 Nov 2020 07:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r4km4Tls255Bh4L5TRKbqRQTr1tWzdtCkweFdA8HiLE=; b=VbX18nLDdMXqme+sMDPUmkry2TvFlm2SiUhCw2cwE6gdQIa8Bn/JdWORAZ9zlMjqQt 16CQhY3BwLhL3uvwt073lZlQXR07pvETdX2QZsZonFtiWbPoyyqOgxFkNUXZ8AtvUQXP ONIoMLuWY9vp/DAQdsgMcm/ANYm/WbPejL10Ji23L+HqgHr3HmF/MxZyZO4A8NPS2pA1 j4pnk/vdc07ofzgOuThevh/muPqoguzZN7rgyhnYf49m6JMBlXIVnk7SxVCARIGpgSOx CNYamxQwBCP2LeR1dB/S/bVdnO67UrHFupmfQI84qobCjU0r/Xi+sVZveIxZjp4zBZSs GZTQ== 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:mime-version :content-transfer-encoding; bh=r4km4Tls255Bh4L5TRKbqRQTr1tWzdtCkweFdA8HiLE=; b=T/SEvfTky7L9KzNcBOnFqDNMJsk63wvu8AI4/Op5mb3FZduLhI6JbizTrPmSSB8nyV y6bannA8M71kou9ECJ789/Rtw7DTaELSYtbQDlXZA/tNzTb7VuBFFy5nLCBwpx8a6qD8 QwzIlBa7/d9XXEgDWiO0BbGXyRG3+NvJOC4KkLVNbDvTdmmg812aXNSl6ARa2Vw59IF8 mmdrs4CG/148ZfWdHLmuz76onNnuft9dhxE7rb0//wayRy2z6rssvzGWyyuOe2HYIh9v 0vIsbrEkWKcFao6Spz6IO1pUfC+HsF80LEXvOSErUO05uAvpcIHaLnIxEaSCqS3WT47s qFRw== X-Gm-Message-State: AOAM530fRLBd2CvOObU5c6Jfpi4n2DHaI4tkKDX2VeVJUsQzMI1vXULG AYSaDu8j64+OKmehbO/9uYM= X-Google-Smtp-Source: ABdhPJwWxtgiwpJILLImQSqLjczvldAvw5Ka9klb9HBrWOQyetqMqDDXrwfMKgEBvhZ2prUm50Ho0Q== X-Received: by 2002:ac2:598e:: with SMTP id w14mr3946481lfn.187.1605022722230; Tue, 10 Nov 2020 07:38:42 -0800 (PST) Received: from localhost.localdomain ([194.29.183.4]) by smtp.googlemail.com with ESMTPSA id n26sm1821663lfi.303.2020.11.10.07.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 07:38:41 -0800 (PST) From: Tomasz Maciej Nowak To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: mcbin-singleshot: add heartbeat LED Date: Tue, 10 Nov 2020 16:38:31 +0100 Message-Id: <20201110153831.5336-1-tmn505@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_103845_283955_66383C07 X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Russell King , Alexandra Alth Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With board revision 1.3, SolidRun moved the power LED to the middle of the board. In old place of power LED a GPIO controllable heartbeat LED was added. This commit only touches Single Shot variant, since only this variant is all revision 1.3. Reported-by: Alexandra Alth Signed-off-by: Tomasz Maciej Nowak --- .../marvell/armada-8040-mcbin-singleshot.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts index 2e6832d02a59..411d20064271 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts @@ -5,6 +5,8 @@ * Device Tree file for MACCHIATOBin Armada 8040 community board platform */ +#include + #include "armada-8040-mcbin.dtsi" / { @@ -12,6 +14,19 @@ / { compatible = "marvell,armada8040-mcbin-singleshot", "marvell,armada8040-mcbin", "marvell,armada8040", "marvell,armada-ap806-quad", "marvell,armada-ap806"; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&cp0_led18_pins>; + pinctrl-names = "default"; + + led18 { + gpios = <&cp0_gpio2 1 GPIO_ACTIVE_LOW>; + function = LED_FUNCTION_HEARTBEAT; + color = ; + linux,default-trigger = "heartbeat"; + }; + }; }; &cp0_eth0 { @@ -27,3 +42,10 @@ &cp1_eth0 { managed = "in-band-status"; sfp = <&sfp_eth1>; }; + +&cp0_pinctrl { + cp0_led18_pins: led18-pins { + marvell,pins = "mpp33"; + marvell,function = "gpio"; + }; +};