From mboxrd@z Thu Jan 1 00:00:00 1970 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 190AEC433EF for ; Fri, 15 Jul 2022 08:16:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 87E6C80741; Fri, 15 Jul 2022 10:16:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="qosGnplu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6367D805DA; Fri, 15 Jul 2022 10:16:20 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A4B3680741 for ; Fri, 15 Jul 2022 10:16:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D07461F4D; Fri, 15 Jul 2022 08:16:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E238C34115; Fri, 15 Jul 2022 08:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657872975; bh=R1xf55bP9nIb9YG0tYLf3L28v4oJ07dDDPrlhhZjArE=; h=From:To:Cc:Subject:Date:From; b=qosGnpluSx1U2m6DHRe4Rya0AX0EaPBeUf24YWnndBT5GOARn6aJaXr/Zs7W4t3I8 EsI4ux8/vLXVaktHOpYu1xI2lh22WTwiShfcbRVsWeASC9yAzD7iAWnJNbjjh7GpR/ VJNxyrSJXTi58jl5QDwhI1hMR4hw5d3lh6NVgHXlgkrRS6s3Ud1UAM/dzv0yBc6SuD 0fTnqm0poM+djvO0joHvUeNhras6YL1gU12gNoBFW3LDEytdVaRoClswoqafR33m4b mbre7yQPSxlVwK/WFyVbjYIPTP0lZ2PxcewiQKtBuP5PHcWEC3SN0qWpfDCWmm1+7n 7Gnqt/z8kQifQ== Received: by pali.im (Postfix) id 134C3A32; Fri, 15 Jul 2022 10:16:13 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: =?UTF-8?q?Marek=20Beh=C3=BAn?= , Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH] arm: mvebu: turris_omnia: Set ETHPRIME to DT alias Date: Fri, 15 Jul 2022 10:16:00 +0200 Message-Id: <20220715081600.19748-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 CONFIG_ETHPRIME can be set to DT node name or alias which refers to DT node. Define ethernet aliases and set ETHPRIME to eth2 which refers to WAN ethernet port. This removes hardcoded DT node name from U-Boot configuration file. Signed-off-by: Pali Rohár --- arch/arm/dts/armada-385-turris-omnia.dts | 6 ++++++ configs/turris_omnia_defconfig | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/armada-385-turris-omnia.dts b/arch/arm/dts/armada-385-turris-omnia.dts index 5511c84849ee..7f1478edfd23 100644 --- a/arch/arm/dts/armada-385-turris-omnia.dts +++ b/arch/arm/dts/armada-385-turris-omnia.dts @@ -55,6 +55,12 @@ stdout-path = &uart0; }; + aliases { + ethernet0 = ð0; + ethernet1 = ð1; + ethernet2 = ð2; + }; + memory { device_type = "memory"; reg = <0x00000000 0x40000000>; /* 1024 MB */ diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 6460535ef94e..e2a0449b487b 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -65,7 +65,7 @@ CONFIG_CMD_FS_UUID=y CONFIG_ENV_OVERWRITE=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_USE_ETHPRIME=y -CONFIG_ETHPRIME="ethernet@34000" +CONFIG_ETHPRIME="eth2" CONFIG_ARP_TIMEOUT=200 CONFIG_NET_RETRY_COUNT=50 CONFIG_NETCONSOLE=y -- 2.20.1