From patchwork Mon Jul 4 11:36:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12905169 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 B9DE3CCA479 for ; Mon, 4 Jul 2022 11:46:34 +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=aZFp6+/UZ7WZjk2GdhmgvUTMX/A2wzULK9kRq3pWJmQ=; b=GX9ShSUh14mrhk 0gT3W83nuFMHo6FAZd62rgzPPPg3EcnubSq7Kk4sYMNvv6HRhgoS8QwnqKvtyMAy8a2AIe3meDypC 95rFR7XxUEOel8bae3jsBFFBQdUg1xSdo9jPpGvdgHFDd1C9aKwa/hxAvUMzPEyIbDwfdkrRXziKs l90atqnnivZgtGRdSEs5TD1i/qROAVNq0bzIe+kNtDWEGxsmcEQ5z3AyxZWyJr3rIPhkfa0UtwWwQ 9dlc1R3eLVfEfDADt3+Hmuoy0DxYzQOqUpZdjKa9RzVol/vSqqESKym6yzTy4lc2LrC4NAPKxsvHb scqVMBhnPwF7y8IXzyaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8KW7-0080Bi-N2; Mon, 04 Jul 2022 11:45:28 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8KNR-007quj-Qd for linux-arm-kernel@lists.infradead.org; Mon, 04 Jul 2022 11:36:31 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 855E961668; Mon, 4 Jul 2022 11:36:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34BB8C3411E; Mon, 4 Jul 2022 11:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656934587; bh=SXkjN9CWfiqquTLIQjLUPOKjVrOT/0zfW6DxQ4qhKPc=; h=From:To:Cc:Subject:Date:From; b=b07u89ll767XfnXtfATRsYlJLWCSS1/b6UhSoc9HbbZqpGbPPf39qL2FQcdNTLZ5D drRDR5a7D/iM/kSAtranwr5VYniLkUQj9PWEIrTT1Kg/WiVhRAPyKv/e+e4s2RGzYU YGy+tUC45Yj3fFbWghAq4uyvtpHnFGojiL7XoLDjeVm3CKO+KgaqM0l2sjEbGpg0ZZ eVydJ5d9X/zmFs0M9VHP6iCgWJkFDUDhKcO6jBsytK0DhV4/IkyvRB3rfwlcTKpHJT YuWsv/xDSdnoRFzWPBcpUDFKFH1GaWlEUurSp+8b6zvsts78xTDpNKywBZ+/PHrivF Z6zF2P3RKQiXw== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Gregory Clement , linux-arm-kernel@lists.infradead.org Cc: pali@kernel.org, Josef Schlehofer , =?utf-8?q?M?= =?utf-8?q?arek_Beh=C3=BAn?= Subject: [PATCH mvebu/dt 1/2] ARM: dts: turris-omnia: configure LED[0] pin function to link/activity Date: Mon, 4 Jul 2022 13:36:21 +0200 Message-Id: <20220704113622.18887-1-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220704_043629_935268_B0C0E7AE X-CRM114-Status: GOOD ( 12.86 ) 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 The marvell PHY driver changes the LED[0] pin function to "On - 1000 Mbps Link, Off - Else". Turris Omnia expects that the function is "On - Link, Blink - Activity, Off - No link". Use the `marvell,reg-init` DT property to change the function. In the future, once netdev trigger will support HW offloading, we will be able to have this configured via the combination of PHY driver and leds-turris-omnia driver. Signed-off-by: Marek BehĂșn --- arch/arm/boot/dts/armada-385-turris-omnia.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts index f4878df39753..1583c4b14ae8 100644 --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts @@ -397,7 +397,8 @@ &mdio { phy1: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; - marvell,reg-init = <3 18 0 0x4985>; + marvell,reg-init = <3 18 0 0x4985>, + <3 16 0xfff0 0x0001>; /* irq is connected to &pcawan pin 7 */ };