hw/arm: Add Phytium E2000Q SoC and board support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest32 patches 1 replyIn review
- v133 patches 18 repliesSuperseded
Changes in v2 from the cover letter
- Use scripts/git.orderfile when generating the series
- Configure FTC cores as SoC-owned Cortex-A72 CPU children
- Keep Phytium CPU configuration out of the global ARM CPU list
- Explain why the Phytium machines are restricted to TCG
- Reduce the DesignWare MCI register migration state to 96 words
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | hw/arm: Add Phytium E2000 SoC and Phytium Pi machinehw/ hw/ hw/ +2 more | +638 | 0 replies | |
| 2/32 | hw/arm: phytium: Add Phytium E2000 PCIe hosthw/ hw/ include/ | +120 | 0 replies | |
| 3/32 | hw/sd: Add Synopsys DesignWare MCI controllerMAINTAINERS hw/ hw/ +2 more | +1465 | 0 replies | |
| 4/32 | hw/sd: Add Phytium E2000 MCI controllerhw/ hw/ hw/ +1 more | +118 | 0 replies | |
| 5/32 | hw/arm: phytium: Connect Phytium E2000 MCI controllershw/ hw/ hw/ +1 more | +85 | 0 replies | |
| 6/32 | tests/qtest: Add Synopsys DesignWare MCI coverageMAINTAINERS tests/ tests/ | +419 | 0 replies | |
| 7/32 | hw/arm: phytium: Connect Phytium E2000 GEM controllershw/ hw/ include/ | +67 | 0 replies | |
| 8/32 | hw/misc: Add Phytium E2000 DDR controllerhw/ hw/ include/ | +221 | 0 replies | |
| 9/32 | hw/arm: phytium: Connect the Phytium E2000 DDR controllerhw/ | +20 | 0 replies | |
| 10/32 | hw/misc: Add Phytium E2000 MHU doorbellhw/ hw/ include/ | +211 | 0 replies | |
| 11/32 | hw/arm: phytium: Connect the Phytium E2000 MHUhw/ include/ | +35 | 0 replies | |
| 12/32 | hw/ssi: Add Phytium E2000 QSPI controllerhw/ hw/ hw/ +1 more | +427 | 0 replies | |
| 13/32 | hw/arm: phytium: Connect the Phytium E2000 QSPI controllerhw/ hw/ include/ | +20 | 0 replies | |
| 14/32 | hw/misc: Add Phytium E2000 PBR modelhw/ hw/ include/ | +1277 | 0 replies | |
| 15/32 | hw/arm: phytium: Integrate the Phytium E2000 PBRhw/ hw/ include/ | +107 | 0 replies | |
| 16/32 | hw/arm: phytium: Add Phytium E2000 control region placeholdershw/ include/ | +30 | 0 replies | |
| 17/32 | hw/misc: Support Phytium E2000 SCMI CPU power controlhw/ hw/ hw/ +2 more | +543 | 0 replies | |
| 18/32 | hw/arm: phytium: Select the Phytium E2000 PBR boot mediumhw/ | +65 | 0 replies | |
| 19/32 | hw/arm: phytium: Connect the Phytium E2000 I2C controllerhw/ hw/ include/ | +20 | 0 replies | |
| 20/32 | hw/arm: phytium: Add Phytium E2000 xHCI controllershw/ hw/ include/ | +35 | 0 replies | |
| 21/32 | hw/misc: Model the Phytium E2000 random generatorhw/ hw/ include/ | +206 | 0 replies | |
| 22/32 | hw/arm: phytium: Connect the Phytium E2000 random generatorhw/ include/ | +15 | 0 replies | |
| 23/32 | hw/arm: phytium: Support Phytium E2000 direct Linux boothw/ | +65 | 0 replies | |
| 24/32 | hw/arm: phytium: Add Phytium E2000Q COMe machinehw/ | +21 | 0 replies | |
| 25/32 | hw/block: m25p80: Add GigaDevice GD25Q128 flashhw/ | +1 | 0 replies | |
| 26/32 | hw/arm: phytium: Connect the Phytium E2000Q COMe QSPI flashhw/ hw/ hw/ +1 more | +45 | 0 replies | |
| 27/32 | hw/arm: phytium: Add Phytium E2000 AHCI controllershw/ hw/ hw/ +1 more | +81 | 0 replies | |
| 28/32 | hw/arm: Add Phytium E2000 Linux SCMI channelhw/ hw/ | +381 | 0 replies | |
| 29/32 | hw/arm: phytium: Connect the Phytium E2000 SMMUv3hw/ hw/ | +38 | 0 replies | |
| 30/32 | docs/system/arm: Document Phytium E2000 machinesdocs/ docs/ | +423 | 0 replies | |
| 31/32 | tests/functional/aarch64: Add Phytium Pi boot teststests/ tests/ | +79 | 0 replies | |
| 32/32 | MAINTAINERS: Add Phytium E2000Q machinesMAINTAINERS | +15 | 0 replies |
Reviews trailers per patch
2 of 32 patches have a Reviewed-by or Acked-by.
| Patch | Alex Bennée | Philippe Mathieu-Daudé |
|---|---|---|
| 1/32 | ||
| 2/32 | ||
| 3/32 | ||
| 4/32 | ||
| 5/32 | ||
| 6/32 | ||
| 7/32 | ||
| 8/32 | ||
| 9/32 | ||
| 10/32 | ||
| 11/32 | ||
| 12/32 | ||
| 13/32 | ||
| 14/32 | ||
| 15/32 | ||
| 16/32 | ||
| 17/32 | ||
| 18/32 | ||
| 19/32 | ||
| 20/32 | ||
| 21/32 | ||
| 22/32 | ||
| 23/32 | ||
| 24/32 | ||
| 25/32 | ||
| 26/32 | ||
| 27/32 | ||
| 28/32 | ||
| 29/32 | ||
| 30/32 | ||
| 31/32 | R-b | |
| 32/32 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/32] hw/arm: Add Phytium E2000Q SoC and board support
The Phytium E2000Q is a heterogeneous Armv8 SoC with two FTC664 cores and two FTC310 cores. This series adds a reusable E2000Q SoC QOM device which owns Cortex-A72 CPU children and applies the FTC core configuration locally. Two board machines embed the SoC:
- phytium-pi, with firmware and Linux on SD0
- phytium-e2000-come, with firmware in QSPI NOR and Linux on an AHCI1 SATA disk
The machines support the vendor firmware path from the on-chip Phytium Boot ROM (PBR) handoff through Processor Base Firmware (PBF), TF-A, OP-TEE, U-Boot, and Linux. They can also directly boot SDK Linux kernels when supplied with matching board device trees.
The PBR model does not execute undocumented ROM code. It parses the selected fip-all.bin, validates the PBF, TF-A FIP, and platform parameter records, and reconstructs the observed handoff state. The MHU model handles the private SCMI power-domain requests needed to release secondary CPUs and exposes a separate Base-protocol channel to Linux.
The E2000Q SoC provides GICv3/ITS, UARTs, GPEX PCIe, SMMUv3, four Cadence GEM controllers, two DesignWare-derived MCI controllers, QSPI, I2C, xHCI, AHCI, a random generator, and the firmware-facing DDR and control regions. Board machines retain RAM, firmware media, and storage backend attachment. Unimplemented register windows remain visible to firmware without claiming unsupported behavior.
Functional tests exercise both firmware and direct Linux boot on the Phytium Pi with an SDK Buildroot image. Manual testing covers Phytium Pi SD boot, COMe QSPI-to-SATA boot, all four CPUs, and network access.
Known limitations are documented. In particular, the PBR handoff is a behavioral model validated against the available SDK firmware samples.
Changes in v2:
- Use scripts/git.orderfile when generating the series
- Configure FTC cores as SoC-owned Cortex-A72 CPU children
- Keep Phytium CPU configuration out of the global ARM CPU list
- Explain why the Phytium machines are restricted to TCG
- Reduce the DesignWare MCI register migration state to 96 words
Bin Meng (32):
hw/arm: Add Phytium E2000 SoC and Phytium Pi machine hw/arm: phytium: Add Phytium E2000 PCIe host
hw/sd: Add Synopsys DesignWare MCI controller
hw/sd: Add Phytium E2000 MCI controller
hw/arm: phytium: Connect Phytium E2000 MCI controllers tests/qtest: Add Synopsys DesignWare MCI coverage hw/arm: phytium: Connect Phytium E2000 GEM controllers hw/misc: Add Phytium E2000 DDR controller
hw/arm: phytium: Connect the Phytium E2000 DDR controller hw/misc: Add Phytium E2000 MHU doorbell
hw/arm: phytium: Connect the Phytium E2000 MHU hw/ssi: Add Phytium E2000 QSPI controller
hw/arm: phytium: Connect the Phytium E2000 QSPI controller hw/misc: Add Phytium E2000 PBR model
hw/arm: phytium: Integrate the Phytium E2000 PBR hw/arm: phytium: Add Phytium E2000 control region placeholders hw/misc: Support Phytium E2000 SCMI CPU power control hw/arm: phytium: Select the Phytium E2000 PBR boot medium hw/arm: phytium: Connect the Phytium E2000 I2C controller hw/arm: phytium: Add Phytium E2000 xHCI controllers hw/misc: Model the Phytium E2000 random generator hw/arm: phytium: Connect the Phytium E2000 random generator hw/arm: phytium: Support Phytium E2000 direct Linux boot hw/arm: phytium: Add Phytium E2000Q COMe machine hw/block: m25p80: Add GigaDevice GD25Q128 flash hw/arm: phytium: Connect the Phytium E2000Q COMe QSPI flash hw/arm: phytium: Add Phytium E2000 AHCI controllers hw/arm: Add Phytium E2000 Linux SCMI channel
hw/arm: phytium: Connect the Phytium E2000 SMMUv3 docs/system/arm: Document Phytium E2000 machines tests/functional/aarch64: Add Phytium Pi boot tests
MAINTAINERS: Add Phytium E2000Q machines
MAINTAINERS | 18 + docs/system/arm/phytium_e2000.rst | 422 ++++++ docs/system/target-arm.rst | 1 + include/hw/arm/phytium_e2000.h | 120 ++ include/hw/misc/phytium_e2000_ddr.h | 23 + include/hw/misc/phytium_e2000_mhu.h | 34 + include/hw/misc/phytium_e2000_pbr.h | 62 + include/hw/misc/phytium_e2000_rng.h | 23 + include/hw/sd/dw_mci.h | 75 + include/hw/sd/phytium_e2000_mci.h | 21 + include/hw/ssi/phytium_qspi.h | 23 + hw/arm/phytium_e2000.c | 958 +++++++++++++ hw/arm/phytium_e2000_machine.c | 388 ++++++ hw/block/m25p80.c | 1 + hw/misc/phytium_e2000_ddr.c | 197 +++ hw/misc/phytium_e2000_mhu.c | 818 +++++++++++ hw/misc/phytium_e2000_pbr.c | 1366 ++++++++++++++++++ hw/misc/phytium_e2000_rng.c | 182 +++ hw/sd/dw_mci.c | 1382 +++++++++++++++++++ hw/sd/phytium_e2000_mci.c | 95 ++ hw/ssi/phytium_qspi.c | 398 ++++++ tests/qtest/dw_mci-test.c | 417 ++++++ hw/arm/Kconfig | 22 + hw/arm/meson.build | 4 + hw/misc/meson.build | 4 + hw/sd/Kconfig | 5 + hw/sd/meson.build | 2 + hw/ssi/Kconfig | 5 + hw/ssi/meson.build | 1 + tests/functional/aarch64/meson.build | 2 + tests/functional/aarch64/test_phytium_pi.py | 77 ++ tests/qtest/meson.build | 1 + 32 files changed, 7147 insertions(+) create mode 100644 docs/system/arm/phytium_e2000.rst create mode 100644 include/hw/arm/phytium_e2000.h create mode 100644 include/hw/misc/phytium_e2000_ddr.h create mode 100644 include/hw/misc/phytium_e2000_mhu.h create mode 100644 include/hw/misc/phytium_e2000_pbr.h create mode 100644 include/hw/misc/phytium_e2000_rng.h create mode 100644 include/hw/sd/dw_mci.h create mode 100644 include/hw/sd/phytium_e2000_mci.h create mode 100644 include/hw/ssi/phytium_qspi.h create mode 100644 hw/arm/phytium_e2000.c create mode 100644 hw/arm/phytium_e2000_machine.c create mode 100644 hw/misc/phytium_e2000_ddr.c create mode 100644 hw/misc/phytium_e2000_mhu.c create mode 100644 hw/misc/phytium_e2000_pbr.c create mode 100644 hw/misc/phytium_e2000_rng.c create mode 100644 hw/sd/dw_mci.c create mode 100644 hw/sd/phytium_e2000_mci.c create mode 100644 hw/ssi/phytium_qspi.c create mode 100644 tests/qtest/dw_mci-test.c create mode 100644 tests/functional/aarch64/test_phytium_pi.py
---
base-commit: 35500e5c41aec76cde59befe750600dac7a9e37a
branch: phytium
Signature · 1 line
2.53.0