From patchwork Wed Nov 1 10:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 13442752 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCF87C4332F for ; Wed, 1 Nov 2023 10:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=N3vP1nfiy/1nuUjSALTmx1EUUss1XvUGJciGtM2l8PA=; b=TLJ24TZhoWrtN4 gCqFoVC+x+Xud9LNAJhWFGIMuEH3YSWnuFqLg2LV1zkHeL1LnP60STqUgvnHXuOxq9hxCYtenoJOI 45KqZBrXOnspGQ0F2h6w93xHAVZVltEA0aoOvA/MyP8nCbUCVTmowH2dHIlVLnDAxVFYrfAj53prx 397wnOFTMY6S330owA6BCHrLllKp3Kq3pKXbYJo6MQAclfbLMY8aEQxUK42G32i+7aAU0weriGvso WPKPl4F8tt/cQ/cjN2zWQ96Z3JyBqCldYeJVh4u41HHUDG35wcq2Cz8502QjbuEKjNzZIszeSgeC+ j0hTg5Dr3v8YcCX2Fa+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qy8gy-007D6L-2k; Wed, 01 Nov 2023 10:43:20 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qy8gt-007D5u-1T for linux-arm-kernel@lists.infradead.org; Wed, 01 Nov 2023 10:43:19 +0000 Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BA0768D; Wed, 1 Nov 2023 11:42:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698835376; bh=38CcRJe+nIK650sdIpgRXxaQUBx8YAWOiB8aCVgbhsM=; h=From:To:Cc:Subject:Date:From; b=DXFRpLiNglTV9lnJGWChXEyEd8Eg92X5HEnaff3vyK+GsdcIfv0dl+dZjqNeUpAv4 EP3uTx4A8NIe/W4WMONtlA/G0WpP3CSi+2YvoA/zrpa42YpHij405Jc7HzofkgHsto jqk2fjb9m6CbH3Xh9hAUqSd7hU+rCd3RHpw/A5o0= From: Kieran Bingham To: devicetree@vger.kernel.org Cc: Kieran Bingham , Marco Felsch , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] arm64: dts: freescale: debix-som: Add heartbeat LED Date: Wed, 1 Nov 2023 10:43:04 +0000 Message-Id: <20231101104307.2207938-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231101_034315_633917_132D9B80 X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Map the 'RUN' LED present on the Debix-SOM as a heartbeat. Reviewed-by: Marco Felsch Signed-off-by: Kieran Bingham --- v2: - Fix label - Correct color and function - Collect RB tag .../dts/freescale/imx8mp-debix-som-a.dtsi | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a.dtsi index bc312aa1bfc8..91094c227744 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a.dtsi @@ -6,6 +6,8 @@ #include "imx8mp.dtsi" +#include + / { model = "Polyhex i.MX8MPlus Debix SOM A"; compatible = "polyhex,imx8mp-debix-som-a", "fsl,imx8mp"; @@ -20,6 +22,20 @@ reg_usdhc2_vmmc: regulator-usdhc2 { gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_led>; + + led-0 { + gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + function = LED_FUNCTION_STATUS; + color = ; + }; + }; }; &A53_0 { @@ -203,6 +219,12 @@ &wdog1 { }; &iomuxc { + pinctrl_gpio_led: gpioledgrp { + fsl,pins = < + MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c2