From patchwork Fri Mar 22 11:43:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1914838 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=Bt7ReCUf; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=pFAtfdnc; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V1L9Q6FYyz1yXy for ; Fri, 22 Mar 2024 22:45:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDD2A88217; Fri, 22 Mar 2024 12:43:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=1711107824; bh=eJOr65NrCaA1tj3dKnYB22gVwpRA0ancxXdUR7BpvcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Bt7ReCUffgghtbMQLr58+FCM4/XLaKANg2vKOIiRYN7GaTqsae/ruCoG1ocX9AFSb 001cJsVRupDZdtTVgVRny0vvd16mjKBdzNvoOwRu04OR7nUThsg+RlFEJG+zACfVpE Uz3bpKsB5fgBBZfCD3YmA73M1ETcpYm6dQn1ir8wZSLMztx9bfEKdHwVP/LLnBTb4J cB7xUy4/HgaYtiJoMPWyi0SPadGfrBUfBTaRjFLe6nqgNkDnWuaaaqHNzfHdqcvk80 llqPFHM5KQqa84A9jQqBxA52LQFJYwFBTVGAQGPw2piAGdzjrc+3cHSuqxFWS8AXn/ A/Ei6EhTk0pTg== 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 42E7C881FA; Fri, 22 Mar 2024 12:43:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711107819; bh=eJOr65NrCaA1tj3dKnYB22gVwpRA0ancxXdUR7BpvcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pFAtfdncdg1+7nEv/uUz9we+WORC4FG2Vx5X/loJRO3Py7UJlR/RCK1NWh/Chko6O bGJAiikAA++5mQ9voA9t32vkwDjgBigv59Ht55IlBEy/HhrP7Mv7PC9ozPrt4Y6DQM OiAFmgIrX9Si0vaxllMJvGU7N0+VKt465haqswThDHDLTRk7BhP9i9lJWgmXoNE2oz eRu860QAdP4NuYXiHzxlWaU2AWadYVxMpcfex4s/TBjjeWF6NsWdDH8gOnbjjb7xry cAj5ZjF4mwgVqGlKYVOm0QdssAoexr7+9CmAyHg9yz/qyG6jxLM1k+RuzWGguViYRm wZ56qCpbFNUfw== From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de Cc: Lukasz Majewski , Tom Rini Subject: [PATCH 08/12] arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2 Date: Fri, 22 Mar 2024 12:43:11 +0100 Message-Id: <20240322114315.2720727-9-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240322114315.2720727-1-lukma@denx.de> References: <20240322114315.2720727-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 The imx287 based XEA board's revision 2 uses GPIO_3_21 for PHY reset It is safe to keep the GPIO_2_13 as well, as in the SPL SPI1 is not used for transmission. This simplifies the code, as the proper configuration is performed either in falcon boot's read DTB or in u-boot proper (with correct FIT configuration chosen). Signed-off-by: Lukasz Majewski --- board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c index 71194db235..6cf8f8390e 100644 --- a/board/liebherr/xea/spl_xea.c +++ b/board/liebherr/xea/spl_xea.c @@ -225,7 +225,8 @@ const iomux_cfg_t iomux_setup[] = { MX28_PAD_ENET0_TXD0__ENET0_TXD0 | MUX_CONFIG_ENET, MX28_PAD_ENET0_TXD1__ENET0_TXD1 | MUX_CONFIG_ENET, MX28_PAD_ENET0_TXD3__ENET1_TXD1 | MUX_CONFIG_ENET, - MX28_PAD_SSP1_CMD__GPIO_2_13, /* PHY reset */ + MX28_PAD_SSP1_CMD__GPIO_2_13, /* PHY reset HW Rev. 1*/ + MX28_PAD_SAIF0_LRCLK__GPIO_3_21, /* PHY reset HW Rev. 2*/ /* TIVA boot control */ MX28_PAD_GPMI_RDY3__GPIO_0_23 | MUX_CONFIG_BOOT, /* TIVA0 */