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: 677585 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F9F9C77B61 for ; Thu, 27 Apr 2023 20:21:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344174AbjD0UVH (ORCPT ); Thu, 27 Apr 2023 16:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344184AbjD0UVF (ORCPT ); Thu, 27 Apr 2023 16:21:05 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D7FF3C07; Thu, 27 Apr 2023 13:21:04 -0700 (PDT) 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) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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>; }; }; };