From patchwork Thu Apr 27 19:55:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 13225722 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 20D65C77B7E for ; Thu, 27 Apr 2023 19:57:54 +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:Subject:MIME-Version:Message-Id:Date: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=USmTTIrc04gFyL84gSwdgzTymLvEBiRmZQKYSQR7cbs=; b=b9Ql3W2ik+MzLZ 1xGlF+fZBXMVMJ0Hoe9F7UwM8j9bd+SO9Odj2Dk0oPhI0eWWFoFBGtiSZMNvr+muqjNNG80bL/yzJ M64Ysl0D4KVHzRVi5TwX/79Yw0so4UhCI+PLdk+a8zyXKZ3rxCDmWQhETnSH6IcNRaNdSv33nYRPh Q/ae4TtUuN7NoLGdS6+dQNVyOjt2m1TdOsTYyyGJzEt52rGkS1R94LTb6XpE/9YFTIuyj3dUwY6Tu 9bPIe32RwLs9IxiklFRS2e/k46Ehmzx0GfkHx3Mjbx6fenz4UPvpSg0Lv7V+YaWCS3iKFJeUy0V/D C66IexErdOluPmp+2XkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ps7jM-007NQz-1s; Thu, 27 Apr 2023 19:56:40 +0000 Received: from mail.hugovil.com ([162.243.120.170]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ps7jK-007NPP-0d for linux-arm-kernel@lists.infradead.org; Thu, 27 Apr 2023 19:56:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc:To :From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=dXVd02aZfCBZB8aqLEE5MFIo/7qfAJEue/einpiysyY=; b=n 21snRrjJ5QWb8iCWg3KZrjIzkHvibayRWSiLDCdGvPoxBifQyxQebNFZqjFMYpabDHNJessUMuP67 Bjwuv+sS6bI4y3DdLbgMhswiLk+ZnqIK2wW9RYby2t9eNTGXzv06QtKL9MhIqMsIU8S/Czr5wB5uS 51F5wnX16rVfqeUc=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:50478 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1ps7j4-0002gK-Fv; Thu, 27 Apr 2023 15:56:22 -0400 From: Hugo Villeneuve To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Hugo Villeneuve , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 27 Apr 2023 15:55:38 -0400 Message-Id: <20230427195538.2718661-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH] imx8mn-var-som: dts: fix PHY detection bug by adding deassert delay X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230427_125638_303492_CAB8DC7F X-CRM114-Status: GOOD ( 12.03 ) 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 From: Hugo Villeneuve While testing the ethernet interface on a symphony carrier board using an imx8mn SOM with an onboard PHY (EC hardware configuration), the ethernet PHY is not detected. The device tree in Variscite custom linux git repository uses the following property: phy-reset-post-delay = <20>; Add a new property 'reset-deassert-us' of 20ms to have the same delay inside the ethphy phandle. Adding this property fixes the problem with the PHY detection. Signed-off-by: Hugo Villeneuve --- arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi index 67072e6c77d5..9052b0d4b5b4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi @@ -103,6 +103,7 @@ ethphy: ethernet-phy@4 { reg = <4>; reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; reset-assert-us = <10000>; + reset-deassert-us = <20000>; }; }; };