From patchwork Thu Aug 29 13:28:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Ivo X-Patchwork-Id: 13783270 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 AE5ACC83F16 for ; Thu, 29 Aug 2024 13:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: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=SSh59zKlns9QV+HMmQOofUOKGksekC1H2nm5F3iZIV4=; b=jiKPnkYRXmQcRMBjKgceaHMTJm Na6lMQyoDLoZZW4dSteHCCiZniDsBJfLtX2NrEKWyrGNPyTI6rwtJX6pFby1FLNfIAdXlpl9xD61L bww0swtir+GLWsmamCGuJQYIscw7CvL+wnYxejw1UuSgJh0dk/8FSlzLqgCpEMGKiVsJ8xKjfHQCD /keUomM69kkmPG19gC3MvwBmBHrFzrNJ2nNkvB9UIxx5Nfl/6hRmu0GAsLxi1blTywGAFthc/dgfp V4e47bjUGvLUNzeSMfWDgceDfGWBDoEQCaNoi6J49OS7HSkpaad7BWhSpGqPRO0SMT7nhWCDC3uJm j1Fhu/bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjfDn-00000002BNQ-3TCj; Thu, 29 Aug 2024 13:29:55 +0000 Received: from mta-65-225.siemens.flowmailer.net ([185.136.65.225]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjfCh-00000002AwE-0ncj for linux-arm-kernel@lists.infradead.org; Thu, 29 Aug 2024 13:28:49 +0000 Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202408291328394abbb25483f29431e8 for ; Thu, 29 Aug 2024 15:28:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=diogo.ivo@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=SSh59zKlns9QV+HMmQOofUOKGksekC1H2nm5F3iZIV4=; b=PQMFlIRixbtIT9xcBfsG8CS87deD3SCpH1zIqysX9Da/POM5LNHchJeFfCRNyjDtil5VwO s+vgOuVvhLiADPbSmLsA9KlKpVMWCFSrNKM46LlwRcWHrz/UxQwP5Qo+HiSydx/9giHKVvNs qUW4EXwHRvU8q8GpQm7eYcHIHKOoc/r17jgfrIhpD8B0fNeVgSZQPrgquxN/MxnD620nSLN+ DnnVPFjHm6jgetRL8dKRTeWlzrxTwW5VZ/Je7Jog6B5H/EdR6M9jFxRcq6trQDZ8JGLQ8DtO KieNBjZJnhs5i3HE5ljaYx0RjnRKC7uDG7/7IsQ2s/b0du+aJBIYT25g==; From: Diogo Ivo Date: Thu, 29 Aug 2024 14:28:29 +0100 Subject: [PATCH] arm64: dts: ti: iot2050: declare Ethernet PHY leds MIME-Version: 1.0 Message-Id: <20240829-ivo-iot2050_leds-v1-1-792a512b2178@siemens.com> X-B4-Tracking: v=1; b=H4sIAHx30GYC/x3MTQqAIBBA4avErBswsx+6SkSYTjUQGRoShHdPW n6L914I5JkCDMULniIHdmdGVRZgdn1uhGyzQQqpRC975OiQ3S1FI+aDbEBrOtMa1dZ60ZCzy9P Kz78cp5Q+WzyEcWIAAAA= To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jan Kiszka Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Diogo Ivo X-Developer-Signature: v=1; a=ed25519-sha256; t=1724938119; l=2048; i=diogo.ivo@siemens.com; s=20240529; h=from:subject:message-id; bh=UBXlJr6OVxgdz/qFecIU84lyjjGDkW3rey57HKPAP3A=; b=onorDsAIHB/ZCZ9m5rS3wEQc7/zV4rv7pNFZ9/iUliSGw3EReOfK6denw/37y3ipzpx51hOsh a+o8RobOy88D4Qz2u+QQmm1SpqvrcbUEOtgNrZFHNDnG2XDs4SSQz5U X-Developer-Key: i=diogo.ivo@siemens.com; a=ed25519; pk=BRGXhMh1q5KDlZ9y2B8SodFFY8FGupal+NMtJPwRpUQ= X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1320519:519-21489:flowmailer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_062847_846256_671A7D35 X-CRM114-Status: UNSURE ( 8.03 ) 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 Each Ethernet PHY on IOT2050 platforms drives 3 LEDs whose triggers can be configured to signal link properties such as connection status or speed. Declare the LEDs, exposing their trigger controls to userspace. Signed-off-by: Diogo Ivo --- arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) --- base-commit: f2ee642ec2b5dc6e83f146b7115867022dd3840b change-id: 20240828-ivo-iot2050_leds-dc7c6c463aba Best regards, diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index cc1f51f604a4..754abf3db3c0 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -635,11 +635,57 @@ icssg0_eth0_phy: ethernet-phy@0 { reg = <0>; ti,rx-internal-delay = ; ti,fifo-depth = ; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_SPEED_LAN; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_SPEED_LAN; + }; + }; }; icssg0_eth1_phy: ethernet-phy@1 { reg = <1>; ti,rx-internal-delay = ; ti,fifo-depth = ; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_SPEED_LAN; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_SPEED_LAN; + }; + }; }; };