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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E7FCC433F5 for ; Tue, 22 Feb 2022 18:13:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 768DA80210; Tue, 22 Feb 2022 19:13:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645553606; bh=u9koGJdcQOqzxEY289iopgMZF/+fY/8t8cBxLH8UgSw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=nYQSvyMW4YibjnF1+SszEZ56XgzP29HaZ+BzTcvqDPnzQ4uEaGVx2T/5DixVpBX0g u7zqYTWdjwpx36qb3MCkw6k27eeasJl3/6f1YqYOVBIcDEPhLQ24Wu9cX1ySM4OroA qwUSjEHy+DtMbuGfUWayPeqMCnNnwzTqEm/Q46Ju+0J9pi/hQxyoSNeIC90RNn33ep l2DFwRpfFGtM853zDhNt9rr9Ul0gm8tvZrg+g3q2uIpzdnDwJY4Miv3nZOfjMJyei8 D09OINnxco9aH025NuCIqP/4giqNaVSkI0LGgM+FUzyS+JMbPWHnA0iXeT8aquNfH/ pSxuGV8IPKDug== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id BBED980210; Tue, 22 Feb 2022 19:13:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645553605; bh=u9koGJdcQOqzxEY289iopgMZF/+fY/8t8cBxLH8UgSw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=wpvod620xkcsVb8NzpEjytZY3fMgqJsPw6MaTw9U7qkqtcPn3bFgpdjmFKLt2iHBT wq0mIQzoDv3ieIQjTDnzSKKHujZTGhKkZ27kfNshfeI4Hf2Stw61KC0HA2Bmm3zi1S NA6mRkfNaX80l85fCy3tkUYGu5Ff2QeYQc6F0UfOzQWEJCI4+9mgNbE3ffk7ajCILv 8OkJBkcvuariX/cV4AtZtB/1vJGPV/ygPVbaxjR5aZq+5/PnoOU6mfmbH3QK2rp16g uQ+7FJrDW6JYrtoQIqHWbuCVW4SXZYwuOwTKWZZsU/Jis45GrWlESPPr1Z6jhX/tPh V+U943t/IE4/Q== Message-ID: <18979d37-3af1-b52b-a469-e3eac57da05c@denx.de> Date: Tue, 22 Feb 2022 19:13:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration Content-Language: en-US To: Michael Walle , Heiko Thiery Cc: u-boot@lists.denx.de, Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Frieder Schrempf References: <20220222151928.417186-1-heiko.thiery@gmail.com> <9bd928a4858816fdb166da632224bef9@walle.cc> From: Marek Vasut In-Reply-To: <9bd928a4858816fdb166da632224bef9@walle.cc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 2/22/22 17:00, Michael Walle wrote: > Am 2022-02-22 16:19, schrieb Heiko Thiery: >> With the correct settings described in the device-tree the PHY settings >> in the board init are no longer required. The values are taken from the >> linux device tree. >> >> Suggested-by: Michael Walle >> Signed-off-by: Heiko Thiery >> --- >> v2: >>  - remove phy-reset-gpios node (thanks to Michael) >>     When using DM_ETH_PHY the reset-gpios from the phy is used >> >>  arch/arm/dts/imx8mn-evk.dtsi            | 10 +++++++++- >>  board/freescale/imx8mn_evk/imx8mn_evk.c | 16 ---------------- >>  2 files changed, 9 insertions(+), 17 deletions(-) It seems someone was faster with this patch after all, thanks. >> diff --git a/arch/arm/dts/imx8mn-evk.dtsi b/arch/arm/dts/imx8mn-evk.dtsi >> index 416fadb22b..fd253f0042 100644 >> --- a/arch/arm/dts/imx8mn-evk.dtsi >> +++ b/arch/arm/dts/imx8mn-evk.dtsi >> @@ -53,7 +53,6 @@ >>      pinctrl-0 = <&pinctrl_fec1>; >>      phy-mode = "rgmii-id"; >>      phy-handle = <ðphy0>; >> -    phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; > > This ... I'm afraid the phy reset in the phy node won't really end up toggling the PHY reset GPIO, would it ? [...]