edk2-rk3576

Hardware

English 简体中文

Board facts the firmware depends on. What works on each board: ROCK 4D, CM5-IO, TaishanPi 3M. ACPI devices: ACPI. Bring-up notes: history.

Common to all boards

   
SoC Rockchip RK3576: 4x Cortex-A72 + 4x Cortex-A53, ARMv8.0
Interrupt controller GIC-400 (GICv2). No redistributors and no ITS.
DRAM base 0x40000000
Boot chain BootROM, U-Boot SPL, TF-A BL31 v2.14.0, EDK2 as BL33
Serial console UART0 at 0x2AD40000, 1500000 8N1, no flow control
PMIC RK806 on I2C1, address 0x23
Thermal shutdown TSADC hardware shutdown armed by the firmware at 120 C (PcdTsadcTshutEnable, PcdTsadcTshutTemp), plus each channel’s OTP trim

Because the SoC is ARMv8.0, Windows 11 24H2 and later cannot run on it.

Radxa ROCK 4D

   
Firmware lives on 16 MB SPI NOR. v1.12 boards use an XMC XM25QU128C, earlier ones a Macronix part; the SPL supports both from 0.2.1 on.
MaskROM port The upper USB 3.0 USB-A port (the USB-C port carries power only)
Storage UFS, microSD, NVMe over PCIe. No eMMC.
Tested SKU 12 GB LPDDR5

ArmSoM CM5-IO

   
Firmware lives on SD card or eMMC. The carrier’s SPI NOR is 64 KB, too small.
Boot order The BootROM tries the eMMC before the SD card.
MaskROM port USB-C
Storage eMMC on the CM5 module, microSD, NVMe over PCIe
Ethernet PHY Motorcomm YT8531C, crystal-less: it takes its 25 MHz reference from the SoC.
USB-A Behind an onboard 4-port hub
USB-C FUSB302; the firmware reads the plug orientation from it and brings up the USBDP PHY’s USB3 half at ExitBootServices. SuperSpeed has not trained there.
Audio ES8388 on I2C0 and SAI1, to a 3-pin header (CN3), no jack; not described by the firmware. HDMI audio on SAI6 is (PcdHdmiAudioPreset TRUE).
Tested SKU 4 GB

LCKFB TaishanPi 3M

   
BootROM boot order eMMC, then USB, never the SD card (set by the divider on SARADC_IN0_BOOT).
Firmware lives on SPL on the eMMC at sector 64. The FIT (BL31 + EDK2) on an SD card or the eMMC; the SPL tries SD first.
MaskROM MSK pads under the RK3576 silkscreen, USB-C port OTG+DP, or F4 in the boot countdown.
Storage 58 GiB eMMC (62008590336 bytes), microSD. The mini-PCIe slot carries PCIe, SATA or a USB modem.
Ethernet PHY Maxio MAE0621A-Q3C, ID 7b74.4412, at MDIO address 1 and answering address 0. Delays are set by straps: RX delay in the PHY, TX delay 0x24 in the MAC. The firmware writes nothing to it.
USB-A Four ports behind an onboard hub on DRD1. The firmware’s device tree marks their VBUS supplies always-on; in the mainline tree nothing owns them and Linux switches them off.
USB-C FUSB302 on I2C2; VBUS switch SY6280 enabled by GPIO0_B6. At boot and at ExitBootServices the firmware reads CC and turns VBUS on only for a sink (Rd), never for a charger or PC (Rp). No OS driver watches the port afterwards. No VCONN.
DSI screen LCKFB’s 800x1280 screen, part C41409463: ILI9881C panel on DSI, reset on GPIO2_B4, backlight on PWM2 channel 2 (GPIO3_C5), mounted so that landscape is the panel’s left edge up. Lit by the firmware; an OS gets it in portrait. When the screen answers, the firmware’s device tree enables its pwm-backlight at the setup brightness and, with force GOP off, the DSI host and panel (rocknix,generic-dsi, so an Armbian kernel); see FdtFixupDsiPanel.
Touch Goodix GT9271 at 0x5d on I2C0 (GPIO0_C1, GPIO0_C2). Read for the menus; its presence means the screen is attached. The firmware never writes its configuration.
HDMI GPIO4_C6 enables the level shifters. HPD reaches the SoC through two transistor stages (Q17, Q16), so it is not inverted: GPIO4_C1 reads 1 with a monitor attached. The connector’s 5 V comes from the system rail through a diode and is not switched.
Audio ES8388 on I2C3 0x11, SAI1 (DMA0 requests 2 and 3, lane 0 out on SDO2), headphone amplifier enable GPIO4 PB2, jack detect GPIO4 PB0, mclk_sai1 12.288 MHz from clk_audio_frac_1. Set up by Tspi3mAudio.c when PcdAnalogAudioPreset is TRUE (it is for this board).
Bluetooth AP6256 (BCM4345C5) on UART6 (uart6m1, GPIO2 PD2 to PD5), sclk_uart6 24 MHz from xin24m; BT_REG_ON GPIO1 PC7, BT_WAKE GPIO1 PD4. The 32 kHz sleep clock comes from the HYM8563’s CLKOUT, on as the chip leaves the factory; the firmware does not write it.
RTC HYM8563 on I2C2 0x51. Loses its time at every power-off and reset (no battery); NTP or the OS sets the clock.
GPU supply vdd_gpu_s0 = RK806 BUCK5, 750 mV at power-on. Raised to 775 mV when “GPU voltage for 702 MHz (775 mV)” is on (PcdGpuRail775, default here); the reading goes to the GpuRail variable, and the Windows GPU driver runs 702 MHz at 775 mV or more, else 594 MHz.
Fan 2-pin connector CN2 on PWM2 channel 3 (GPIO3_D0), high = on, switched on its supply by a P-MOSFET. Started at 100% (PcdPwmFanSpeedDefault), 2 kHz period (PcdPwmFanPeriodNs 500000); partial duty is audible. Windows: 100% unless “Fan Control by ACPI Thermal Zone” is on. Linux: the device tree has the PWM channel but no pwm-fan, so it stays as the firmware left it.
Tested SKU 4 GB LPDDR5, 64 GB eMMC