Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1085058pxv; Fri, 25 Jun 2021 05:15:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY1Z/p0RFIh/UtIJ6MjBT145KJYwhsmU6yFLbXB7Mn8334PlEU1WrjFA/D2CEqpx9yWCW+ X-Received: by 2002:a05:6402:51d0:: with SMTP id r16mr14767087edd.138.1624623324048; Fri, 25 Jun 2021 05:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624623324; cv=none; d=google.com; s=arc-20160816; b=Vsa+ZpOPOjLn9PmYRfxqhQmMSDPMsOy4tiPYMI9QCSHKRCbNaiYOQbhxLZGF886a9G mc1NvkIk3u7yDrsBXuZ/VOhGrITiw2hM0FkJjH6bltuWVzvVxiqcP+MOvTC+XeSc5Ql7 2ScOlskVjjcuV3E4GYYbcGqmZg7CfibIpwC5zjQe58dPOds2A8psq5LaNgSRb3xkTZgH qmkLTA5w4NBKVS5FAAfw+GjbskZzuU3i9J5nDtZe7nx5/R05Jq8iEZRgCj+g/M0g3dzc w3AKm9YTm8sPTe2vAAEn+x/L+hf62bFWSi+VSf0+oAqVDqXCnNfSLaEvmu2z5Y4ueO3V KBkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hAdHza0G8o4yS/ewsvdsIW8rFm5xgn7ZTcy6yWCfMxI=; b=UvYfvqzLPGWXX9cCEdA4ThRab3seBbSpNboC5XZK4DI0AV0Gam5bWIto5fO7K0hoyY YJl7uciwj/4FwaIBQfvLj/w/aHfH+/HIaOt9YddDFcwJHLwcJXwB5GkLc5zd8LQFbbQ3 NnKt1KF40ualD+NgDJih/RYWUjfpOWayRyXMT0SMA5tErVMmcb9Io1PnFPj8tU5U/RKL PPNehXu5xkR0a+PRuvOOHQfHO2yZLAxlQmaBTPnfPOEw3x4IDI2dJmWzlyYg4ZenkGfp AGjaUzPAOQG3hCwgr1EP1dk1ki63m3nnhaKnS33cIJ1eZgYtoDUacRrQMYC2sTcLcoVo plWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hu7si315220ejc.442.2021.06.25.05.15.01; Fri, 25 Jun 2021 05:15:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbhFYMQV (ORCPT + 99 others); Fri, 25 Jun 2021 08:16:21 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:36135 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhFYMQU (ORCPT ); Fri, 25 Jun 2021 08:16:20 -0400 Received: (Authenticated sender: maxime.chevallier@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 8348F40004; Fri, 25 Jun 2021 12:13:57 +0000 (UTC) From: Maxime Chevallier To: Russell King , Shawn Guo , Rob Herring , Andrew Lunn , thomas.petazzoni@bootlin.com, herve.codina@bootlin.com, devicetree@vger.kernel.org Cc: Maxime Chevallier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: imx6qdl-sr-som: Increase the PHY reset duration to 10ms Date: Fri, 25 Jun 2021 14:13:53 +0200 Message-Id: <20210625121353.3698240-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AR803x PHY used on this modules seems to require the reset line to be asserted for around 10ms in order to avoid rare cases where the PHY gets stuck in an incoherent state that prevents it to function correctly. The previous value of 2ms was found to be problematic on some setups, causing intermittent issues where the PHY would be unresponsive every once in a while on some sytems, with a low occurrence (it typically took around 30 consecutive reboots to encounter the issue). Bumping the delay to the 10ms makes the issue dissapear, with more than 2500 consecutive reboots performed without the issue showing-up. Fixes: 208d7baf8085 ("ARM: imx: initial SolidRun HummingBoard support") Signed-off-by: Maxime Chevallier Tested-by: Hervé Codina --- This V2 was quickly resent, since the commit-log was incorrect. v2 : Reworded the commit-log to remove an incorrect mention of the datasheet. Add a comment to the DT to explicitly explain the issue. arch/arm/boot/dts/imx6qdl-sr-som.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi index 0ad8ccde0cf8..f86efd0ccc40 100644 --- a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi @@ -54,7 +54,13 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; phy-mode = "rgmii-id"; - phy-reset-duration = <2>; + + /* + * The PHY seems to require a long-enough reset duration to avoid + * some rare issues where the PHY gets stuck in an inconsistent and + * non-functional state at boot-up. 10ms proved to be fine . + */ + phy-reset-duration = <10>; phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; status = "okay"; -- 2.25.4