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 89586C77B7F for ; Fri, 19 May 2023 10:45:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B072386292; Fri, 19 May 2023 12:44:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=1684493076; bh=GUqRwlgCkSf3evm/TLxzSkORL+NN1exDmKqS6bvgthI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lJYNXWNDpIQFEXM7gLURseDbVcE2MdNnAy+h8aGOY7keu+FimGxoWkYKKFTmyplbl ayfHc5xcRou23Qy5825n0EcJzP0iKf0B58fqaqXyZGUWl4PuwPWygOMvR/NAg+ZKbS kcvw5BMdrh438XkAVL8qIcytY7Q2qOdRqy3jfVZf7GUgUt4SCD4YyEgCW1jTA4LvkU sRNA52oTvbGn8O3RMrOAzegfR+yzX+OTfjS/NeR73U6fM88OUxfuhgCaMvWgRXqn1J 6O2DzWh2+uzIg5biyLRmUNVE6UFDl/KNiAJf2J7Z7n6c2SlGbpoWYENMqKTNO6ORIb AZ1M40XOFe07A== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AE88785EAD; Fri, 19 May 2023 12:44:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493067; bh=GUqRwlgCkSf3evm/TLxzSkORL+NN1exDmKqS6bvgthI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sye8OFG3hzrfbGeuFzQNwONQtO7IDarBaV7hG64z2tR6fsWl9y3rHiN85pRS7lO4/ DExbXELnYRw4uSyaDKn+ZrVVuhMuhJ+uoBTNC+vA1LhO4DAqp4QwHxtyIvYB5ZA1+N 59TyCcB54vVwrHuXZjzXrM0nHfjeTE0JW66pJUWPKx29MrhWRY2JMOkyKTUev8c41b oeSXPhlSFstwtvuQHaPNr2bWo9au6VQAl3dybuHwN72kcCL2rTL/QXZTwijVt2dXct Kma7GqXFPZJw/wuzq0MC27uYOYD2+duNnDKecHnxTFAVWnjT2wSQ6prmUls9e+2PPv IxL11oxKLvVag== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 02/16] dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3) Date: Fri, 19 May 2023 12:43:44 +0200 Message-Id: <20230519104359.2048821-3-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean After the commit (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) some u-boot specific XEA FEC related properties have been replaced by ones from the Linux kernel. To be more specific - XEA board (and imx287 in general) has built L2 switch connected to FEC, which needs some special treatment. In u-boot it is handled with 'mac0' node, whereas Linux uses dedicated switch DTS node. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 22dd7bc8a8..9f1e261b2f 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -38,12 +38,34 @@ bootph-pre-ram; }; +&mac0 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac0_pins_a>; + phy-supply = <®_fec_3v3>; + phy-reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; + phy-reset-duration = <1>; + phy-reset-post-delay = <1>; + status = "okay"; + + fixed-link { + speed = <100>; + full-duplex; + }; +}; + &pinctrl { /delete-property/ pinctrl-names; /delete-property/ pinctrl-0; bootph-pre-ram; }; +®_fec_3v3 { + gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; +}; + &ssp0 { bootph-pre-ram; }; -- 2.30.2