From patchwork Mon Jun 24 10:39:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13709319 X-Patchwork-Delegate: mail@conchuod.ie 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 36551C2BD05 for ; Mon, 24 Jun 2024 10:42:02 +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=CByj2pl36K/TKJijfQ2m0C6O4+S3c8WAwJcTtWa01mg=; b=I2oEqGNkfczm73 owOHJPSMtHZ2aO1ktzzBtt0pKtWVRLN3OjKTOautmNoX9Bh6DZ+IkeAHV0/cf8V3pyzR7SmVId6PB V6zngIq14L6P/YK4pev6VvV1s8un/9pK6F1Fuo5cG5VKUvH9Zcf0Ab0y2qLxIkfnp+3oQ9YtwOzpJ eIFzwnj9+hkYpxFJ9TsYPt6+sdObIMeMCOUIJ/vtSMMaKJ2OERWUlNT3fgLTRLJpx3eT2P6H4RP8R lGv5DC+1afRxa8TBhjkIkYuO6rvmS0ZfJHcC7t3hE3y4kGl1FlVpLtg6lqrHe6+qq38Vpqt2lA33U SbC1SOwHIQy3cXXyE7lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh92-0000000GSZk-0bKP; Mon, 24 Jun 2024 10:41:56 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh8w-0000000GSXB-2YNH for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 10:41:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=UR5R/S4zH+LvNg75YIWJqgZSeK8Iz2vARL5qLu+rQU4=; b=g/Z8DrRMbErVbJD+JiYBPVbIbM TWZ2Dzin8p4HKCSYlH/V8C/LbZB16RSS6kfkekSZqnf7GZ2dOE4qDU4JpnOI6C1WiW7atsOBOXzBJ zNnVQeBQxaxeqITdCj1BjrZ29FmmJmWPnRGVijPVRel+mo7X3+1Xif4aL9b8CejAbNZ+vXq//6i8h AlwEE7bisd1y8I0/kAmvr2pobVAe9PjTVjTmltcUs1ayYp0rC5w/boqMoW8xJngNhfc98E/O/8s1i hQOB90dz7wFan0FD/vKGts0bwDyN6Y0zvSYEZ4qnJ0a9keE4KX0JmJf5YPmbMeJejUuZUKmfOBRK1 U9iCAEPg==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh8s-00000009x8e-3t8n for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 10:41:49 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45OAdw5X009984; Mon, 24 Jun 2024 19:39:59 +0900 From: FUKAUMI Naoki To: kernel@esmil.dk Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH v2 1/4] riscv: defconfig: enable "heartbeat" led trigger Date: Mon, 24 Jun 2024 19:39:22 +0900 Message-ID: <20240624103925.946-1-naoki@milkv.io> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_114147_610050_F8DADC36 X-CRM114-Status: UNSURE ( 5.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org following JH7110 based boards have a LED for heartbeat. - Milk-V Mars - Pine64 Star64 - StarFive VisionFive 2 This patch adds and enables related configuration for it. Signed-off-by: FUKAUMI Naoki Changes in v2: - reword commit message to include other JH7110 based boards --- arch/riscv/configs/defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 3f1f055866af..5f5582d7d7fd 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -147,6 +147,7 @@ CONFIG_MICREL_PHY=y CONFIG_MICROSEMI_PHY=y CONFIG_MOTORCOMM_PHY=y CONFIG_CAN_RCAR_CANFD=m +# CONFIG_INPUT_LEDS is not set CONFIG_INPUT_MOUSEDEV=y CONFIG_KEYBOARD_SUN4I_LRADC=m CONFIG_SERIAL_8250=y @@ -246,6 +247,11 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_STARFIVE=y CONFIG_MMC_SDHI=y CONFIG_MMC_SUNXI=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_SUN6I=y CONFIG_DMADEVICES=y From patchwork Mon Jun 24 10:39:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13709321 X-Patchwork-Delegate: mail@conchuod.ie 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 DDD40C2BD05 for ; Mon, 24 Jun 2024 10:42:07 +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:References:In-Reply-To: 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: List-Owner; bh=W9is5wrvlv8i8fgL+zPT7WJp6pFrtfnBT+kmlBsQk58=; b=JL5AxPNVys1Bk6 f1mNZF0Qw8AF71U95TxPvL+jdRPHL9nc35c0vVNV5PhTYee+QLHneCxN7th0cyDhQ2CETPFPf9eSt BJIaR5l4i861VivKFyWruyQ0uX1yHNLbItKQHFIA6iBEtXX4QS/LFmUTVjGRHXmbqAOlYrKNdiDZj XYP79xoR+dxissY4NU60/fBCwvgsJ/Jivny2o5JBKiU/AKZzbI+0pMNMbKm8w4W+ip5c/eXu82miE en6ee8132eRZ9acJMILHaBhqojmeeWy9zAKJ3yoVLUW7BufVjpdgJ7+Ge1HxfQCeIYCg1Br0X6CGa aCbYSCxUeOzr+9AIt34g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh99-0000000GSdd-15Cz; Mon, 24 Jun 2024 10:42:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh97-0000000GScF-18RW for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 10:42:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=b+bK2NFdsxB8JW2o/IJ9+rmn7pTq9xczB0p3+tluRCw=; b=gdAtvqNzw+1tExGMAUP0hQtVG+ M1b0lHU63Lc31v6WNVz0NwF0+gJYQEymBeGS0asKstQo/DV9sWaidjlmBCQV1YcOAmxsaP7C/2K2r S/JEvHTEhgVEjoh1zrwT6/BDobiaWQErM7OiGfHcAsRJc1B7q7+QSP6o4V+ZxkNW4byCHG149N2Oh lWbUwbL/1aaiic20sfQs8qV6k0s6SecSPUfTcf3nK/hnEfqr+qhihIoywHwYlUPuaCLfMvzdfklCC wqseOCGrMqRNxBrO+48nousIlFiqHHEKfYTLz2/8GEVttFpHChSMyh//Sl54nd8mOfIRakAAhtbZ3 Khy2p67Q==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh93-00000009x9d-1iEE for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 10:41:59 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45OAdw5Y009984; Mon, 24 Jun 2024 19:40:01 +0900 From: FUKAUMI Naoki To: kernel@esmil.dk Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH v2 2/4] riscv: dts: starfive: enable heartbeat LED for Milk-V Mars Date: Mon, 24 Jun 2024 19:39:23 +0900 Message-ID: <20240624103925.946-2-naoki@milkv.io> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240624103925.946-1-naoki@milkv.io> References: <20240624103925.946-1-naoki@milkv.io> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_114158_111684_CE9CD54B X-CRM114-Status: UNSURE ( 6.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Milk-V Mars has a green LED to show system load[1]. This patch enables a green LED as a heartbeat LED. Signed-off-by: FUKAUMI Naoki [1] https://github.com/milkv-mars/mars-buildroot-sdk/blob/dev/linux/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dtsi#L79 Changes in v2: - reorder properties in led-0 --- arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts index fa0eac78e0ba..1ca9657fef0e 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -4,11 +4,24 @@ */ /dts-v1/; +#include +#include #include "jh7110-common.dtsi" / { model = "Milk-V Mars"; compatible = "milkv,mars", "starfive,jh7110"; + + leds { + compatible = "gpio-leds"; + + led-0 { + gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + linux,default-trigger = "heartbeat"; + }; + }; }; &gmac0 { From patchwork Mon Jun 24 10:39:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13709322 X-Patchwork-Delegate: mail@conchuod.ie 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 15F93C2BD09 for ; Mon, 24 Jun 2024 10:42:18 +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:References:In-Reply-To: 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: List-Owner; bh=GlzrbSE/4Q8mUTJOw6vS0FNfClwZ6/8oqclZjBVN+Cg=; b=FG5G0Ka8LHoKsr fgX5udo0CkNYl3X6pqaTpNz842iiFSsMxRK7wjSL9F3lasauabfUV9TJNrx+bpmzRN8/EX+gy9fUI JOVLdVTBlEoLX4KyiK5Falxorq5NJMS3FpWCNtsYtfx8dI82cDIzPuoCYZX1fdzMJNYLumNZOQZfz yvtjDHhS1BTm1ev3lK84VJuW5Sqfdy5j9Yz6GOHctIkZcDcex1IOxlXx8j2dpeBka6fNvRbwY/t/V F8DXS6/X4fLQzjjue5oCKvXKzP0mQ45oJjc+1avgvmYPmcWGENCJrUb91FQ05c2tVzfiLm5QktJbf ny48pKo6DG31VWNS0BpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh9I-0000000GSkW-3EXm; Mon, 24 Jun 2024 10:42:12 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh9C-0000000GSfl-49PQ for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 10:42:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=m7lJPoUac29okIOedhA9lOgMfp8VIgIaDtoGCR7cuxU=; b=sOTlmQ561y8j1MZ3dAxoin1YXq rP6KCNP9jU5gmw0MPD6LLEKgb72EIm3VQ/008vmPxry4cugG2IKw/UW5Kdjb3z4d5O6tZed3kyyh4 DV5cAuGT3CbbzotGgnuX7pai5QimR6wvcUYPHjoCvVhkcRKcncocCe6lOXWuSJgrnlm6Z6WYYSONE TLLvMQrd1rclRT1prC78y3PdqkuPUPoPSGy4zw4nFSPIsvv39BM63XpgqXwu+lmaUZLQ7rT6oGF9Y bPUTi7NQM8geGceQ4dk1JYYxe2Lrf0PZCndEW5yBJ3GPcQzbLs5yjCm7R8CTRB45gFzHbzYVKpEoC zb/xM7DA==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh98-00000009xAL-42AS for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 10:42:05 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45OAdw5Z009984; Mon, 24 Jun 2024 19:40:01 +0900 From: FUKAUMI Naoki To: kernel@esmil.dk Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH v2 3/4] riscv: dts: starfive: enable heartbeat LED for Pine64 Star64 Date: Mon, 24 Jun 2024 19:39:24 +0900 Message-ID: <20240624103925.946-3-naoki@milkv.io> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240624103925.946-1-naoki@milkv.io> References: <20240624103925.946-1-naoki@milkv.io> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_114203_697859_D4A0123C X-CRM114-Status: UNSURE ( 6.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Pine64 Star64 has a blue LED to show system load[1]. This patch enables a blue LED as a heartbeat LED. Signed-off-by: FUKAUMI Naoki [1] https://github.com/Fishwaldo/Star64_linux/blob/Star64_devel/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi#L79 Changes in v2: - new --- .../boot/dts/starfive/jh7110-pine64-star64.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts index 2d41f18e0359..6749e9b51593 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts @@ -4,6 +4,8 @@ */ /dts-v1/; +#include +#include #include "jh7110-common.dtsi" / { @@ -12,6 +14,17 @@ / { aliases { ethernet1 = &gmac1; }; + + leds { + compatible = "gpio-leds"; + + led-0 { + gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + linux,default-trigger = "heartbeat"; + }; + }; }; &gmac0 { From patchwork Mon Jun 24 10:39:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13709320 X-Patchwork-Delegate: mail@conchuod.ie 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 11441C2BD09 for ; Mon, 24 Jun 2024 10:42:03 +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:References:In-Reply-To: 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: List-Owner; bh=zblo8rqjkylJk1CzXPuQSUok90sAuNVQPrcwppccdZk=; b=W0FKeQ/Q4uaWrb MI9tgKA9dHj5wDAK8bMZvkURvAlKfQHx/OWRnZg/XVha6TSLUjEVd2fflwiPioseYEdsTik6GOM6L qlrsOHPHUpCKkU94RJG9t+vClHEu5CRhd/euMVrbVVLPabLbNZ1Dm+5iawlykrZx+1+yQD6RqX9OI 5y3iRV0+v6lJN4SykqWbSw7yGU/C03gqJ6/kOg71XC/GLBwffOh1XMRd7jlI3rEkLZeF5DYXYa5lr heD0woGGlvodD9Bbbl+fwUgXSqxXJm4Lqe0rFQ9W5qWI1DoXBMh3hdgDd4GN1/AVJm58F2YW5Zvy0 m4RKRrGicY6CckYy+9EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh93-0000000GSa3-0N1Q; Mon, 24 Jun 2024 10:41:57 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh8w-0000000GSXI-3R7V for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 10:41:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=i7mi9Bjb4BM1PJcskbgpuJBr9qDMUUvyXw66omSy+kk=; b=DQxR7GLUTwyxcch2Euhcc5zU/g 55G3bCM3Gs64pd5KQobNuSvno9agBFzQb51N5gBXccGlVfZBIKfTyiVSlJigI93hVBZUtoBxoFThP 2aRHpJXIGoDmB1skatjL6H5iyokrZLPtNvqKz8yHoxjCwdwqj8N87+VQ1xquOUUcRnquNA2Ur9ax/ 7xHvOV+TyhgJFH/vl2bqIwBwygjbyqSvEBZDkPElx0GAetCh6gfdUFMiaPOdZd7ZcAyicMCQE8ujo vrHWeppN3uock0LZFLq6JbLl304zbO5FvQlt3Za2jhc9z3NTdxvsqW1MnmkqP5UOxLoqZSmfWdYNm INd8kmFA==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLh8s-00000009x8d-3qyf for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 10:41:49 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45OAdw5a009984; Mon, 24 Jun 2024 19:40:01 +0900 From: FUKAUMI Naoki To: kernel@esmil.dk Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH v2 4/4] riscv: dts: starfive: enable heartbeat LED for StarFive VisionFive 2 Date: Mon, 24 Jun 2024 19:39:25 +0900 Message-ID: <20240624103925.946-4-naoki@milkv.io> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240624103925.946-1-naoki@milkv.io> References: <20240624103925.946-1-naoki@milkv.io> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_114147_476789_BE49CD70 X-CRM114-Status: UNSURE ( 6.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org StarFive VisionFive 2 has a green LED to show system load[1]. This patch enables a green LED as a heartbeat LED. Signed-off-by: FUKAUMI Naoki [1] https://github.com/starfive-tech/linux/blob/a61d1d826ca3060fd76ab31d37c691fc09b52fc0/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi#L79 Changes in v2: - new --- .../dts/starfive/jh7110-starfive-visionfive-2.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 9d70f21c86fc..e5808268fe8c 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -5,12 +5,25 @@ */ /dts-v1/; +#include +#include #include "jh7110-common.dtsi" / { aliases { ethernet1 = &gmac1; }; + + leds { + compatible = "gpio-leds"; + + led-0 { + gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + linux,default-trigger = "heartbeat"; + }; + }; }; &gmac1 {