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 A1620ECAAD8 for ; Wed, 14 Sep 2022 06:22:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DA7A684A37; Wed, 14 Sep 2022 08:22:12 +0200 (CEST) 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=1663136533; bh=AMKixbckdwU7sX7M2jnYK2oJsbz8NCxgqr1vVe+NldY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=g5n06k7/Pgbp/+3Jyz8sJ92IkiEHTLIxljPTKUi3ZbBnMXESMv2mwmc90dGa34rcX llVo0JTJGLjxq67B67rL+wEsK5ecgB2KgPdHblPSpLSKp25m7R/qF/N/NpfinCsRcy GqAZvSouYfqYkupa174UXyb0Vp5B0tpwptyvX11TkfD5926liu0dhCjeNXwlKjdPnS 8YpD+RrtqLLKpNBASQqVfW/tDP3vtrKicQ2qDQkuLbU6nGB7XtteMpgzX3xNQi6aho PbgKcIEpkuXCP2UtD3c0J4R9R5zot+yQV8RU4e0hOvri3anso6bn8t2jByYCcQkgec 7BvmAFa+myXnw== Received: by phobos.denx.de (Postfix, from userid 109) id 7FEB984A5B; Wed, 14 Sep 2022 08:22:11 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (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 6F3B1849F7 for ; Wed, 14 Sep 2022 08:22:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4MS9Gl45Y1z9sNs; Wed, 14 Sep 2022 08:22:07 +0200 (CEST) Message-ID: <1f7f8e15-e588-1a3a-240d-a601948ad41a@denx.de> Date: Wed, 14 Sep 2022 08:22:06 +0200 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell] arm: mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design Content-Language: en-US To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: pali@kernel.org, U-Boot Mailing List References: <20220913161028.3785-1-kabel@kernel.org> From: Stefan Roese In-Reply-To: <20220913161028.3785-1-kabel@kernel.org> 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.6 at phobos.denx.de X-Virus-Status: Clean On 13.09.22 18:10, Marek Behún wrote: > It seems that waiting only 10 ms after releasing LAN switch from reset > is not enough for the strapping pins to latch the requested values. > P6_MODE[0] is latched to 0 instead of 1. > > Increasing the delay to 50 ms fixes this issue. > > Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan > --- > board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c > index a7f96e5b77..19c5043fcb 100644 > --- a/board/CZ.NIC/turris_omnia/turris_omnia.c > +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c > @@ -654,7 +654,7 @@ static void initialize_switch(void) > ctrl[1] = EXT_CTL_nRES_LAN; > err = omnia_mcu_write(CMD_EXT_CONTROL, ctrl, sizeof(ctrl)); > > - mdelay(10); > + mdelay(50); > > /* Change RGMII pins back to RGMII mode */ > Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de