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 8799CC4332F for ; Tue, 22 Feb 2022 15:00:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB63D83C36; Tue, 22 Feb 2022 16:00:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="jRil40qE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9252683A79; Tue, 22 Feb 2022 16:00:55 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1BB9783C8F for ; Tue, 22 Feb 2022 16:00:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 1D1A522205; Tue, 22 Feb 2022 16:00:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645542045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eKFXgP8yEAEw6Inp5nMmlv9Bkp0AOLw3R1Lt0qwbRys=; b=jRil40qEzf0D3nd+Sho39z0fcmGwa75A4J9wY8zgkqb5qoqpQwoUGCzQtOUgzne2OylHhJ c1XNyth8uRBi+pG15a2NIkLt0OzyvIUtqMmyJlzM5f4TdgxlqdlcJRGHqixhej3yZ+NzZ+ Q+9ryxrv7uBTJFqy9DYN0ppuSc+dhKY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Feb 2022 16:00:45 +0100 From: Michael Walle To: Heiko Thiery Cc: u-boot@lists.denx.de, Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Frieder Schrempf Subject: Re: [PATCH] ARM: imx: imx8mn-*-evk: use DM settings for PHY configuration In-Reply-To: <20220222144716.398062-1-heiko.thiery@gmail.com> References: <20220222144716.398062-1-heiko.thiery@gmail.com> User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: michael@walle.cc 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 Am 2022-02-22 15:47, 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 > --- > arch/arm/dts/imx8mn-evk.dtsi | 9 +++++++++ > board/freescale/imx8mn_evk/imx8mn_evk.c | 16 ---------------- > 2 files changed, 9 insertions(+), 16 deletions(-) > > diff --git a/arch/arm/dts/imx8mn-evk.dtsi > b/arch/arm/dts/imx8mn-evk.dtsi > index 416fadb22b..4453a1a281 100644 > --- a/arch/arm/dts/imx8mn-evk.dtsi > +++ b/arch/arm/dts/imx8mn-evk.dtsi > @@ -64,6 +64,15 @@ > ethphy0: ethernet-phy@0 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <0>; > + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; u-boot already has this property in the fec node. So it is now duplicated. Both properties are documented in the bindings spec and it seems u-boot also supports both. So to be aligned with the linux dtb, I guess it should be kept here and the one in the fec node should be removed (?). -michael