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 BB753C74A5B for ; Mon, 27 Mar 2023 02:22:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2FC0385C66; Mon, 27 Mar 2023 04:22:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 70AFF85C86; Mon, 27 Mar 2023 04:22:50 +0200 (CEST) Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by phobos.denx.de (Postfix) with ESMTP id 8C5BB85C65 for ; Mon, 27 Mar 2023 04:22:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=yanhong.wang@starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 0B20824E32F; Mon, 27 Mar 2023 10:22:44 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Mar 2023 10:22:39 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Mar 2023 10:22:38 +0800 Message-ID: <988e7812-ae5c-6f3e-0645-fe1c59973309@starfivetech.com> Date: Mon, 27 Mar 2023 10:22:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 0/5] Add Ethernet driver for StarFive JH7110 SoC Content-Language: en-US To: Torsten Duwe CC: , Rick Chen , Leo , Joe Hershberger , "Ramon Fried" References: <20230317010536.17860-1-yanhong.wang@starfivetech.com> <20230324135306.7a773e7c@blackhole.lan> From: yanhong wang In-Reply-To: <20230324135306.7a773e7c@blackhole.lan> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag 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 On 2023/3/24 20:53, Torsten Duwe wrote: > On Fri, 17 Mar 2023 09:05:31 +0800 > Yanhong Wang wrote: > >> This series adds ethernet support for the StarFive JH7110 RISC-V SoC. >> The series includes PHY and MAC drivers. The PHY model is >> YT8531 (from Motorcomm Inc), and the MAC version is dwmac-5.20 >> (from Synopsys DesignWare). >> >> The implementation of the phy driver is ported from linux, but it >> has been adjusted for the u-boot framework. >> >> The PHY and MAC driver has been tested on the StarFive VisionFive 2 1.2A >> and 1.3B boards and works normally. > > At least a smoke test here succeeded as well, I'm seeing replies to DHCP. > However: > > | Model: StarFive VisionFive 2 v1.3B > [...] > | Net: > | Warning: ethernet@16040000 (eth1) using random MAC address - e2:b9:39:bd:92:24 > | > | Warning: ethernet@16030000 (eth0) using random MAC address - 22:da:dc:e6:2c:17 > | eth0: ethernet@16030000, eth1: ethernet@16040000 > [...] > > What's missing to read the correct MACs from the EEPROM? > The minimum system of u-boot supporting JH7110 does not contain EEPROM and cannot read the MAC address from EEPROM, so enable the CONFIG_NET_RANDOM_ETHADDR, EEPROM will be supported in the future, and the MAC address will be read from EEPROM. > Torsten > >