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: 160510 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp321431vqx; Wed, 1 Nov 2023 03:44:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHV7c+pze8H5J544I52jX7ZDhg/6+5QPgNIjFPxO6T3UqcnI3ccAHEW7vI3EE2SeqrHqAX X-Received: by 2002:a05:6e02:214a:b0:357:7cba:703d with SMTP id d10-20020a056e02214a00b003577cba703dmr17742364ilv.3.1698835446579; Wed, 01 Nov 2023 03:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698835446; cv=none; d=google.com; s=arc-20160816; b=ZsfrMseXi/pJtYwBXAhhUa8xKguLs/ljk+TpTr/IBNr1KPdKtPpEuW568lflhD+R9U 9P8DSxBclPuFCRSSCLTQm97z04A2a1WpjVceUmSgT97ddMw8tWnE55tgKNuRdv3t1tmM heQmbCLl/1KKewecPEw4eoPvpMDrYB1qoEmZRX5uMQ88CLW7A/AVrb9skacTt7RCOUAI 7g9meh2f9g6dAeVSoxeqfDMYvO2Whf6D84rPtGyfaCn6cvYCdeFZahNrDnOwRe+SzDqA UhuyJjWybQyO8qO7I+MKsY6GP24nWjVkrzxdk8XuZBYrCJ0Eq1N60DkzWDr1igoUcNpj h6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wZwOFg2axaIc8rPFCbcOugx7MnRJYk/GYzsedX/JX/s=; fh=OnNBaTfXQKBQBDvsUIQzn+RU7kgLz9hnLLTPvaMhE7I=; b=JS4eS6hYpek49VBQ6/oU0e8IuDSM2Z4M2QqZ4VORS1qdLnE+eTHnyCfAGfQuMv45Cv h11+RlPcB2He3HafEwHomF5sJSgzLQN3+VbKRExIiDYxnHW7MvnAGs6FpYHFhnBRj27X dpYf0e//NYuohGAAReAR4pNzrqZ3VPuwsIzO4CRQe3m0Uw9+rfq08EWu5CftcdvGBrbK lE36l/6zxL9I0GOuk2zTIyuN2A+JEmRloeuN8p2sjaN12XxSrtEcyrn9MirlrucNP1QM ftt6BEvWqKN44llEld2894aqkvYsqD/luqyqECriZo0r7zFmNHwIEcA8jVv2bW9INClM lXJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=DXFRpLiN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e32-20020a630f20000000b005b8f19be073si2779118pgl.416.2023.11.01.03.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=DXFRpLiN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C91408049112; Wed, 1 Nov 2023 03:44:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231603AbjKAKnX (ORCPT + 35 others); Wed, 1 Nov 2023 06:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231441AbjKAKnV (ORCPT ); Wed, 1 Nov 2023 06:43:21 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7773110; Wed, 1 Nov 2023 03:43:14 -0700 (PDT) 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 01 Nov 2023 03:44:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781358077075037605 X-GMAIL-MSGID: 1781358077075037605 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