Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4514654ybv; Mon, 17 Feb 2020 00:21:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzkV281KC7B3DViMOOreLrE/vSqRngGvRG4gC5vfxdaaSO9Qh+VB6/0r1ZheVqomJATbHLF X-Received: by 2002:a9d:7e99:: with SMTP id m25mr11115300otp.212.1581927709992; Mon, 17 Feb 2020 00:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581927709; cv=none; d=google.com; s=arc-20160816; b=PqyjczNdQ7pXtUYoeC46Nr4IV1eOC0ZBv7oXhek2jgDqg650qHKv3doMMDUk3D4AXU V6BKvdl9uweAc4J/J2ng8kNxq8Zs/b9Nmh3E/FbZxmCq4+6YPb5DJuHfDAir3Usaqg5N +3lNmk1+UkDSQ9phdyROfDbezF3lO4tzldwUdBK4On1QNSW94soK6G8ldQl8D9AiASsB zuJGeHgS/zn6eTISGatwWCR1VNtgepywQDLGaYprnUonx7bEKLnSJLIFDzmgRGiI0J7A 5gKLS/U83hzJYygRg3xI3iTdm11uMINzy9PkO6s7XMRV2HxkNyYNLYAWTHdqum4BHCcT NRiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BKGUTPtFpN8oMb8e3ZUMLHgsFBGipiAubi8k9imPaPA=; b=o2Trt0NTZk6/abymGblfn8iXdj8FpFdu82IS+WUxb3/lnuNbxP+fQ2thbTrhuz5+H0 IwKhnVCK2NTo+eIsTuWpNkBztOTFi2wE90J9UxUsUkJfei5GMwdepMUDBwRVGlYfnJGk bqIBhuJGMbYZHvewx8okX8fel9RIu2yg9b+75uFKnFdWbEwWwJ+kIqRBL1cuQTrqt/C9 8BMmrHZfy63DszvY3F4zv6GxhQ3p7R8MqxshlB4EhagIIXCXzI9OyuFKGClVZYkjRjyO IBqEmh64O2KL7/NORBnAzSO3vunW3NNOgVTiRsByFCA1WO2qRteJWDr2r8E1u2UMUadg gA8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si6728684otk.134.2020.02.17.00.21.37; Mon, 17 Feb 2020 00:21:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728102AbgBQIUw (ORCPT + 99 others); Mon, 17 Feb 2020 03:20:52 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41755 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727545AbgBQIUw (ORCPT ); Mon, 17 Feb 2020 03:20:52 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3be4-0003zu-Ea; Mon, 17 Feb 2020 09:20:48 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j3be3-00025k-IT; Mon, 17 Feb 2020 09:20:47 +0100 Date: Mon, 17 Feb 2020 09:20:47 +0100 From: Marco Felsch To: Alifer Moraes Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, peng.fan@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, leonard.crestez@nxp.com, festevam@gmail.com Subject: Re: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1 Message-ID: <20200217082047.nzxxo7mpejq5yj65@pengutronix.de> References: <20200214192750.20845-1-alifer.wsdm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214192750.20845-1-alifer.wsdm@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:19:43 up 93 days, 23:38, 104 users, load average: 0.30, 0.22, 0.09 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 20-02-14 16:27, Alifer Moraes wrote: > imx8mm-evk has a GPIO connected to AR8031 Ethernet PHY's reset pin. > > Describe it in the device tree, following phy's datasheet reset duration of 10ms. > > Tested booting via NFS. > > Signed-off-by: Alifer Moraes > --- > > Originally sent by Peng Fan > > Back then CONFIG_AT803X_PHY was set as "m" in defconfig so the boot process hung > at nfs boot, now that CONFIG_AT803X_PHY is set as "y" by default, the patch works > correctly. > > Peng's original patch missed to pass the phy-reset-duration, according to the AR8031 > datasheet the reset GPIO needs to stay low for 10ms. > > Original thread: https://lkml.org/lkml/2019/10/21/347 > > arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > index 28ab17a277bb..11903ca86f0e 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > @@ -82,6 +82,8 @@ > pinctrl-0 = <&pinctrl_fec1>; > phy-mode = "rgmii-id"; > phy-handle = <ðphy0>; > + phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; Where is this gpio muxed? Regards, Marco > + phy-reset-duration = <10>; > fsl,magic-packet; > status = "okay"; > > -- > 2.17.1 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |