mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: David Picard <david.picard@clermont.in2p3.fr>
To: ML_Barebox <barebox@lists.infradead.org>
Subject: Enclustra SA2: enable dual fast Ethernet
Date: Wed, 25 Mar 2026 17:13:52 +0100	[thread overview]
Message-ID: <fdced1c1-5efd-481c-8b3b-a8cb43d0c220@clermont.in2p3.fr> (raw)

Hello,

I am still using the same Mercury_SA2_ST1_Reference_Design [1][2] 
released by the manufacturer:
https://github.com/enclustra/Mercury_SA2_ST1_Reference_Design.git

But I compiled a variant of the project to enable dual fast Ethernet, 
because I need a 2nd Ethernet interface.

SA2 module Ethernet layout:
- 1 Ethernet MAC ("gmac1" in the DTS) of the HPS [3] is used for gigabit 
Ethernet, and connects with RGMII to PHY at address 3 >> working!
- 2 Ethernet MACs are implemented as FPGA IP cores and connect with RMII 
to PHYs at addresses 1 and 2 >> to be configured...

All 3 PHYs share the same MDIO bus.

I generated a DTS file with Intel's tool:
$ sopc2dts --force-altr -t dts -i 
./Quartus/ME-SA2-D6-7I-D11-DFE/sdmmc/Mercury_SA2_pd.sopcinfo -o 
Mercury_SA2_pd.dts

The file is here [4]:
https://filesender.renater.fr/?s=download&token=b2eeab16-063c-41ef-8abe-ea5b44f8f25a&lang=en

Now, I am trying to merge the fast Ethernet section with the 
socfpga_cyclone5_mercury_sa2.dtsi, but I really need a hint, here...
https://git.pengutronix.de/cgit/barebox/tree/arch/arm/dts/socfpga_cyclone5_mercury_sa2.dtsi
https://git.pengutronix.de/cgit/barebox/tree/dts/src/arm/intel/socfpga/socfpga.dtsi

However, I do know for a fact that the 2 PHYs at addresses 1 and 2 share 
the same reset pin and can be released from reset by:
reset-gpios = <&portb 6 GPIO_ACTIVE_LOW>;

Currently, I program the FPGA from Linux with the .rbf file.

David (alias dpcrd)

=====
[1] An Intel Quartus project that generates the FPGA .rbf file, HPS (ARM 
core) configuration, etc.
[2] SA2 is the plug-in module with the SoC FPGA; ST1 is the development 
baseboard with connectors.
[3] HPS (Hardware Processor System) = ARM core inside the SoC FPGA chip.
[4] Generated DTS file + a screenshot of Platform Designer, the tool to 
configure the SoC FPGA system. "hps_0" is the ARM core, 
"fast_ethernet_0" (collapsed for clarity) and "fast_ethernet_1" are 2 
instances of the IP core. The left panel shows logical connections 
between blocks. Filled dots: horizontal and vertical lines are 
connected. Hollow dots: no connection.




             reply	other threads:[~2026-03-25 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 16:13 David Picard [this message]
2026-03-26  6:53 ` Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fdced1c1-5efd-481c-8b3b-a8cb43d0c220@clermont.in2p3.fr \
    --to=david.picard@clermont.in2p3.fr \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox