From patchwork Mon Jun 24 12:40:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Etienne_Dubl=C3=A9?= X-Patchwork-Id: 1951553 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=imag.fr header.i=@imag.fr header.a=rsa-sha256 header.s=2022 header.b=efBgjqt3; 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 4W77F11vBPz20X1 for ; Mon, 24 Jun 2024 22:53:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1C2C884E5; Mon, 24 Jun 2024 14:52:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=imag.fr 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=imag.fr header.i=@imag.fr header.b="efBgjqt3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E5818837A; Mon, 24 Jun 2024 14:40:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from zm-mta-out-3.u-ga.fr (zm-mta-out-3.u-ga.fr [152.77.200.56]) (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 1356A88137 for ; Mon, 24 Jun 2024 14:40:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=imag.fr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.duble@imag.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=imag.fr; s=2022; t=1719232802; bh=8gFC80niOT7pNz+hFYpdwAlxHrd9T7wCYAPWsGYNF6Y=; h=Date:From:To:Cc:Subject:From; b=efBgjqt3Z5DtHW+Amn+FDgHJzfVoJWfzOLhCOhFBW+WwKBc0sLa5PLPacvoO4xgOd 2dXXKiVi/9MVyIPsp1tdVqHcjmhpDhQCqcOLekw1/c1GEzFrpaBqbxYQ0kt6GytWb7 O11qz4HeBTlacRS2KlavhaEyrT04n5fzx4tUMAXh/1cbMJ9JY/Jfz2bWKebLmCWOMr 74ADk5uAErj7KLwBo0p0gussqTfuAfwIt2Rfi3bwFBiAEQoPRyd3srf2TLSfk/I7xf X5NAd1vv17uxfsYEnDGJk4g0E1tN5hN5dZwT3pVdP1Frz1ueBGOUdl2luXF8YjQGRo Ip0/60XzbPY/w== Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id 93560402C2; Mon, 24 Jun 2024 14:40:02 +0200 (CEST) Received: from mailhost.u-ga.fr (mailhost2.u-ga.fr [129.88.177.242]) by mailhub.u-ga.fr (Postfix) with ESMTP id 8EC95100053; Mon, 24 Jun 2024 14:40:02 +0200 (CEST) Received: from zm-mbx1.u-ga.fr (zm-mbx1.u-ga.fr [152.77.200.25]) by mailhost.u-ga.fr (Postfix) with ESMTP id 641ED6006F; Mon, 24 Jun 2024 14:40:02 +0200 (CEST) Date: Mon, 24 Jun 2024 14:40:02 +0200 (CEST) From: ETIENNE DUBLE To: Kever Yang , Philipp Tomsich , Simon Glass Cc: ETIENNE DUBLE , joe hershberger , Leo Yu-Chi Liang , Minda Chen , Philipp Tomsich , Ramon Fried , Sumit Garg , Tom Rini , u-boot Message-ID: <956549361.15002868.1719232802319.JavaMail.zimbra@univ-grenoble-alpes.fr> Subject: [PATCH 0/3] Improve networking support on FriendlyElec Nanopi R5C MIME-Version: 1.0 X-Originating-IP: [129.88.53.250] X-Mailer: Zimbra 10.0.8_GA_4611 (ZimbraWebClient - FF102 (Linux)/10.0.8_GA_4611) Thread-Index: 2gbXxVw8fNCB4uZ1vLzOSeQbnJrnyg== Thread-Topic: Improve networking support on FriendlyElec Nanopi R5C X-Greylist: Whitelist-UGA MAILHOST (SMTP non authentifie) depuis 152.77.200.25 X-Mailman-Approved-At: Mon, 24 Jun 2024 14:52:21 +0200 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 This board has two RTL-8125B interfaces (drivers/net/rtl8169.c). The secondary interface (labelled "wan") was not working because of a wrong PCI address in file rk3568.dtsi. Moreover, users could not instruct u-boot to use this secondary interface (i.e., using ethprime), because both interfaces had the same name. Lastly, the mac address generated by u-boot was not properly passed to the Linux kernel, in the case of RTL-8125B. This series probably improves support of other similar boards too (e.g., Nanopi R5S). Etienne Dublé (3): net: give a different name to rtl8169 interfaces rockchip: fix wrong PCI range address in rk3568 dtsi net: RTL-8125B -- write mac to MAC0_BKP drivers/net/rtl8169.c | 26 +++++++++++++++++++++ dts/upstream/src/arm64/rockchip/rk3568.dtsi | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-)