From patchwork Thu Jul 27 08:38:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13330073 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 5871AC04A6A for ; Thu, 27 Jul 2023 12:37: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: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=5oiO5aIRl3NcimZJqb9rm4iAVKSUnZLHxM/a2V7Ph48=; b=y9Wq/5bvZzk4vx L8hHpsiKIxPg3cg+aAjrWZ0oRlLP2tx57UYK901n9gskc2fOyd7hOauj6DXd5Fh3RXOLd4mmYvXLd HQQAC02zaY0Z2axnnzMRgdWzeCFQnSNEGCM/Ydk+fgtyCHtB9kdMEaNQRXuqbeUUys0Mm9gZ/19Oe Trvdu7+uDF4TRQ2S4NqBxc+fSRF8XcYMDZGbJIGLmVx24F1ShrOkAm2yUw9LbHEjUbJQ+zicz3KMR CgXrabvxlbyrqUJUhlSZXj1mG8mW2U8S1A6Fl3DoTR/8IKMZQt2tkaErD3hKwQefDH3l8/iVKDxoI 9SPmS8YkiAI6vMyOQwuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0ER-00E0Wd-0V; Thu, 27 Jul 2023 12:36:39 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0EN-00E0QG-0p for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 12:36:37 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:d80c:aaca:e11d:6940]) by michel.telenet-ops.be with bizsmtp id SCcV2A0054qLm8F06CcVcR; Thu, 27 Jul 2023 14:36:30 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qP0E4-002cI0-2b; Thu, 27 Jul 2023 14:36:29 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qOwW6-00AKgV-4d; Thu, 27 Jul 2023 10:38:38 +0200 From: Geert Uytterhoeven To: Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Kieran Bingham , Yoshihiro Shimoda Subject: [PATCH v2] arm64: dts: renesas: spider-cpu: Add GP LEDs Date: Thu, 27 Jul 2023 10:38:35 +0200 Message-Id: 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-20230727_053635_514868_BD85EBA2 X-CRM114-Status: GOOD ( 10.99 ) 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 Describe the two General Purpose LEDs LED7 and LED8 on the Spider CPU board, so they can be used as indicator LEDs. Note that General Purpose LEDs LED9 to LED11 are not added, as they are connected to GPIO block 4, which can only be accessed from the Control Domain. Signed-off-by: Geert Uytterhoeven Tested-by: Kieran Bingham Reviewed-by: Kieran Bingham Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda --- To be queued in renesas-devel for v6.6. v2: - Add Tested-by, Reviewed-by, - Widen audience after testing. --- .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi index dd8e0e1595260b3d..76a94812875ef261 100644 --- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi @@ -6,6 +6,8 @@ */ #include +#include + #include "r8a779f0.dtsi" / { @@ -22,6 +24,24 @@ chosen { stdout-path = "serial0:1843200n8"; }; + leds { + compatible = "gpio-leds"; + + led-7 { + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <7>; + }; + + led-8 { + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <8>; + }; + }; + memory@48000000 { device_type = "memory"; /* first 128MB is reserved for secure area. */