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 71504C433EF for ; Tue, 21 Dec 2021 12:33:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4600D82FAF; Tue, 21 Dec 2021 13:33:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QnIEJ1k7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 16D8D83034; Tue, 21 Dec 2021 13:33:08 +0100 (CET) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D4D8F8309A for ; Tue, 21 Dec 2021 13:32:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pbrobinson@gmail.com Received: by mail-wr1-x42c.google.com with SMTP id v7so19305257wrv.12 for ; Tue, 21 Dec 2021 04:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R08als7pCNPykZWIw9ZKZOQOpmQNJsi9grw/iUyi+qE=; b=QnIEJ1k7qEQMpI+HRK/31vLNUKZCMiFFVKcxFmdFNwrbuR9/zUUm/1i9I7K03xvp2E O5o2s+VLLcHK+GGFChRor0/ZsMKnFBjABCHRIZsdNwncfkj7z+YPltPulG8qPtOr/MTg S6Q90YVdon8igyHMBIyMe5Ni1xpexaZDqbHPRjda93M2elNJrc1wUmTnYyKrAQLi+m1/ V6oOpMoKOG2h5rnJSytPeJghVKV9jR7Kr8USSRElSWWgH0Vu7J5yA6Rd+BZpqWZy3uRy l/TSsMRj9VX2GST4zBFL5qgyrriFOTHxpeMinI9GtzYx8CEpdm0TMdDqyRE5nznEx7yb 4ZJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R08als7pCNPykZWIw9ZKZOQOpmQNJsi9grw/iUyi+qE=; b=plswyyC2taBU3J9NfK8ZSBGufFMfUGnEqyIRQcUSnBnoFZ3g5wq+DOo+i1sO5lMX/y IydGP3HZeE3NkBOHxox99+3Cj6HdnpW7Z2GhMmSzgTV1xiljrWZgjkIgFblU4qfcFJRA yuOfg0co06UQ/iLSABEKfDuzFylkc9sNMNIL5lOEWYUIGbe9hXgAA2CNAkbIe/b199vV H87C3e3M6aytR16rIuKFv9xS8JFt767guVInEBdaUrFg/bJ6wD11qDUdfWK89JeukB42 j+iBetEofJbUpcB0UHK6aS+yPYG2zPjF/g/6jsjIOZZGbTvQ3sjAFipL5HpI8Hd1yDjf t5Iw== X-Gm-Message-State: AOAM533oiK07fLRuKDEk4NgresFhv6IwTTQ/cVu1weL/cRXpmW8jNrgT fqOtHvv8gioME4nCxYKMvNo= X-Google-Smtp-Source: ABdhPJzyTz19sTQpmpdSqyAjfbwSEC6DNrV5BXRUFSatpDFlfIPKeDgK93vcyG/mG0oVDGbFVF72LA== X-Received: by 2002:adf:82d2:: with SMTP id 76mr2471449wrc.329.1640089979489; Tue, 21 Dec 2021 04:32:59 -0800 (PST) Received: from morpheus.home.roving-it.com (a.7.4.5.7.2.7.b.4.1.9.2.a.3.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681:3a:2914:b727:547a]) by smtp.googlemail.com with ESMTPSA id az11sm2168479wmb.30.2021.12.21.04.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Dec 2021 04:32:59 -0800 (PST) From: Peter Robinson To: Stefano Babic , Fabio Estevam , Breno Lima , Francesco Montefoschi , u-boot@lists.denx.de Cc: Peter Robinson Subject: [PATCH 3/4] udoo_neo: Fix ethernet Date: Tue, 21 Dec 2021 12:32:48 +0000 Message-Id: <20211221123249.455347-3-pbrobinson@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211221123249.455347-1-pbrobinson@gmail.com> References: <20211221123249.455347-1-pbrobinson@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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.2 at phobos.denx.de X-Virus-Status: Clean The ethernet has a RMII not RGMII, also needs DM_MDIO and finally initialise it later in the process as it's not needed that early on and not everything is ready so it locks up the device. Signed-off-by: Peter Robinson --- board/udoo/neo/neo.c | 3 ++- configs/udoo_neo_defconfig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c index 8b0d13b1ca..62f81fff68 100644 --- a/board/udoo/neo/neo.c +++ b/board/udoo/neo/neo.c @@ -303,6 +303,8 @@ int board_init(void) setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); #endif + setup_fec(); + return 0; } @@ -337,7 +339,6 @@ static int get_board_value(void) int board_early_init_f(void) { setup_iomux_uart(); - setup_fec(); return 0; } diff --git a/configs/udoo_neo_defconfig b/configs/udoo_neo_defconfig index f01d2e22e9..2a37757100 100644 --- a/configs/udoo_neo_defconfig +++ b/configs/udoo_neo_defconfig @@ -46,8 +46,8 @@ CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ8XXX=y CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_FEC_MXC=y -CONFIG_RGMII=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y -- 2.33.1