realtek/rtl839x: Edgecore ECS4100-12PH support
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 28 Jun 2022 14:44:51 +0000 (17:44 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 9 Jan 2026 19:03:41 +0000 (21:03 +0200)
commitfa9f92595197e3e010cdc209089ff8ce5235876a
treed0ec5a77a79af9721b79c09f0a0744453a36854b
parent7b351062d2d8071038d0d298e806dff3794e7a6f
realtek/rtl839x: Edgecore ECS4100-12PH support

Add support for the Edgecore ECS4100-12PH, an 8-port 802.3bt PoE Gigabit
Ethernet switch with 2 combo RJ45/SFP and 2 SFP ports.

Hardware:
* SoC: RTL8393M
* RAM: 256MiB
* Flash: 32MiB SPI-NOR
* Ethernet:
  * 8x GbE RJ45 PoE (external RTL8218B)
  * 2x GbE RJ45 / SFP combo (external RTL8214FC)
  * 2x SFP (external RTL8214FC)
* Console: RJ45 RS232 port on front panel
* PoE: Nuvoton M0516 + 2x Broadcom BCM59121 PSE

Installation via bootloader:
* open serial console (baud rate 115200)
* interrupt boot process by pressing any key during boot
* boot the OpenWrt initramfs:
  # rtk network on
  # tftpboot 0x8f000000 /tftpboot/openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-initramfs-kernel.bin
  # bootm
* copy openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-squashfs-sysupgrade.bin
  to /tmp and use sysupgrade to install it:
  # sysupgrade /tmp/openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-squashfs-sysupgrade.bin

Even though U-Boot claims the switch is based on the RTL8392M SoC, my
device is based on the RTL8393M SoC. I have confirmed this by removing
the heatsink, and the Linux kernel agrees with this. Therefore the DTS
has the rtl8393_ prefix.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/base-files/etc/board.d/02_network
target/linux/realtek/dts/rtl8393_edgecore_ecs4100-12ph.dts [new file with mode: 0644]
target/linux/realtek/image/rtl839x.mk