From patchwork Fri May 19 10:43:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783713 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=lJYNXWND; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Sye8OFG3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Q574dQz20PV for ; Fri, 19 May 2023 20:45:01 +1000 (AEST) 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 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; };