Message ID | 20230317010536.17860-1-yanhong.wang@starfivetech.com |
---|---|
Headers | show |
Series | Add Ethernet driver for StarFive JH7110 SoC | expand |
On Fri, 17 Mar 2023 09:05:31 +0800 Yanhong Wang <yanhong.wang@starfivetech.com> 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? Torsten
On 2023/3/24 20:53, Torsten Duwe wrote: > On Fri, 17 Mar 2023 09:05:31 +0800 > Yanhong Wang <yanhong.wang@starfivetech.com> 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 > >
On Mon, 27 Mar 2023 10:22:37 +0800 yanhong wang <yanhong.wang@starfivetech.com> wrote: > On 2023/3/24 20:53, Torsten Duwe wrote: > > What's missing to read the correct MACs from the EEPROM? > > The minimum system of u-boot supporting JH7110 does not contain EEPROM [...] Thanks for the info! Torsten