@samitouri / QOSamiQemu / commits / 7a8d15133c

hw/arm: Remove fp5280g2-bmc machine

The fp5280g2-bmc machine was deprecated in QEMU 10.2 and is now removed in QEMU 11.1. This Inspur FP5280G2 BMC board does not rely on specific device models and can be replaced by the ast2500-evb machine with appropriate fmc-model and I2C device configuration via command line. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260510165704.2935316-4-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>

Cédric Le Goater committed May 10, 2026 at 18:57 UTC 7a8d15133cee9e0ece333ed15d8d1b035ecdf8a2
5 files changed +10 -100
docs/about/deprecated.rst
-8
@@ -250,14 +250,6 @@ deprecated; use the new name ``dtb-randomness`` instead. The new name
250 better reflects the way this property affects all random data within
251 the device tree blob, not just the ``kaslr-seed`` node.
252
253 -Arm ``fp5280g2-bmc`` machine (since 10.2)
254 -'''''''''''''''''''''''''''''''''''''''''
255 -
256 -The ``fp5280g2-bmc`` machine does not rely on any specific device
257 -models, it can be replaced by the ``ast2500-evb`` machine using the
258 -``fmc-model`` option to specify the flash type. The I2C devices
259 -connected to the board can be defined via the QEMU command line.
260 -
253 Arm ``fby35`` machine (since 10.2)
254 ''''''''''''''''''''''''''''''''''
255
docs/about/removed-features.rst
+8
@@ -1205,6 +1205,14 @@ machine using the ``fmc-model`` option to specify the flash type. The
1205 I2C devices connected to the board can be defined via the QEMU command
1206 line.
1207
1208 +Arm ``fp5280g2-bmc`` machine (removed in 11.1)
1209 +''''''''''''''''''''''''''''''''''''''''''''''
1210 +
1211 +The ``fp5280g2-bmc`` machine does not rely on any specific device
1212 +models, it can be replaced by the ``ast2500-evb`` machine using the
1213 +``fmc-model`` option to specify the flash type. The I2C devices
1214 +connected to the board can be defined via the QEMU command line.
1215 +
1216 linux-user mode CPUs
1217 --------------------
1218
docs/system/arm/aspeed.rst
+2 -3
@@ -1,5 +1,5 @@
1 -Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
2 -================================================================================================================================================================================================================================================================================================================================================
1 +Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
2 +==============================================================================================================================================================================================================================================================================================================================
3
4 The QEMU Aspeed machines model BMCs of various OpenPOWER systems and
5 Aspeed evaluation boards. They are based on different releases of the
@@ -22,7 +22,6 @@ AST2500 SoC based machines :
22 - ``ast2500-evb`` Aspeed AST2500 Evaluation board
23 - ``romulus-bmc`` OpenPOWER Romulus POWER9 BMC
24 - ``witherspoon-bmc`` OpenPOWER Witherspoon POWER9 BMC
25 -- ``fp5280g2-bmc`` Inspur FP5280G2 BMC
25 - ``g220a-bmc`` Bytedance G220A BMC
26 - ``yosemitev2-bmc`` Facebook YosemiteV2 BMC
27 - ``tiogapass-bmc`` Facebook Tiogapass BMC
hw/arm/aspeed_ast2500_fp5280g2.c deleted
-88
@@ -1,88 +0,0 @@
1 -/*
2 - * Inspur FP5280G2
3 - *
4 - * Copyright 2016 IBM Corp.
5 - *
6 - * SPDX-License-Identifier: GPL-2.0-or-later
7 - */
8 -
9 -#include "qemu/osdep.h"
10 -#include "qapi/error.h"
11 -#include "hw/arm/machines-qom.h"
12 -#include "hw/arm/aspeed.h"
13 -#include "hw/arm/aspeed_soc.h"
14 -#include "hw/nvram/eeprom_at24c.h"
15 -#include "hw/i2c/i2c_mux_pca954x.h"
16 -#include "hw/sensor/tmp105.h"
17 -
18 -/* FP5280G2 hardware value: 0XF100D286 */
19 -#define FP5280G2_BMC_HW_STRAP1 ( \
20 - SCU_AST2500_HW_STRAP_SPI_AUTOFETCH_ENABLE | \
21 - SCU_AST2500_HW_STRAP_GPIO_STRAP_ENABLE | \
22 - SCU_AST2500_HW_STRAP_UART_DEBUG | \
23 - SCU_AST2500_HW_STRAP_RESERVED28 | \
24 - SCU_AST2500_HW_STRAP_DDR4_ENABLE | \
25 - SCU_HW_STRAP_VGA_CLASS_CODE | \
26 - SCU_HW_STRAP_LPC_RESET_PIN | \
27 - SCU_HW_STRAP_SPI_MODE(SCU_HW_STRAP_SPI_MASTER) | \
28 - SCU_AST2500_HW_STRAP_SET_AXI_AHB_RATIO(AXI_AHB_RATIO_2_1) | \
29 - SCU_HW_STRAP_MAC1_RGMII | \
30 - SCU_HW_STRAP_VGA_SIZE_SET(VGA_16M_DRAM) | \
31 - SCU_AST2500_HW_STRAP_RESERVED1)
32 -
33 -static void fp5280g2_bmc_i2c_init(AspeedMachineState *bmc)
34 -{
35 - AspeedSoCState *soc = bmc->soc;
36 - I2CSlave *i2c_mux;
37 -
38 - /* The at24c256 */
39 - at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 1), 0x50, 32768);
40 -
41 - /* The fp5280g2 expects a TMP112 but a TMP105 is compatible */
42 - i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 2), TYPE_TMP105,
43 - 0x48);
44 - i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 2), TYPE_TMP105,
45 - 0x49);
46 -
47 - i2c_mux = i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 2),
48 - "pca9546", 0x70);
49 - /* It expects a TMP112 but a TMP105 is compatible */
50 - i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 0), TYPE_TMP105,
51 - 0x4a);
52 -
53 - /* It expects a ds3232 but a ds1338 is good enough */
54 - i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 4), "ds1338", 0x68);
55 -
56 - /* It expects a pca9555 but a pca9552 is compatible */
57 - aspeed_create_pca9552(soc, 8, 0x30);
58 -}
59 -
60 -static void aspeed_machine_fp5280g2_class_init(ObjectClass *oc,
61 - const void *data)
62 -{
63 - MachineClass *mc = MACHINE_CLASS(oc);
64 - AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
65 -
66 - mc->desc = "Inspur FP5280G2 BMC (ARM1176)";
67 - mc->deprecation_reason = "use 'ast2500-evb' instead";
68 - amc->soc_name = "ast2500-a1";
69 - amc->hw_strap1 = FP5280G2_BMC_HW_STRAP1;
70 - amc->fmc_model = "n25q512a";
71 - amc->spi_model = "mx25l25635e";
72 - amc->num_cs = 2;
73 - amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON;
74 - amc->i2c_init = fp5280g2_bmc_i2c_init;
75 - mc->default_ram_size = 512 * MiB;
76 - aspeed_machine_class_init_cpus_defaults(mc);
77 -};
78 -
79 -static const TypeInfo aspeed_ast2500_fp5280g2_types[] = {
80 - {
81 - .name = MACHINE_TYPE_NAME("fp5280g2-bmc"),
82 - .parent = TYPE_ASPEED_MACHINE,
83 - .class_init = aspeed_machine_fp5280g2_class_init,
84 - .interfaces = arm_machine_interfaces,
85 - }
86 -};
87 -
88 -DEFINE_TYPES(aspeed_ast2500_fp5280g2_types)
hw/arm/meson.build
-1
@@ -47,7 +47,6 @@ arm_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
47 'aspeed_ast2400_quanta-q71l.c',
48 'aspeed_ast2400_supermicrox11.c',
49 'aspeed_ast2500_evb.c',
50 - 'aspeed_ast2500_fp5280g2.c',
50 'aspeed_ast2500_g220a.c',
51 'aspeed_ast2500_romulus.c',
52 'aspeed_ast2500_supermicro-x11spi.c',