Skip to content

Commit

Permalink
Add support for integrated GMAC Ethernet (EQoS)
Browse files Browse the repository at this point in the history
Also fix the byte-swapped MAC addresses.

Signed-off-by: Mario Bălănică <[email protected]>
  • Loading branch information
mariobalanica committed Jan 22, 2025
1 parent 9eb0078 commit db84151
Show file tree
Hide file tree
Showing 25 changed files with 4,135 additions and 159 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Platinum devices are considered to have the best overall support, based on facto
- Device Tree and peripherals compatible with mainline Linux. [**Required**]
- Active interest from the vendor in supporting their hardware.
- Hardware design choices:
- If an Ethernet port is present, Realtek PCIe NIC (for netboot) or RK GMAC. [**Required**]
- If an Ethernet port is present, Realtek PCIe NIC or integrated GMAC. [**Required**]
- SPI NOR flash for dedicated firmware storage. [Preferred]

Bronze devices may have limitations such as:
Expand Down Expand Up @@ -91,7 +91,7 @@ Note that this list is subject to change at any time as devices gain better supp
| DisplayPort output (USB-C) | 🟡 Partial | Mode fixed at 1080p 60 Hz, only works in one orientation of the Type-C port. Some displays may not work regardless. |
| eDP output | 🟡 Partial | Disabled, requires manual configuration depending on the platform and panel. |
| DSI output | 🟢 Working | Only enabled on Fydetab Duo. Requires manual configuration depending on the platform and panel. |
| GMAC Ethernet | 🔴 Not working | Only brought-up for OS usage |
| GMAC Ethernet | 🟢 Working | |
| Realtek PCIe Ethernet | 🟢 Working | Some platforms don't have MAC addresses set, networking may not work in that case. |
| Low-speed (GPIO/UART/I2C/SPI/PWM) | 🟢 Working | UART2 console available at 1500000 baud rate |
| SPI NOR Flash | 🟢 Working | |
Expand Down Expand Up @@ -275,7 +275,7 @@ This has been observed in cases where firmware was present on more than one devi
* Make sure the power supply and cable are good.

### Networking does not work
* Only Realtek PCIe and USB controllers are supported. Native Gigabit provided by RK3588 isn't.
* Only integrated Gigabit Ethernet (GMAC), Realtek PCIe and USB controllers are supported.

* Some boards with Realtek NICs do not have a MAC address set at factory and will show-up as being all zeros in UEFI, possibly preventing the adapter from obtaining an IP address.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

# No status LED on this platform.
DEFINE RK_STATUS_LED_ENABLE = FALSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/FriendlyElec/NanoPC-T6/NanoPC-T6.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/Khadas/Edge2/Edge2.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/Mixtile/Blade3/Blade3.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

# No status LED on this platform.
DEFINE RK_STATUS_LED_ENABLE = FALSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/Radxa/ROCK5B/ROCK5B.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/Radxa/ROCK5BPlus/ROCK5BPlus.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
3 changes: 3 additions & 0 deletions edk2-rockchip/Platform/Radxa/ROCK5ITX/ROCK5ITX.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
FLASH_DEFINITION = Silicon/Rockchip/RK3588/RK3588.fdf
RK_PLATFORM_FVMAIN_MODULES = $(PLATFORM_DIRECTORY)/$(PLATFORM_NAME).Modules.fdf.inc

# GMAC is not exposed
DEFINE RK3588_GMAC_ENABLE = FALSE

#
# HYM8563 RTC support
# I2C location configured by PCDs below.
Expand Down
Loading

0 comments on commit db84151

Please sign in to comment.