Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2100488ybv; Fri, 14 Feb 2020 11:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwgY8uBe4ZlwxBGFaueb8Disn92JO56gmnstj//0sBcofm8j1vCQcHAF4CjbxupkfDra8ik X-Received: by 2002:aca:5dc3:: with SMTP id r186mr2976535oib.137.1581708463630; Fri, 14 Feb 2020 11:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581708463; cv=none; d=google.com; s=arc-20160816; b=VSWHnYnc8LWzOKtss7TWcTZ25PrspcnlPizu4tCm7rtIfaa6yu46pDfgARNuNsP9sS igaTPQsUbByetpsga8nly1DwI91Aye+vd+YFzVKK14uACTf33MBXlDagmQzYnc0vxBdn 0roccEmCjYOSfDl/gN3Xo8dF/4T/NZs8+0Sf1CBOuZeic/azuJ4jLaoqFXHaSegCLOA7 hNccvCnus+yWsSDFY2naSeIE5c5S1HpTsf2iYOnBc1rFUtjWysfDM97/em7cGwlRE3vX /gxoFKL2rzMy82PvrgguKobyGCk7LGRdZvoQ47wWrZvURien6SIbLGr2+HWr3M41cUcy I6Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=rLdqNzAySRjmMgZB/PpbO12duUi9dVI2RpZBkw4lPuY=; b=d+kYBBps+s+VsMy3bSyreFKc3X3f9F+d3p5ZXuTk9oODvI9hkK9FUyamo4yIV3GMXg bG9l4OrMp9pWq+Zwmmy6mVSvxTc0ABLFKlv/DX0eWc1+yI50kxierCArWMlICVeSRlNN ZmyQNPRTJthKKehMD3r/TdexZkfoWOwGSSWbcm2aBhLGUzbN7Eee8KVNIjZg5YP51PLd G2t/piCxjserTmdwFUUMQJwK0H4uAZfB/HD380JK/J30f3PPjYk2G9W6BdoXSRSX3IEY l9vkfgut/CLJH288aFFCYz0yRSCsKom4RWak8G6cwlfgTiXYJ7FnMfMuVxtXUf+OJwb8 qFJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xf2T8kUv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j70si3480635oib.219.2020.02.14.11.27.31; Fri, 14 Feb 2020 11:27:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xf2T8kUv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388513AbgBNT1Q (ORCPT + 99 others); Fri, 14 Feb 2020 14:27:16 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33249 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387576AbgBNT1Q (ORCPT ); Fri, 14 Feb 2020 14:27:16 -0500 Received: by mail-qt1-f193.google.com with SMTP id d5so7751032qto.0; Fri, 14 Feb 2020 11:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rLdqNzAySRjmMgZB/PpbO12duUi9dVI2RpZBkw4lPuY=; b=Xf2T8kUvWsfjQ/Up+Poojpe8L31XmtsOqhwlO2wut9m/gKzA9/QE50fQF3Tt0oo+aE UBBLRLEMhUe5LsimhidkJi0bRIOfuOXP3cIkcLwMzPFNI3MFPArhJLo0DSLHGwZwiUF7 D7rmFgVzNAzt683d7R9vhs8Cv47yZfUL9qvOT34xE/d6+2I5Kf42td2lX+AlTR6snNkA YV64hqetBncpWkEe2mSimUbdixXtVLcmAuC1T3ydm3Y0fYrSs4FfcdZVxijy74Lii5aR gGJoPsMhpzjn//hXqEqT+4rJxInmDcsU9gYYgnJgaQghj58ZYHeI+EvZqt5GPMILD7HE 1ztg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rLdqNzAySRjmMgZB/PpbO12duUi9dVI2RpZBkw4lPuY=; b=sqyepniYwlXN3O9IpxPPVDy0S5nIrtoNHlwzOL+nstxHfgHqRDw5J+/D6cLFW26q3F CSQghXKtxxhCsRXG2k4T64b6hWnLtjLgPF+9X5KKgwEJyD9oJ55Mp7JIWbiO+G+aIZtL Gdd59ON0U/0Oc17beEIF0kJXPFQgKEUIdXd5LfZmeFlEiiu7AnCRB5Sn9u2mRoOkHYGD cbTEIJOM50QYWIskRXnPgHjz1K/p2esuU1yyulNFi+h1EECXZ7nSuoUNao74Ui1CQvh3 SwLLydwwJOzZ29SWAso58ND3JICPcv/bwu59obeXODKgR5pk3S0+7IDYe42/eUV5BdVK JXKA== X-Gm-Message-State: APjAAAV6mghPMgJCNy/mwrz4FUEkEG2vRWbD9jbokaxX1X48Pi8ucQq6 y5EdiO2beQUOQaBjMv3RJ7A= X-Received: by 2002:aed:2284:: with SMTP id p4mr3749213qtc.329.1581708434667; Fri, 14 Feb 2020 11:27:14 -0800 (PST) Received: from L-E5450.nxp.com ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id o55sm4009953qtf.46.2020.02.14.11.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 11:27:13 -0800 (PST) From: Alifer Moraes To: robh+dt@kernel.org Cc: mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peng.fan@nxp.com, leonard.crestez@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alifer Moraes Subject: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1 Date: Fri, 14 Feb 2020 16:27:49 -0300 Message-Id: <20200214192750.20845-1-alifer.wsdm@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + phy-reset-duration = <10>; fsl,magic-packet; status = "okay"; -- 2.17.1