Skip to contentSkip to conversation

hw/arm/aspeed: Add AST1060 SoC and EVB support

PATCH Superseded Jamin Lin via 4 participants 32 messages Nov 6, 2025 – Nov 12, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover hw/arm/aspeed: Add AST1060 SoC and EVB support

v1:
1. Add SFDP table for Winbond W25Q02JVM flash
2. Add AST1060 SoC and EVB support
3. Fix missing SPI IRQ connection causing DMA interrupt failure
4. Fix the revision ID cannot be set in the SOC layer for AST2600 and AST1030

Jamin Lin (12):
hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt
failure
hw/block/m25p80: Add SFDP table for Winbond W25Q02JVM flash hw/misc/aspeed_scu: Fix the revision ID cannot be set in the SOC layer

    for AST2600 and AST1030

hhw/misc/aspeed_scu: Add AST1060 A2 silicon revision definition hw/arm/aspeed_ast10x0: Add common init function for AST10x0 SoCs hw/arm/aspeed_ast10x0: Add common realize function for AST10x0 SoCs hw/arm/aspeed_ast10x0: Pass SoC name to common init for AST10x0 family
reuse
hw/arm/aspeed_ast10x0: Add AST1060 SoC support hw/arm/aspeed_ast10x0_evb: Add AST1060 EVB machine support tests/functional/arm/test_aspeed_ast1060: Add functional tests for
Aspeed AST1060 SoC
docs/system/arm/aspeed: Update Aspeed and 2700 family boards list docs/system/arm/aspeed: Update Aspeed MiniBMC section to include
AST1060 PFR processor

 docs/system/arm/aspeed.rst                  |  28 ++-
 hw/block/m25p80_sfdp.h                      |   1 +
 include/hw/misc/aspeed_scu.h                |   1 +
 hw/arm/aspeed_ast10x0.c                     | 216 +++++++++++++-------
 hw/arm/aspeed_ast10x0_evb.c                 |  23 +++
 hw/arm/aspeed_ast2600.c                     |   2 +
 hw/arm/aspeed_ast27x0.c                     |   2 +
 hw/block/m25p80.c                           |   2 +
 hw/block/m25p80_sfdp.c                      |  36 ++++
 hw/misc/aspeed_scu.c                        |   5 +-
 tests/functional/arm/meson.build            |   1 +
 tests/functional/arm/test_aspeed_ast1060.py |  52 +++++
 12 files changed, 287 insertions(+), 82 deletions(-)
 create mode 100644 tests/functional/arm/test_aspeed_ast1060.py
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/12 hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure

It did not connect SPI IRQ to the Interrupt Controller, so even the SPI model raised the IRQ, the interrupt was not received. The CPU therefore did not trigger an interrupt via the controller, and the firmware never received the interrupt.

Fixes 356b230ed13889e09d087a96498887de695df17e ("aspeed/soc: Add AST1030 support")
Fixes f25c0ae1079dc0b9de02676eb3e3949a09df9f41 ("aspeed/soc: Add AST2600 support")
Fixes 5dd883ab0635c9f715c77cc32622e458a0724581 ("aspeed/soc: Add AST2700 support")
---
 hw/arm/aspeed_ast10x0.c | 2 ++
 hw/arm/aspeed_ast2600.c | 2 ++
 hw/arm/aspeed_ast27x0.c | 2 ++
 3 files changed, 6 insertions(+)
hw/arm/aspeed_ast10x0.c +2 -0
index 7f49c13391..ca487774ae 100644
@@ -372,6 +372,8 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                         sc->memmap[ASPEED_DEV_SPI1 + i]);
         aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                         ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_SPI1 + i));
     }
 
     /* Secure Boot Controller */
hw/arm/aspeed_ast2600.c +2 -0
index 498d1ecc07..4c5a42ea17 100644
@@ -557,6 +557,8 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
                         sc->memmap[ASPEED_DEV_SPI1 + i]);
         aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                         ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2600_get_irq(s, ASPEED_DEV_SPI1 + i));
     }
 
     /* EHCI */
hw/arm/aspeed_ast27x0.c +2 -0
index c484bcd4e2..e02a674b13 100644
@@ -831,6 +831,8 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
                         sc->memmap[ASPEED_DEV_SPI0 + i]);
         aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                         ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2700_get_irq(s, ASPEED_DEV_SPI0 + i));
     }
 
     /* EHCI */
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v1 01/12] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure

Hello Jamin,

Quoted 8 lines · Jamin Lin

It did not connect SPI IRQ to the Interrupt Controller, so even the SPI model raised the IRQ, the interrupt was not received. The CPU therefore did not trigger an interrupt via the controller, and the firmware never received the interrupt.

Fixes 356b230ed13889e09d087a96498887de695df17e ("aspeed/soc: Add AST1030 support")
Fixes f25c0ae1079dc0b9de02676eb3e3949a09df9f41 ("aspeed/soc: Add AST2600 support")
Fixes 5dd883ab0635c9f715c77cc32622e458a0724581 ("aspeed/soc: Add AST2700 support")

AFAIR, the IRQ is for DMA which the drivers don't support yet. Am I wrong ? When was it added ?

The code is fine and I am asking because of the fixes tags above. It would mean propagating the fixes to the stable branches too.

Thanks,

C.

Quoted 46 lines
---
  hw/arm/aspeed_ast10x0.c | 2 ++
  hw/arm/aspeed_ast2600.c | 2 ++
  hw/arm/aspeed_ast27x0.c | 2 ++
  3 files changed, 6 insertions(+)
hw/arm/aspeed_ast10x0.c +2 -0
index 7f49c13391..ca487774ae 100644
@@ -372,6 +372,8 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_SPI1 + i));
      }
 
      /* Secure Boot Controller */
hw/arm/aspeed_ast2600.c +2 -0
index 498d1ecc07..4c5a42ea17 100644
@@ -557,6 +557,8 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2600_get_irq(s, ASPEED_DEV_SPI1 + i));
      }
 
      /* EHCI */
hw/arm/aspeed_ast27x0.c +2 -0
index c484bcd4e2..e02a674b13 100644
@@ -831,6 +831,8 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI0 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2700_get_irq(s, ASPEED_DEV_SPI0 + i));
      }
 
      /* EHCI */
#3 lore raw

RE: [PATCH v1 01/12] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure

Hi Cédric,

Quoted 19 lines

Subject: Re: [PATCH v1 01/12] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure

Hello Jamin,

Quoted 11 lines · Jamin Lin

It did not connect SPI IRQ to the Interrupt Controller, so even the SPI model raised the IRQ, the interrupt was not received. The CPU therefore did not trigger an interrupt via the controller, and the firmware never received the interrupt.

Fixes 356b230ed13889e09d087a96498887de695df17e ("aspeed/soc: Add

AST1030 support")

Fixes f25c0ae1079dc0b9de02676eb3e3949a09df9f41 ("aspeed/soc: Add

AST2600 support")

Fixes 5dd883ab0635c9f715c77cc32622e458a0724581 ("aspeed/soc: Add

AST2700 support")

Quoted 6 lines

AFAIR, the IRQ is for DMA which the drivers don't support yet. Am I wrong ? When was it added ?

The code is fine and I am asking because of the fixes tags above. It would mean propagating the fixes to the stable branches too.

The reason is that the AST2500 supports FMC DMA but not SPI DMA.
For AST2600, AST1030, and AST2700, both FMC and SPI DMA are supported, but we missed connecting their IRQs to the interrupt controller. """I guess this happened because we copied the AST2500 SPI/FMC model when creating the AST2600 model,
and then the AST1030 and AST2700 SoC models were copied from AST2600"""

Please see the drivers here:
Linux (AST2600 / AST2700)
https://github.com/AspeedTech-BMC/linux/blob/aspeed-master-v6.6/drivers/spi/spi-aspeed-smc.c
AST2600:
static ssize_t aspeed_2600_spi_dirmap_dma_read(struct spi_mem_dirmap_desc *desc,

                                               u64 offs, size_t len, void *buf);

AST27x0:
static ssize_t aspeed_2700_spi_dirmap_dma_read(struct spi_mem_dirmap_desc *desc,

                                               u64 offs, size_t len, void *buf);

Zephyr (AST10x0)
https://github.com/AspeedTech-BMC/zephyr/blob/aspeed-main-v3.7.0/drivers/spi/spi_aspeed.c#L474
#ifdef CONFIG_SPI_DMA_SUPPORT_ASPEED
static void aspeed_dma_irq_enable(const struct device *dev)

Thanks-Jamin

Quoted 65 lines

Thanks,

C.

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_realize(DeviceState

Quoted 12 lines
---
  hw/arm/aspeed_ast10x0.c | 2 ++
  hw/arm/aspeed_ast2600.c | 2 ++
  hw/arm/aspeed_ast27x0.c | 2 ++
  3 files changed, 6 insertions(+)
hw/arm/aspeed_ast10x0.c index renamed from hw/arm/aspeed_ast10x0.c +0 -0

7f49c13391..ca487774ae 100644

hw/arm/aspeed_ast10x0.c +0 -0
@@ -372,6 +372,8 @@ static void aspeed_soc_ast1030_realize(DeviceState

*dev_soc, Error **errp)

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_realize(DeviceState · line 373

Quoted 2 lines
hw/arm/aspeed_ast10x0.c +0 -0
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]),

1,

hw/arm/aspeed_ast2600.c static void aspeed_soc_ast2600_realize(DeviceState

Quoted 13 lines
hw/arm/aspeed_ast10x0.c +3 -0
 ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast1030_get_irq(s,
+ ASPEED_DEV_SPI1 + i));
      }
 
      /* Secure Boot Controller */
hw/arm/aspeed_ast2600.c index renamed from hw/arm/aspeed_ast2600.c +0 -0

498d1ecc07..4c5a42ea17 100644

hw/arm/aspeed_ast2600.c +0 -0
@@ -557,6 +557,8 @@ static void aspeed_soc_ast2600_realize(DeviceState

*dev, Error **errp)

hw/arm/aspeed_ast2600.c static void aspeed_soc_ast2600_realize(DeviceState · line 558

Quoted 2 lines
hw/arm/aspeed_ast2600.c +0 -0
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]),

1,

hw/arm/aspeed_ast27x0.c static void aspeed_soc_ast2700_realize(DeviceState

Quoted 13 lines
hw/arm/aspeed_ast2600.c +3 -0
 ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2600_get_irq(s,
+ ASPEED_DEV_SPI1 + i));
      }
 
      /* EHCI */
hw/arm/aspeed_ast27x0.c index renamed from hw/arm/aspeed_ast27x0.c +0 -0

c484bcd4e2..e02a674b13 100644

hw/arm/aspeed_ast27x0.c +0 -0
@@ -831,6 +831,8 @@ static void aspeed_soc_ast2700_realize(DeviceState

*dev, Error **errp)

hw/arm/aspeed_ast27x0.c static void aspeed_soc_ast2700_realize(DeviceState · line 832

Quoted 2 lines
hw/arm/aspeed_ast27x0.c +0 -0
                          sc->memmap[ASPEED_DEV_SPI0 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]),

1,

Quoted 8 lines
hw/arm/aspeed_ast27x0.c +3 -0
 ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2700_get_irq(s,
+ ASPEED_DEV_SPI0 + i));
      }
 
      /* EHCI */
Reviewed-by on v1 1/12
#4 lore raw

Re: [PATCH v1 01/12] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure

In reply to Jamin Lin via
Quoted 8 lines · Jamin Lin

It did not connect SPI IRQ to the Interrupt Controller, so even the SPI model raised the IRQ, the interrupt was not received. The CPU therefore did not trigger an interrupt via the controller, and the firmware never received the interrupt.

Fixes 356b230ed13889e09d087a96498887de695df17e ("aspeed/soc: Add AST1030 support")
Fixes f25c0ae1079dc0b9de02676eb3e3949a09df9f41 ("aspeed/soc: Add AST2600 support")
Fixes 5dd883ab0635c9f715c77cc32622e458a0724581 ("aspeed/soc: Add AST2700 support")

QEMU 7.2 and above should be updated

Quoted 6 lines
---
  hw/arm/aspeed_ast10x0.c | 2 ++
  hw/arm/aspeed_ast2600.c | 2 ++
  hw/arm/aspeed_ast27x0.c | 2 ++
  3 files changed, 6 insertions(+)

Thanks,

C.

Quoted 39 lines
hw/arm/aspeed_ast10x0.c +2 -0
index 7f49c13391..ca487774ae 100644
@@ -372,6 +372,8 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_SPI1 + i));
      }
 
      /* Secure Boot Controller */
hw/arm/aspeed_ast2600.c +2 -0
index 498d1ecc07..4c5a42ea17 100644
@@ -557,6 +557,8 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI1 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2600_get_irq(s, ASPEED_DEV_SPI1 + i));
      }
 
      /* EHCI */
hw/arm/aspeed_ast27x0.c +2 -0
index c484bcd4e2..e02a674b13 100644
@@ -831,6 +831,8 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
                          sc->memmap[ASPEED_DEV_SPI0 + i]);
          aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
                          ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+        sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+                           aspeed_soc_ast2700_get_irq(s, ASPEED_DEV_SPI0 + i));
      }
 
      /* EHCI */
#5 lore raw

PATCH 2/12 hw/block/m25p80: Add SFDP table for Winbond W25Q02JVM flash

In reply to Jamin Lin via

Add the SFDP data table for Winbond W25Q02JVM flash device. The table was generated under Linux kernel by dumping the SFDP content using the following command:

```
hexdump -v -e '8/1 "0x%02x, " "\n"' \
    /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
```
---
 hw/block/m25p80_sfdp.h |  1 +
 hw/block/m25p80.c      |  2 ++
 hw/block/m25p80_sfdp.c | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
hw/block/m25p80_sfdp.h +1 -0
index 35785686a0..c1e532de5a 100644
@@ -27,6 +27,7 @@ uint8_t m25p80_sfdp_w25q256(uint32_t addr);
 uint8_t m25p80_sfdp_w25q512jv(uint32_t addr);
 uint8_t m25p80_sfdp_w25q80bl(uint32_t addr);
 uint8_t m25p80_sfdp_w25q01jvq(uint32_t addr);
+uint8_t m25p80_sfdp_w25q02jvm(uint32_t addr);
 
 uint8_t m25p80_sfdp_is25wp256(uint32_t addr);
 
hw/block/m25p80.c +2 -0
index a5336d92ff..338e17bf1d 100644
@@ -364,6 +364,8 @@ static const FlashPartInfo known_devices[] = {
       .sfdp_read = m25p80_sfdp_w25q512jv },
     { INFO("w25q01jvq",   0xef4021,      0,  64 << 10, 2048, ER_4K),
       .sfdp_read = m25p80_sfdp_w25q01jvq },
+    { INFO("w25q02jvm",   0xef7022,      0,  64 << 10, 4096, ER_4K),
+      .sfdp_read = m25p80_sfdp_w25q02jvm },
 
     /* Microchip */
     { INFO("25csm04",      0x29cc00,      0x100,  64 << 10,  8, 0) },
hw/block/m25p80_sfdp.c +36 -0
index a03a291a09..87878c2bf0 100644
@@ -440,6 +440,42 @@ static const uint8_t sfdp_w25q80bl[] = {
 };
 define_sfdp_read(w25q80bl);
 
+static const uint8_t sfdp_w25q02jvm[] = {
+    0x53, 0x46, 0x44, 0x50, 0x06, 0x01, 0x01, 0xff,
+    0x00, 0x06, 0x01, 0x10, 0x80, 0x00, 0x00, 0xff,
+    0x84, 0x00, 0x01, 0x02, 0xd0, 0x00, 0x00, 0xff,
+    0x03, 0x00, 0x01, 0x02, 0xf0, 0x00, 0x00, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xe5, 0x20, 0xfb, 0xff, 0xff, 0xff, 0xff, 0x7f,
+    0x44, 0xeb, 0x08, 0x6b, 0x08, 0x3b, 0x42, 0xbb,
+    0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
+    0xff, 0xff, 0x40, 0xeb, 0x0c, 0x20, 0x0f, 0x52,
+    0x10, 0xd8, 0x00, 0x00, 0x36, 0x02, 0xa6, 0x00,
+    0x82, 0xea, 0x14, 0xe2, 0xe9, 0x63, 0x76, 0x33,
+    0x7a, 0x75, 0x7a, 0x75, 0xf7, 0xa2, 0xd5, 0x5c,
+    0x19, 0xf7, 0x4d, 0xff, 0xe9, 0x70, 0xf9, 0xa5,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0x0a, 0xf0, 0xff, 0x21, 0xff, 0xdc, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+};
+define_sfdp_read(w25q02jvm);
+
 /*
  * Integrated Silicon Solution (ISSI)
  */
Signature · 1 line
2.43.0
Reviewed-by on v1 2/12
#6 lore raw

Re: [PATCH v1 02/12] hw/block/m25p80: Add SFDP table for Winbond W25Q02JVM flash

Quoted 9 lines · Jamin Lin

Add the SFDP data table for Winbond W25Q02JVM flash device. The table was generated under Linux kernel by dumping the SFDP content using the following command:

```
hexdump -v -e '8/1 "0x%02x, " "\n"' \
     /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
```
Quoted 6 lines
---
  hw/block/m25p80_sfdp.h |  1 +
  hw/block/m25p80.c      |  2 ++
  hw/block/m25p80_sfdp.c | 36 ++++++++++++++++++++++++++++++++++++
  3 files changed, 39 insertions(+)

Thanks,

C.

#7 lore raw

PATCH 3/12 hw/misc/aspeed_scu: Fix the revision ID cannot be set in the SOC layer for AST2600 and AST1030

In reply to Jamin Lin via

According to the design of the AST2600, it has a Silicon Revision ID Register, specifically SCU004 and SCU014, to set the Revision ID for the AST2600. For the AST2600 A3, SCU004 is set to 0x05030303 and SCU014 is set to 0x05030303.

In the "aspeed_ast2600_scu_reset" function, the hardcoded value "AST2600_A3_SILICON_REV" was used for SCU004, while "s->silicon_rev" was used for SCU014. The value of "s->silicon_rev" is set by the SoC layer via the "silicon-rev" property. This patch aligns both SCU004 and SCU014 to use "s->silicon_rev" for consistency and flexibility.

Similarly, the "aspeed_ast1030_scu_reset" function also used a fixed revision constant ("AST1030_A1_SILICON_REV"). This change updates it to use the same "s->silicon_rev" property, ensuring that both SoCs follow a consistent and configurable revision handling mechanism.

---
 hw/misc/aspeed_scu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/misc/aspeed_scu.c +2 -2
index a0ab5eed8f..1f996d5398 100644
@@ -841,7 +841,7 @@ static void aspeed_ast2600_scu_reset(DeviceState *dev)
      * of actual revision. QEMU and Linux only support A1 onwards so this is
      * sufficient.
      */
-    s->regs[AST2600_SILICON_REV] = AST2600_A3_SILICON_REV;
+    s->regs[AST2600_SILICON_REV] = s->silicon_rev;
     s->regs[AST2600_SILICON_REV2] = s->silicon_rev;
     s->regs[AST2600_HW_STRAP1] = s->hw_strap1;
     s->regs[AST2600_HW_STRAP2] = s->hw_strap2;
@@ -1137,7 +1137,7 @@ static void aspeed_ast1030_scu_reset(DeviceState *dev)
 
     memcpy(s->regs, asc->resets, asc->nr_regs * 4);
 
-    s->regs[AST2600_SILICON_REV] = AST1030_A1_SILICON_REV;
+    s->regs[AST2600_SILICON_REV] = s->silicon_rev;
     s->regs[AST2600_SILICON_REV2] = s->silicon_rev;
     s->regs[AST2600_HW_STRAP1] = s->hw_strap1;
     s->regs[AST2600_HW_STRAP2] = s->hw_strap2;
Signature · 1 line
2.43.0
Reviewed-by on v1 3/12
#8 lore raw

Re: [PATCH v1 03/12] hw/misc/aspeed_scu: Fix the revision ID cannot be set in the SOC layer for AST2600 and AST1030

Quoted 16 lines · Jamin Lin

According to the design of the AST2600, it has a Silicon Revision ID Register, specifically SCU004 and SCU014, to set the Revision ID for the AST2600. For the AST2600 A3, SCU004 is set to 0x05030303 and SCU014 is set to 0x05030303.

In the "aspeed_ast2600_scu_reset" function, the hardcoded value "AST2600_A3_SILICON_REV" was used for SCU004, while "s->silicon_rev" was used for SCU014. The value of "s->silicon_rev" is set by the SoC layer via the "silicon-rev" property. This patch aligns both SCU004 and SCU014 to use "s->silicon_rev" for consistency and flexibility.

Similarly, the "aspeed_ast1030_scu_reset" function also used a fixed revision constant ("AST1030_A1_SILICON_REV"). This change updates it to use the same "s->silicon_rev" property, ensuring that both SoCs follow a consistent and configurable revision handling mechanism.

Quoted 5 lines
---
  hw/misc/aspeed_scu.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks,

C.

#9 lore raw

PATCH 4/12 hhw/misc/aspeed_scu: Add AST1060 A2 silicon revision definition

In reply to Jamin Lin via

Add a new silicon revision constant AST1060_A2_SILICON_REV for the AST1060 SoC. This allows the SCU model and related SoC layers to identify and handle AST1060 A2 revision properly in the same way as other Aspeed SoC families.

---
 include/hw/misc/aspeed_scu.h | 1 +
 hw/misc/aspeed_scu.c         | 1 +
 2 files changed, 2 insertions(+)
include/hw/misc/aspeed_scu.h +1 -0
index 684b48b722..76ef8dc592 100644
@@ -51,6 +51,7 @@ struct AspeedSCUState {
 #define AST2600_A3_SILICON_REV   0x05030303U
 #define AST1030_A0_SILICON_REV   0x80000000U
 #define AST1030_A1_SILICON_REV   0x80010000U
+#define AST1060_A2_SILICON_REV   0xA0030000U
 #define AST2700_A0_SILICON_REV   0x06000103U
 #define AST2720_A0_SILICON_REV   0x06000203U
 #define AST2750_A0_SILICON_REV   0x06000003U
hw/misc/aspeed_scu.c +1 -0
index 1f996d5398..300571256a 100644
@@ -565,6 +565,7 @@ static uint32_t aspeed_silicon_revs[] = {
     AST2600_A3_SILICON_REV,
     AST1030_A0_SILICON_REV,
     AST1030_A1_SILICON_REV,
+    AST1060_A2_SILICON_REV,
     AST2700_A0_SILICON_REV,
     AST2720_A0_SILICON_REV,
     AST2750_A0_SILICON_REV,
Signature · 1 line
2.43.0
Reviewed-by on v1 4/12
#10 lore raw

Re: [PATCH v1 04/12] hhw/misc/aspeed_scu: Add AST1060 A2 silicon revision definition

Quoted 28 lines · Jamin Lin

Add a new silicon revision constant AST1060_A2_SILICON_REV for the AST1060 SoC. This allows the SCU model and related SoC layers to identify and handle AST1060 A2 revision properly in the same way as other Aspeed SoC families.

---
  include/hw/misc/aspeed_scu.h | 1 +
  hw/misc/aspeed_scu.c         | 1 +
  2 files changed, 2 insertions(+)
include/hw/misc/aspeed_scu.h +1 -0
index 684b48b722..76ef8dc592 100644
@@ -51,6 +51,7 @@ struct AspeedSCUState {
  #define AST2600_A3_SILICON_REV   0x05030303U
  #define AST1030_A0_SILICON_REV   0x80000000U
  #define AST1030_A1_SILICON_REV   0x80010000U
+#define AST1060_A2_SILICON_REV   0xA0030000U
  #define AST2700_A0_SILICON_REV   0x06000103U
  #define AST2720_A0_SILICON_REV   0x06000203U
  #define AST2750_A0_SILICON_REV   0x06000003U
hw/misc/aspeed_scu.c +0 -0
index 1f996d5398..300571256a 100644

hw/misc/aspeed_scu.c static uint32_t aspeed_silicon_revs[] = { · line 571

Quoted 7 lines
hw/misc/aspeed_scu.c +1 -0
@@ -565,6 +565,7 @@ static uint32_t aspeed_silicon_revs[] = {
      AST2600_A3_SILICON_REV,
      AST1030_A0_SILICON_REV,
      AST1030_A1_SILICON_REV,
+    AST1060_A2_SILICON_REV,
      AST2700_A0_SILICON_REV,
      AST2720_A0_SILICON_REV,
      AST2750_A0_SILICON_REV,

Thanks,

C.

#11 lore raw

PATCH 5/12 hw/arm/aspeed_ast10x0: Add common init function for AST10x0 SoCs

In reply to Jamin Lin via

Introduce a new common initialization function aspeed_soc_ast10x0_init() for AST10x0 series SoCs. This separates the shared initialization logic from the AST1030-specific part, allowing reuse by future SoCs such as AST1060.

The AST1060 does not include the LPC and PECI models, so the common initializer is used for all shared modules, while aspeed_soc_ast1030_init() adds initialization of LPC and PECI, which are unique to AST1030.

This refactor improves code reuse and prepares the codebase for supporting the AST1060 platform.

No functional changes.

---
 hw/arm/aspeed_ast10x0.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
hw/arm/aspeed_ast10x0.c +10 -5
index ca487774ae..5941ebe00c 100644
@@ -107,7 +107,7 @@ static qemu_irq aspeed_soc_ast1030_get_irq(AspeedSoCState *s, int dev)
     return qdev_get_gpio_in(DEVICE(&a->armv7m), sc->irqmap[dev]);
 }
 
-static void aspeed_soc_ast1030_init(Object *obj)
+static void aspeed_soc_ast10x0_init(Object *obj)
 {
     Aspeed10x0SoCState *a = ASPEED10X0_SOC(obj);
     AspeedSoCState *s = ASPEED_SOC(obj);
@@ -150,10 +150,6 @@ static void aspeed_soc_ast1030_init(Object *obj)
         object_initialize_child(obj, "spi[*]", &s->spi[i], typename);
     }
 
-    object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC);
-
-    object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
-
     object_initialize_child(obj, "sbc", &s->sbc, TYPE_ASPEED_AST10X0_SBC);
 
     for (i = 0; i < sc->wdts_num; i++) {
@@ -185,6 +181,15 @@ static void aspeed_soc_ast1030_init(Object *obj)
                             TYPE_UNIMPLEMENTED_DEVICE);
 }
 
+static void aspeed_soc_ast1030_init(Object *obj)
+{
+    AspeedSoCState *s = ASPEED_SOC(obj);
+
+    aspeed_soc_ast10x0_init(obj);
+    object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC);
+    object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
+}
+
 static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
 {
     Aspeed10x0SoCState *a = ASPEED10X0_SOC(dev_soc);
Signature · 1 line
2.43.0
Reviewed-by on v1 5/12
#12 lore raw

Re: [PATCH v1 05/12] hw/arm/aspeed_ast10x0: Add common init function for AST10x0 SoCs

Quoted 13 lines · Jamin Lin

Introduce a new common initialization function aspeed_soc_ast10x0_init() for AST10x0 series SoCs. This separates the shared initialization logic from the AST1030-specific part, allowing reuse by future SoCs such as AST1060.

The AST1060 does not include the LPC and PECI models, so the common initializer is used for all shared modules, while aspeed_soc_ast1030_init() adds initialization of LPC and PECI, which are unique to AST1030.

This refactor improves code reuse and prepares the codebase for supporting the AST1060 platform.

Quoted 7 lines

No functional changes.

---
  hw/arm/aspeed_ast10x0.c | 15 ++++++++++-----
  1 file changed, 10 insertions(+), 5 deletions(-)

Thanks,

C.

#13 lore raw

PATCH 6/12 hw/arm/aspeed_ast10x0: Add common realize function for AST10x0 SoCs

In reply to Jamin Lin via

Introduce a new common realize function aspeed_soc_ast10x0_realize() for AST10x0 series SoCs. The shared initialization and realization logic is now placed in this common function to improve code reuse and reduce duplication between different SoCs in the same family.

The AST1030 realization function aspeed_soc_ast1030_realize() is updated to call the new common routine and then perform realization of its own specific devices such as LPC and PECI, which are not present on future SoCs like AST1060.

This refactor simplifies maintenance and prepares the framework for adding AST1060 support.

No functional changes.

---
 hw/arm/aspeed_ast10x0.c | 128 ++++++++++++++++++++++------------------
 1 file changed, 70 insertions(+), 58 deletions(-)
hw/arm/aspeed_ast10x0.c +70 -58
index 5941ebe00c..5bbe16af24 100644
@@ -190,10 +190,9 @@ static void aspeed_soc_ast1030_init(Object *obj)
     object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
 }
 
-static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
+static bool aspeed_soc_ast10x0_realize(Aspeed10x0SoCState *a, Error **errp)
 {
-    Aspeed10x0SoCState *a = ASPEED10X0_SOC(dev_soc);
-    AspeedSoCState *s = ASPEED_SOC(dev_soc);
+    AspeedSoCState *s = ASPEED_SOC(a);
     AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
     DeviceState *armv7m;
     Error *err = NULL;
@@ -203,7 +202,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
 
     if (!clock_has_source(s->sysclk)) {
         error_setg(errp, "sysclk clock must be wired up by the board code");
-        return;
+        return false;
     }
 
     /* General I/O memory space to catch all unimplemented device */
@@ -216,7 +215,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                                   "aspeed.sbc", sc->memmap[ASPEED_DEV_SBC],
                                   0x40000);
 
-    /* AST1030 CPU Core */
+    /* AST10x0 CPU Core */
     armv7m = DEVICE(&a->armv7m);
     qdev_prop_set_uint32(armv7m, "num-irq", 256);
     qdev_prop_set_string(armv7m, "cpu-type",
@@ -232,7 +231,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     memory_region_init_ram(&s->sram, OBJECT(s), sram_name, sc->sram_size, &err);
     if (err != NULL) {
         error_propagate(errp, err);
-        return;
+        return false;
     }
     memory_region_add_subregion(s->memory,
                                 sc->memmap[ASPEED_DEV_SRAM],
@@ -241,14 +240,14 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                            sc->secsram_size, &err);
     if (err != NULL) {
         error_propagate(errp, err);
-        return;
+        return false;
     }
     memory_region_add_subregion(s->memory, sc->memmap[ASPEED_DEV_SECSRAM],
                                 &s->secsram);
 
     /* SCU */
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->scu), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->scu), 0,
                     sc->memmap[ASPEED_DEV_SCU]);
@@ -258,7 +257,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     object_property_set_link(OBJECT(&s->i2c), "dram", OBJECT(&s->sram),
                              &error_abort);
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->i2c), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->i2c), 0,
                     sc->memmap[ASPEED_DEV_I2C]);
@@ -271,7 +270,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
 
     /* I3C */
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->i3c), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->i3c), 0,
                     sc->memmap[ASPEED_DEV_I3C]);
@@ -282,50 +281,11 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
         sysbus_connect_irq(SYS_BUS_DEVICE(&s->i3c.devices[i]), 0, irq);
     }
 
-    /* PECI */
-    if (!sysbus_realize(SYS_BUS_DEVICE(&s->peci), errp)) {
-        return;
-    }
-    aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->peci), 0,
-                    sc->memmap[ASPEED_DEV_PECI]);
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->peci), 0,
-                       aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_PECI));
-
-    /* LPC */
-    if (!sysbus_realize(SYS_BUS_DEVICE(&s->lpc), errp)) {
-        return;
-    }
-    aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->lpc), 0,
-                    sc->memmap[ASPEED_DEV_LPC]);
-
-    /* Connect the LPC IRQ to the GIC. It is otherwise unused. */
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 0,
-                       aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_LPC));
-
-    /*
-     * On the AST1030 LPC subdevice IRQs are connected straight to the GIC.
-     */
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_1,
-                       qdev_get_gpio_in(DEVICE(&a->armv7m),
-                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_1));
-
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_2,
-                       qdev_get_gpio_in(DEVICE(&a->armv7m),
-                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_2));
-
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_3,
-                       qdev_get_gpio_in(DEVICE(&a->armv7m),
-                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_3));
-
-    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_4,
-                       qdev_get_gpio_in(DEVICE(&a->armv7m),
-                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_4));
-
     /* UART */
     for (i = 0, uart = sc->uarts_base; i < sc->uarts_num; i++, uart++) {
         if (!aspeed_soc_uart_realize(s->memory, &s->uart[i],
                                      sc->memmap[uart], errp)) {
-            return;
+            return false;
         }
         sysbus_connect_irq(SYS_BUS_DEVICE(&s->uart[i]), 0,
                            aspeed_soc_ast1030_get_irq(s, uart));
@@ -335,7 +295,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     object_property_set_link(OBJECT(&s->timerctrl), "scu", OBJECT(&s->scu),
                              &error_abort);
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->timerctrl), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->timerctrl), 0,
                     sc->memmap[ASPEED_DEV_TIMER1]);
@@ -346,7 +306,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
 
     /* ADC */
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->adc), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->adc), 0,
                     sc->memmap[ASPEED_DEV_ADC]);
@@ -357,7 +317,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     object_property_set_link(OBJECT(&s->fmc), "dram", OBJECT(&s->sram),
             &error_abort);
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->fmc), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->fmc), 0,
                     sc->memmap[ASPEED_DEV_FMC]);
@@ -371,7 +331,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
         object_property_set_link(OBJECT(&s->spi[i]), "dram",
                                  OBJECT(&s->sram), &error_abort);
         if (!sysbus_realize(SYS_BUS_DEVICE(&s->spi[i]), errp)) {
-            return;
+            return false;
         }
         aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 0,
                         sc->memmap[ASPEED_DEV_SPI1 + i]);
@@ -383,7 +343,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
 
     /* Secure Boot Controller */
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->sbc), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->sbc), 0,
                     sc->memmap[ASPEED_DEV_SBC]);
@@ -392,7 +352,7 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     object_property_set_link(OBJECT(&s->hace), "dram", OBJECT(&s->sram),
                              &error_abort);
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->hace), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->hace), 0,
                     sc->memmap[ASPEED_DEV_HACE]);
@@ -407,14 +367,14 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
         object_property_set_link(OBJECT(&s->wdt[i]), "scu", OBJECT(&s->scu),
                                  &error_abort);
         if (!sysbus_realize(SYS_BUS_DEVICE(&s->wdt[i]), errp)) {
-            return;
+            return false;
         }
         aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->wdt[i]), 0, wdt_offset);
     }
 
     /* GPIO */
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) {
-        return;
+        return false;
     }
     aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->gpio), 0,
                     sc->memmap[ASPEED_DEV_GPIO]);
@@ -442,6 +402,58 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
     aspeed_mmio_map_unimplemented(s->memory, SYS_BUS_DEVICE(&s->jtag[1]),
                                   "aspeed.jtag",
                                   sc->memmap[ASPEED_DEV_JTAG1], 0x20);
+
+    return true;
+}
+
+static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
+{
+    Aspeed10x0SoCState *a = ASPEED10X0_SOC(dev_soc);
+    AspeedSoCState *s = ASPEED_SOC(dev_soc);
+    AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
+
+    if (!aspeed_soc_ast10x0_realize(a, errp)) {
+        return;
+    }
+
+    /* PECI */
+    if (!sysbus_realize(SYS_BUS_DEVICE(&s->peci), errp)) {
+        return;
+    }
+    aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->peci), 0,
+                    sc->memmap[ASPEED_DEV_PECI]);
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->peci), 0,
+                       aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_PECI));
+
+    /* LPC */
+    if (!sysbus_realize(SYS_BUS_DEVICE(&s->lpc), errp)) {
+        return;
+    }
+    aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->lpc), 0,
+                    sc->memmap[ASPEED_DEV_LPC]);
+
+    /* Connect the LPC IRQ to the GIC. It is otherwise unused. */
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 0,
+                       aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_LPC));
+
+    /*
+     * On the AST1030 LPC subdevice IRQs are connected straight to the GIC.
+     */
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_1,
+                       qdev_get_gpio_in(DEVICE(&a->armv7m),
+                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_1));
+
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_2,
+                       qdev_get_gpio_in(DEVICE(&a->armv7m),
+                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_2));
+
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_3,
+                       qdev_get_gpio_in(DEVICE(&a->armv7m),
+                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_3));
+
+    sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_4,
+                       qdev_get_gpio_in(DEVICE(&a->armv7m),
+                                sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_4));
 }
 
 static void aspeed_soc_ast1030_class_init(ObjectClass *klass, const void *data)
Signature · 1 line
2.43.0
Reviewed-by on v1 6/12
#14 lore raw

Re: [PATCH v1 06/12] hw/arm/aspeed_ast10x0: Add common realize function for AST10x0 SoCs

Quoted 13 lines · Jamin Lin

Introduce a new common realize function aspeed_soc_ast10x0_realize() for AST10x0 series SoCs. The shared initialization and realization logic is now placed in this common function to improve code reuse and reduce duplication between different SoCs in the same family.

The AST1030 realization function aspeed_soc_ast1030_realize() is updated to call the new common routine and then perform realization of its own specific devices such as LPC and PECI, which are not present on future SoCs like AST1060.

This refactor simplifies maintenance and prepares the framework for adding AST1060 support.

Quoted 6 lines

No functional changes.

---
  hw/arm/aspeed_ast10x0.c | 128 ++++++++++++++++++++++------------------
  1 file changed, 70 insertions(+), 58 deletions(-)

LGTM,

Thanks,

C.

#15 lore raw

PATCH 7/12 hw/arm/aspeed_ast10x0: Pass SoC name to common init for AST10x0 family reuse

In reply to Jamin Lin via

Refactor the AST10x0 common initialization to accept a socname parameter.

The AST1030 model can be reused by AST1060 since they share most of the same controllers. This approach allows AST1060 to leverage the existing AST1030 initialization flow while keeping separate SoC-specific init functions for components that differ.

This prepares the framework for AST1060 support, allowing it to reuse AST1030 device models and initialization flow without code duplication.

No functional changes.

---
 hw/arm/aspeed_ast10x0.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
hw/arm/aspeed_ast10x0.c +7 -7
index 5bbe16af24..c85c21b149 100644
@@ -107,19 +107,14 @@ static qemu_irq aspeed_soc_ast1030_get_irq(AspeedSoCState *s, int dev)
     return qdev_get_gpio_in(DEVICE(&a->armv7m), sc->irqmap[dev]);
 }
 
-static void aspeed_soc_ast10x0_init(Object *obj)
+static void aspeed_soc_ast10x0_init(Object *obj, const char *socname)
 {
     Aspeed10x0SoCState *a = ASPEED10X0_SOC(obj);
     AspeedSoCState *s = ASPEED_SOC(obj);
     AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
-    char socname[8];
     char typename[64];
     int i;
 
-    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
-        g_assert_not_reached();
-    }
-
     object_initialize_child(obj, "armv7m", &a->armv7m, TYPE_ARMV7M);
 
     s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0);
@@ -184,8 +179,13 @@ static void aspeed_soc_ast10x0_init(Object *obj)
 static void aspeed_soc_ast1030_init(Object *obj)
 {
     AspeedSoCState *s = ASPEED_SOC(obj);
+    char socname[8];
+
+    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
+        g_assert_not_reached();
+    }
 
-    aspeed_soc_ast10x0_init(obj);
+    aspeed_soc_ast10x0_init(obj, socname);
     object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC);
     object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
 }
Signature · 1 line
2.43.0
#16 lore raw

Re: [PATCH v1 07/12] hw/arm/aspeed_ast10x0: Pass SoC name to common init for AST10x0 family reuse

Quoted 45 lines · Jamin Lin

Refactor the AST10x0 common initialization to accept a socname parameter.

The AST1030 model can be reused by AST1060 since they share most of the same controllers. This approach allows AST1060 to leverage the existing AST1030 initialization flow while keeping separate SoC-specific init functions for components that differ.

This prepares the framework for AST1060 support, allowing it to reuse AST1030 device models and initialization flow without code duplication.

No functional changes.

---
  hw/arm/aspeed_ast10x0.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)
hw/arm/aspeed_ast10x0.c +1 -6
index 5bbe16af24..c85c21b149 100644
@@ -107,19 +107,14 @@ static qemu_irq aspeed_soc_ast1030_get_irq(AspeedSoCState *s, int dev)
      return qdev_get_gpio_in(DEVICE(&a->armv7m), sc->irqmap[dev]);
  }
 
-static void aspeed_soc_ast10x0_init(Object *obj)
+static void aspeed_soc_ast10x0_init(Object *obj, const char *socname)
  {
      Aspeed10x0SoCState *a = ASPEED10X0_SOC(obj);
      AspeedSoCState *s = ASPEED_SOC(obj);
      AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
-    char socname[8];
      char typename[64];
      int i;
 
-    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
-        g_assert_not_reached();
-    }
-
      object_initialize_child(obj, "armv7m", &a->armv7m, TYPE_ARMV7M);
 
      s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0);
@@ -184,8 +179,13 @@ static void aspeed_soc_ast10x0_init(Object *obj)
  static void aspeed_soc_ast1030_init(Object *obj)

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast10x0_init(Object *obj) · line 188

Quoted 10 lines
hw/arm/aspeed_ast10x0.c +6 -1
  {
      AspeedSoCState *s = ASPEED_SOC(obj);
+    char socname[8];
+
+    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
+        g_assert_not_reached();
+    }
 
-    aspeed_soc_ast10x0_init(obj);
+    aspeed_soc_ast10x0_init(obj, socname);

As Philippe suggested, why not use directly :

       aspeed_soc_ast10x0_init(obj, "ast1030");

Thanks,

C.

Quoted 3 lines
hw/arm/aspeed_ast10x0.c +0 -0
      object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC);
      object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
  }
#17 lore raw

RE: [PATCH v1 07/12] hw/arm/aspeed_ast10x0: Pass SoC name to common init for AST10x0 family reuse

Hi Cédric

Quoted 61 lines

Subject: Re: [PATCH v1 07/12] hw/arm/aspeed_ast10x0: Pass SoC name to common init for AST10x0 family reuse

hw/arm/aspeed_ast10x0.c static qemu_irq

Quoted 24 lines · Jamin Lin

Refactor the AST10x0 common initialization to accept a socname parameter.

The AST1030 model can be reused by AST1060 since they share most of the same controllers. This approach allows AST1060 to leverage the existing
AST1030 initialization flow while keeping separate SoC-specific init functions for components that differ.

This prepares the framework for AST1060 support, allowing it to reuse AST1030 device models and initialization flow without code duplication.

No functional changes.

---
  hw/arm/aspeed_ast10x0.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)
hw/arm/aspeed_ast10x0.c index renamed from hw/arm/aspeed_ast10x0.c +0 -0

5bbe16af24..c85c21b149 100644

hw/arm/aspeed_ast10x0.c +0 -0
@@ -107,19 +107,14 @@ static qemu_irq

aspeed_soc_ast1030_get_irq(AspeedSoCState *s, int dev)

Quoted 8 lines
hw/arm/aspeed_ast10x0.c +1 -1
      return qdev_get_gpio_in(DEVICE(&a->armv7m), sc->irqmap[dev]);
  }
 
-static void aspeed_soc_ast10x0_init(Object *obj)
+static void aspeed_soc_ast10x0_init(Object *obj, const char *socname)
  {
      Aspeed10x0SoCState *a = ASPEED10X0_SOC(obj);
      AspeedSoCState *s = ASPEED_SOC(obj);

hw/arm/aspeed_ast10x0.c static qemu_irq aspeed_soc_ast1030_get_irq(AspeedSoCState *s, int dev)

Quoted 10 lines
hw/arm/aspeed_ast10x0.c +0 -5
      AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
-    char socname[8];
      char typename[64];
      int i;
 
-    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
-        g_assert_not_reached();
-    }
-
      object_initialize_child(obj, "armv7m", &a->armv7m,

TYPE_ARMV7M);

Quoted 3 lines
hw/arm/aspeed_ast10x0.c +0 -0
      s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL,

0); @@ -184,8 +179,13 @@ static void aspeed_soc_ast10x0_init(Object

*obj)

Quoted 9 lines
  static void aspeed_soc_ast1030_init(Object *obj)
  {
      AspeedSoCState *s = ASPEED_SOC(obj);
hw/arm/aspeed_ast10x0.c +5 -0
+    char socname[8];
+
+    if (sscanf(object_get_typename(obj), "%7s", socname) != 1) {
+        g_assert_not_reached();
+    }
Quoted 8 lines

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast10x0_init(Object *obj) · line 188

Quoted 2 lines
hw/arm/aspeed_ast10x0.c +1 -1
-    aspeed_soc_ast10x0_init(obj);
+    aspeed_soc_ast10x0_init(obj, socname);

As Philippe suggested, why not use directly :

        aspeed_soc_ast10x0_init(obj, "ast1030");

Thanks for the review and suggestion.
Will update it.

Thanks-Jamin

Quoted 10 lines

Thanks,

C.

Quoted 3 lines
      object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC);
      object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);

}

#18 lore raw

PATCH 8/12 hw/arm/aspeed_ast10x0: Add AST1060 SoC support

In reply to Jamin Lin via

Add initial support for the Aspeed AST1060 SoC. The AST1060 reuses most of the AST1030 peripheral device models, as the two SoCs share nearly the same controllers including WDT, SCU, TIMER, HACE, ADC, I2C, FMC, and SPI.

A new common initialization and realization framework (ast10x0_init and ast10x0_realize) is leveraged so AST1060 can instantiate the existing AST1030 models without redefining duplicate device types.

---
 hw/arm/aspeed_ast10x0.c | 61 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 60 insertions(+), 1 deletion(-)
hw/arm/aspeed_ast10x0.c +60 -1
index c85c21b149..17f5285d85 100644
@@ -190,6 +190,25 @@ static void aspeed_soc_ast1030_init(Object *obj)
     object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
 }
 
+static void aspeed_soc_ast1060_init(Object *obj)
+{
+    char socname[8] = "ast1030";
+
+    /*
+     * The AST1060 SoC reuses the AST1030 device models. Since all peripheral
+     * models (e.g. WDT, SCU, TIMER, HACE, ADC, I2C, FMC, SPI) defined for
+     * AST1030 are compatible with AST1060, we simply reuse the existing
+     * AST1030 models for AST1060.
+     *
+     * To simplify the implementation, AST1060 sets its socname to that of
+     * AST1030, avoiding the need to create a full set of new
+     * TYPE_ASPEED_1060_XXX device definitions. This allows the same
+     * TYPE_ASPEED_1030_WDT and other models to be instantiated for both
+     * SoCs.
+     */
+    aspeed_soc_ast10x0_init(obj, socname);
+}
+
 static bool aspeed_soc_ast10x0_realize(Aspeed10x0SoCState *a, Error **errp)
 {
     AspeedSoCState *s = ASPEED_SOC(a);
@@ -456,6 +475,15 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
                                 sc->irqmap[ASPEED_DEV_KCS] + aspeed_lpc_kcs_4));
 }
 
+static void aspeed_soc_ast1060_realize(DeviceState *dev_soc, Error **errp)
+{
+    Aspeed10x0SoCState *a = ASPEED10X0_SOC(dev_soc);
+
+    if (!aspeed_soc_ast10x0_realize(a, errp)) {
+        return;
+    }
+}
+
 static void aspeed_soc_ast1030_class_init(ObjectClass *klass, const void *data)
 {
     static const char * const valid_cpu_types[] = {
@@ -484,6 +512,32 @@ static void aspeed_soc_ast1030_class_init(ObjectClass *klass, const void *data)
     sc->num_cpus = 1;
 }
 
+static void aspeed_soc_ast1060_class_init(ObjectClass *klass, const void *data)
+{
+    static const char * const valid_cpu_types[] = {
+        ARM_CPU_TYPE_NAME("cortex-m4"), /* TODO cortex-m4f */
+        NULL
+    };
+    DeviceClass *dc = DEVICE_CLASS(klass);
+    AspeedSoCClass *sc = ASPEED_SOC_CLASS(dc);
+
+    /* Reason: The Aspeed SoC can only be instantiated from a board */
+    dc->user_creatable = false;
+    dc->realize = aspeed_soc_ast1060_realize;
+
+    sc->valid_cpu_types = valid_cpu_types;
+    sc->silicon_rev = AST1060_A2_SILICON_REV;
+    sc->sram_size = 0xc0000;
+    sc->secsram_size = 0x40000; /* 256 * KiB */
+    sc->spis_num = 2;
+    sc->wdts_num = 4;
+    sc->uarts_num = 1;
+    sc->uarts_base = ASPEED_DEV_UART5;
+    sc->irqmap = aspeed_soc_ast1030_irqmap;
+    sc->memmap = aspeed_soc_ast1030_memmap;
+    sc->num_cpus = 1;
+}
+
 static const TypeInfo aspeed_soc_ast10x0_types[] = {
     {
         .name           = TYPE_ASPEED10X0_SOC,
@@ -495,7 +549,12 @@ static const TypeInfo aspeed_soc_ast10x0_types[] = {
         .parent         = TYPE_ASPEED10X0_SOC,
         .instance_init  = aspeed_soc_ast1030_init,
         .class_init     = aspeed_soc_ast1030_class_init,
-    },
+    }, {
+        .name           = "ast1060-a2",
+        .parent         = TYPE_ASPEED10X0_SOC,
+        .instance_init  = aspeed_soc_ast1060_init,
+        .class_init     = aspeed_soc_ast1060_class_init,
+    }
 };
 
 DEFINE_TYPES(aspeed_soc_ast10x0_types)
Signature · 1 line
2.43.0
#19 lore raw

Re: [PATCH v1 08/12] hw/arm/aspeed_ast10x0: Add AST1060 SoC support

Quoted 29 lines · Jamin Lin via

Add initial support for the Aspeed AST1060 SoC. The AST1060 reuses most of the AST1030 peripheral device models, as the two SoCs share nearly the same controllers including WDT, SCU, TIMER, HACE, ADC, I2C, FMC, and SPI.

A new common initialization and realization framework (ast10x0_init and ast10x0_realize) is leveraged so AST1060 can instantiate the existing AST1030 models without redefining duplicate device types.

---
  hw/arm/aspeed_ast10x0.c | 61 ++++++++++++++++++++++++++++++++++++++++-
  1 file changed, 60 insertions(+), 1 deletion(-)
hw/arm/aspeed_ast10x0.c +7 -0
index c85c21b149..17f5285d85 100644
@@ -190,6 +190,25 @@ static void aspeed_soc_ast1030_init(Object *obj)
      object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
  }
 
+static void aspeed_soc_ast1060_init(Object *obj)
+{
+    char socname[8] = "ast1030";
+
+    /*
+     * The AST1060 SoC reuses the AST1030 device models. Since all peripheral
+     * models (e.g. WDT, SCU, TIMER, HACE, ADC, I2C, FMC, SPI) defined for

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_init(Object *obj) · line 209

Quoted 10 lines
hw/arm/aspeed_ast10x0.c +10 -0
+     * AST1030 are compatible with AST1060, we simply reuse the existing
+     * AST1030 models for AST1060.
+     *
+     * To simplify the implementation, AST1060 sets its socname to that of
+     * AST1030, avoiding the need to create a full set of new
+     * TYPE_ASPEED_1060_XXX device definitions. This allows the same
+     * TYPE_ASPEED_1030_WDT and other models to be instantiated for both
+     * SoCs.
+     */
+    aspeed_soc_ast10x0_init(obj, socname);

Why not simply use:

       aspeed_soc_ast10x0_init(obj, "ast1030");

?

Quoted 1 line
hw/arm/aspeed_ast10x0.c +1 -0
+}
#20 lore raw

RE: [PATCH v1 08/12] hw/arm/aspeed_ast10x0: Add AST1060 SoC support

Hi Philippe,

Quoted 47 lines

Subject: Re: [PATCH v1 08/12] hw/arm/aspeed_ast10x0: Add AST1060 SoC support

Quoted 5 lines · Jamin Lin via

Add initial support for the Aspeed AST1060 SoC. The AST1060 reuses most of the AST1030 peripheral device models, as the two SoCs share nearly the same controllers including WDT, SCU, TIMER, HACE, ADC, I2C, FMC, and SPI.

Quoted 7 lines

A new common initialization and realization framework (ast10x0_init and ast10x0_realize) is leveraged so AST1060 can instantiate the existing AST1030 models without redefining duplicate device types.

---
  hw/arm/aspeed_ast10x0.c | 61

++++++++++++++++++++++++++++++++++++++++-

Quoted 7 lines
  1 file changed, 60 insertions(+), 1 deletion(-)
hw/arm/aspeed_ast10x0.c index renamed from hw/arm/aspeed_ast10x0.c +0 -0

c85c21b149..17f5285d85 100644

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_init(Object *obj) · line 197

Quoted 8 lines
hw/arm/aspeed_ast10x0.c +5 -0
@@ -190,6 +190,25 @@ static void aspeed_soc_ast1030_init(Object *obj)
      object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI);
  }
 
+static void aspeed_soc_ast1060_init(Object *obj) {
+    char socname[8] = "ast1030";
+
+    /*
+     * The AST1060 SoC reuses the AST1030 device models. Since all

peripheral

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_init(Object *obj) · line 198

Quoted 1 line
hw/arm/aspeed_ast10x0.c +1 -0
+     * models (e.g. WDT, SCU, TIMER, HACE, ADC, I2C, FMC, SPI) defined

for

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_init(Object *obj)

Quoted 7 lines
hw/arm/aspeed_ast10x0.c +7 -0
+     * AST1030 are compatible with AST1060, we simply reuse the existing
+     * AST1030 models for AST1060.
+     *
+     * To simplify the implementation, AST1060 sets its socname to that of
+     * AST1030, avoiding the need to create a full set of new
+     * TYPE_ASPEED_1060_XXX device definitions. This allows the same
+     * TYPE_ASPEED_1030_WDT and other models to be instantiated for

both

hw/arm/aspeed_ast10x0.c static void aspeed_soc_ast1030_init(Object *obj) · line 209

Quoted 3 lines
hw/arm/aspeed_ast10x0.c +3 -0
+     * SoCs.
+     */
+    aspeed_soc_ast10x0_init(obj, socname);
Quoted 5 lines

Why not simply use:

        aspeed_soc_ast10x0_init(obj, "ast1030");

?

Thanks for the review and suggestions.
Will update it.

Thanks,
Jamin

Quoted 2 lines
Quoted 2 lines
hw/arm/aspeed_ast10x0.c +1 -0
+}
#21 lore raw

PATCH 9/12 hw/arm/aspeed_ast10x0_evb: Add AST1060 EVB machine support

In reply to Jamin Lin via

Add a new machine definition ast1060-evb to support the Aspeed AST1060 evaluation board. The new EVB reuses the same MiniBMC framework used by AST1030, as both SoCs share the same core peripherals and controller designs.

The AST1060 EVB machine initializes the ast1060-a2 SoC and sets the FMC and SPI flash models (w25q80bl and w25q02jvm) for simulation. This enables QEMU to boot and emulate firmware images for AST1060-based platforms.

---
 hw/arm/aspeed_ast10x0_evb.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
hw/arm/aspeed_ast10x0_evb.c +23 -0
index 7af2a77865..a01385b543 100644
@@ -96,12 +96,35 @@ static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
     aspeed_machine_class_init_cpus_defaults(mc);
 }
 
+static void aspeed_minibmc_machine_ast1060_evb_class_init(ObjectClass *oc,
+                                                          const void *data)
+{
+    MachineClass *mc = MACHINE_CLASS(oc);
+    AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+    mc->desc = "Aspeed AST1060 PFR (Cortex-M4)";
+    amc->soc_name = "ast1060-a2";
+    amc->hw_strap1 = 0;
+    amc->hw_strap2 = 0;
+    mc->init = aspeed_minibmc_machine_init;
+    amc->fmc_model = "w25q80bl";
+    amc->spi_model = "w25q02jvm";
+    amc->num_cs = 2;
+    amc->macs_mask = 0;
+    aspeed_machine_class_init_cpus_defaults(mc);
+}
+
 static const TypeInfo aspeed_ast10x0_evb_types[] = {
     {
         .name           = MACHINE_TYPE_NAME("ast1030-evb"),
         .parent         = TYPE_ASPEED_MACHINE,
         .class_init     = aspeed_minibmc_machine_ast1030_evb_class_init,
         .interfaces     = arm_machine_interfaces,
+    }, {
+        .name           = MACHINE_TYPE_NAME("ast1060-evb"),
+        .parent         = TYPE_ASPEED_MACHINE,
+        .class_init     = aspeed_minibmc_machine_ast1060_evb_class_init,
+        .interfaces     = arm_machine_interfaces,
     }
 };
 
Signature · 1 line
2.43.0
Reviewed-by on v1 9/12
#22 lore raw

Re: [PATCH v1 09/12] hw/arm/aspeed_ast10x0_evb: Add AST1060 EVB machine support

Quoted 20 lines · Jamin Lin

Add a new machine definition ast1060-evb to support the Aspeed AST1060 evaluation board. The new EVB reuses the same MiniBMC framework used by AST1030, as both SoCs share the same core peripherals and controller designs.

The AST1060 EVB machine initializes the ast1060-a2 SoC and sets the FMC and SPI flash models (w25q80bl and w25q02jvm) for simulation. This enables QEMU to boot and emulate firmware images for AST1060-based platforms.

---
  hw/arm/aspeed_ast10x0_evb.c | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
hw/arm/aspeed_ast10x0_evb.c +0 -0
index 7af2a77865..a01385b543 100644

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc, · line 105

Quoted 10 lines
hw/arm/aspeed_ast10x0_evb.c +7 -0
@@ -96,12 +96,35 @@ static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
      aspeed_machine_class_init_cpus_defaults(mc);
  }
 
+static void aspeed_minibmc_machine_ast1060_evb_class_init(ObjectClass *oc,
+                                                          const void *data)
+{
+    MachineClass *mc = MACHINE_CLASS(oc);
+    AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+    mc->desc = "Aspeed AST1060 PFR (Cortex-M4)";

What does "PFR" mean ?

Quoted 15 lines
hw/arm/aspeed_ast10x0_evb.c +11 -0
+    amc->soc_name = "ast1060-a2";
+    amc->hw_strap1 = 0;
+    amc->hw_strap2 = 0;
+    mc->init = aspeed_minibmc_machine_init;
+    amc->fmc_model = "w25q80bl";
+    amc->spi_model = "w25q02jvm";
+    amc->num_cs = 2;
+    amc->macs_mask = 0;
+    aspeed_machine_class_init_cpus_defaults(mc);
+}
+
  static const TypeInfo aspeed_ast10x0_evb_types[] = {
      {
          .name           = MACHINE_TYPE_NAME("ast1030-evb"),
          .parent         = TYPE_ASPEED_MACHINE,

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc, · line 130

Quoted 10 lines
hw/arm/aspeed_ast10x0_evb.c +5 -0
          .class_init     = aspeed_minibmc_machine_ast1030_evb_class_init,
          .interfaces     = arm_machine_interfaces,
+    }, {
+        .name           = MACHINE_TYPE_NAME("ast1060-evb"),
+        .parent         = TYPE_ASPEED_MACHINE,
+        .class_init     = aspeed_minibmc_machine_ast1060_evb_class_init,
+        .interfaces     = arm_machine_interfaces,
      }
  };
 

Thanks,

C.

#23 lore raw

RE: [PATCH v1 09/12] hw/arm/aspeed_ast10x0_evb: Add AST1060 EVB machine support

Hi Cédric,

Quoted 31 lines

Subject: Re: [PATCH v1 09/12] hw/arm/aspeed_ast10x0_evb: Add AST1060 EVB machine support

hw/arm/aspeed_ast10x0_evb.c static void

Quoted 20 lines · Jamin Lin

Add a new machine definition ast1060-evb to support the Aspeed AST1060 evaluation board. The new EVB reuses the same MiniBMC framework used by AST1030, as both SoCs share the same core peripherals and controller designs.

The AST1060 EVB machine initializes the ast1060-a2 SoC and sets the FMC and SPI flash models (w25q80bl and w25q02jvm) for simulation. This enables QEMU to boot and emulate firmware images for AST1060-based platforms.

---
  hw/arm/aspeed_ast10x0_evb.c | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
hw/arm/aspeed_ast10x0_evb.c +0 -0
index 7af2a77865..a01385b543 100644
@@ -96,12 +96,35 @@ static void

aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,

Quoted 4 lines
hw/arm/aspeed_ast10x0_evb.c +1 -0
      aspeed_machine_class_init_cpus_defaults(mc);
  }
 
+static void aspeed_minibmc_machine_ast1060_evb_class_init(ObjectClass

*oc,

hw/arm/aspeed_ast10x0_evb.c static void · line 100

Quoted 1 line
hw/arm/aspeed_ast10x0_evb.c +1 -0
+
Quoted 9 lines

const void

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc, · line 105

Quoted 5 lines
hw/arm/aspeed_ast10x0_evb.c +5 -0
+*data) {
+    MachineClass *mc = MACHINE_CLASS(oc);
+    AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+    mc->desc = "Aspeed AST1060 PFR (Cortex-M4)";

What does "PFR" mean ?

Thanks for your review and suggestion.

I will update it to " Platform Root of Trust"
Thanks-Jamin

Quoted 34 lines
Quoted 6 lines
hw/arm/aspeed_ast10x0_evb.c +6 -0
+    amc->soc_name = "ast1060-a2";
+    amc->hw_strap1 = 0;
+    amc->hw_strap2 = 0;
+    mc->init = aspeed_minibmc_machine_init;
+    amc->fmc_model = "w25q80bl";
+    amc->spi_model = "w25q02jvm";

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,

Quoted 10 lines
hw/arm/aspeed_ast10x0_evb.c +5 -0
+    amc->num_cs = 2;
+    amc->macs_mask = 0;
+    aspeed_machine_class_init_cpus_defaults(mc);
+}
+
  static const TypeInfo aspeed_ast10x0_evb_types[] = {
      {
          .name           = MACHINE_TYPE_NAME("ast1030-evb"),
          .parent         = TYPE_ASPEED_MACHINE,
          .class_init     =

aspeed_minibmc_machine_ast1030_evb_class_init,

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,

Quoted 5 lines
hw/arm/aspeed_ast10x0_evb.c +4 -0
          .interfaces     = arm_machine_interfaces,
+    }, {
+        .name           = MACHINE_TYPE_NAME("ast1060-evb"),
+        .parent         = TYPE_ASPEED_MACHINE,
+        .class_init     =

aspeed_minibmc_machine_ast1060_evb_class_init,

hw/arm/aspeed_ast10x0_evb.c static void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc, · line 130

Quoted 4 lines
hw/arm/aspeed_ast10x0_evb.c +1 -0
+        .interfaces     = arm_machine_interfaces,
      }
  };
 

Thanks,

C.

#24 lore raw

PATCH 10/12 tests/functional/arm/test_aspeed_ast1060: Add functional tests for Aspeed AST1060 SoC

In reply to Jamin Lin via

Add functional tests for the Aspeed AST1060 SoC and its evaluation board. The new test test_aspeed_ast1060.py validates booting the AST1060 EVB machine using the Zephyr OS and ASPEED PROT application (ast1060_prot_v03.02.tgz) and ensures basic console functionality.

---
 tests/functional/arm/meson.build            |  1 +
 tests/functional/arm/test_aspeed_ast1060.py | 52 +++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 tests/functional/arm/test_aspeed_ast1060.py
tests/functional/arm/meson.build +1 -0
index d1ed076a6a..1762a49604 100644
@@ -28,6 +28,7 @@ tests_arm_system_quick = [
 
 tests_arm_system_thorough = [
   'aspeed_ast1030',
+  'aspeed_ast1060',
   'aspeed_palmetto',
   'aspeed_romulus',
   'aspeed_witherspoon',
tests/functional/arm/test_aspeed_ast1060.py new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
2.43.0
#25 lore raw

Re: [PATCH v1 10/12] tests/functional/arm/test_aspeed_ast1060: Add functional tests for Aspeed AST1060 SoC

Quoted 6 lines · Jamin Lin

Add functional tests for the Aspeed AST1060 SoC and its evaluation board. The new test test_aspeed_ast1060.py validates booting the AST1060 EVB machine using the Zephyr OS and ASPEED PROT application (ast1060_prot_v03.02.tgz) and ensures basic console functionality.

Looks ok.

Thanks,

C.

Quoted 76 lines
---
  tests/functional/arm/meson.build            |  1 +
  tests/functional/arm/test_aspeed_ast1060.py | 52 +++++++++++++++++++++
  2 files changed, 53 insertions(+)

create mode 100644 tests/functional/arm/test_aspeed_ast1060.py

tests/functional/arm/meson.build +1 -0
index d1ed076a6a..1762a49604 100644
@@ -28,6 +28,7 @@ tests_arm_system_quick = [
 
  tests_arm_system_thorough = [
    'aspeed_ast1030',
+  'aspeed_ast1060',
    'aspeed_palmetto',
    'aspeed_romulus',
    'aspeed_witherspoon',
tests/functional/arm/test_aspeed_ast1060.py new file +52 -0
new file mode 100644
index 0000000000..034efa5342
@@ -0,0 +1,52 @@
+#!/usr/bin/env python3
+#
+# Functional test that boots the ASPEED SoCs with firmware
+#
+# Copyright (C) 2025 ASPEED Technology Inc
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from aspeed import AspeedTest
+from qemu_test import Asset, exec_command_and_wait_for_pattern
+
+
+class AST1060Machine(AspeedTest):
+    ASSET_ASPEED_AST1060_PROT_3_02 = Asset(
+        ('https://github.com/AspeedTech-BMC'
+         '/aspeed-zephyr-project/releases/download/v03.02'
+         '/ast1060_prot_v03.02.tgz'),
+         'dd5f1adc935316ddd1906506a02e15567bd7290657b52320f1a225564cc175bd')
+
+    def test_arm_ast1060_prot_3_02(self):
+        self.set_machine('ast1060-evb')
+
+        kernel_name = "ast1060_prot/zephyr.bin"
+        kernel_file = self.archive_extract(
+            self.ASSET_ASPEED_AST1060_PROT_3_02, member=kernel_name)
+
+        self.vm.set_console()
+        self.vm.add_args('-kernel', kernel_file, '-nographic')
+        self.vm.launch()
+        self.wait_for_console_pattern("Booting Zephyr OS")
+        exec_command_and_wait_for_pattern(self, "help",
+                                          "Available commands")
+
+    def test_arm_ast1060_otp_blockdev_device(self):
+        self.vm.set_machine("ast1060-evb")
+
+        kernel_name = "ast1060_prot/zephyr.bin"
+        kernel_file = self.archive_extract(self.ASSET_ASPEED_AST1060_PROT_3_02,
+                                           member=kernel_name)
+        otp_img = self.generate_otpmem_image()
+
+        self.vm.set_console()
+        self.vm.add_args(
+            "-kernel", kernel_file,
+            "-blockdev", f"driver=file,filename={otp_img},node-name=otp",
+            "-global", "aspeed-otp.drive=otp",
+        )
+        self.vm.launch()
+        self.wait_for_console_pattern("Booting Zephyr OS")
+
+if __name__ == '__main__':
+    AspeedTest.main()
#26 lore raw

PATCH 11/12 docs/system/arm/aspeed: Update Aspeed and 2700 family boards list

In reply to Jamin Lin via

Remove the ast2700-evb entry from the Aspeed family boards list in the documentation. The AST2700 platform now belongs to the new Aspeed 2700 family group, which has its own dedicated documentation section and board definitions.

Update the Aspeed 2700 family boards list in the documentation to include the new ast2700fc board entry.

---
 docs/system/arm/aspeed.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/aspeed.rst +2 -2
index 6317c0e910..a0c05a6f73 100644
@@ -1,4 +1,4 @@
-Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``ast2700-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
+Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
 ====================================================================================================================================================================================================================================================================================================================================================================================================================================
 
 The QEMU Aspeed machines model BMCs of various OpenPOWER systems and
@@ -274,7 +274,7 @@ configuration file for OTP memory:
     done > otpmem.img
   fi
 
-Aspeed 2700 family boards (``ast2700-evb``)
+Aspeed 2700 family boards (``ast2700-evb``, ``ast2700fc``)
 ==================================================================
 
 The QEMU Aspeed machines model BMCs of Aspeed evaluation boards.
Signature · 1 line
2.43.0
#27 lore raw

Re: [PATCH v1 11/12] docs/system/arm/aspeed: Update Aspeed and 2700 family boards list

Quoted 18 lines · Jamin Lin

Remove the ast2700-evb entry from the Aspeed family boards list in the documentation. The AST2700 platform now belongs to the new Aspeed 2700 family group, which has its own dedicated documentation section and board definitions.

Update the Aspeed 2700 family boards list in the documentation to include the new ast2700fc board entry.

---
  docs/system/arm/aspeed.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/aspeed.rst +0 -0
index 6317c0e910..a0c05a6f73 100644

docs/system/arm/aspeed.rst line 3

Quoted 4 lines
docs/system/arm/aspeed.rst +1 -1
@@ -1,4 +1,4 @@
-Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``ast2700-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
+Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, ``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``, ``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, ``witherspoon-bmc``, ``yosemitev2-bmc``)
  ====================================================================================================================================================================================================================================================================================================================================================================================================================================
 

The title text line above and the "...===..." line should match in length.

Thanks,

C.

Quoted 10 lines
docs/system/arm/aspeed.rst +1 -1
  The QEMU Aspeed machines model BMCs of various OpenPOWER systems and
@@ -274,7 +274,7 @@ configuration file for OTP memory:
      done > otpmem.img
    fi
 
-Aspeed 2700 family boards (``ast2700-evb``)
+Aspeed 2700 family boards (``ast2700-evb``, ``ast2700fc``)
  ==================================================================
 
  The QEMU Aspeed machines model BMCs of Aspeed evaluation boards.
#28 lore raw

RE: [PATCH v1 11/12] docs/system/arm/aspeed: Update Aspeed and 2700 family boards list

Hi Cédric,

Quoted 50 lines

Subject: Re: [PATCH v1 11/12] docs/system/arm/aspeed: Update Aspeed and 2700 family boards list

Quoted 24 lines · Jamin Lin

Remove the ast2700-evb entry from the Aspeed family boards list in the documentation. The AST2700 platform now belongs to the new Aspeed 2700 family group, which has its own dedicated documentation section and board definitions.

Update the Aspeed 2700 family boards list in the documentation to include the new ast2700fc board entry.

---
  docs/system/arm/aspeed.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/aspeed.rst +0 -1
index 6317c0e910..a0c05a6f73 100644
@@ -1,4 +1,4 @@
-Aspeed family boards (``ast2500-evb``, ``ast2600-evb``,
 ``ast2700-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``,
 ``fby35-bmc``, ``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``,
 ``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``,

``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, ``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``,

Quoted 10 lines

``witherspoon-bmc``, ``yosemitev2-bmc``)
+Aspeed family boards (``ast2500-evb``, ``ast2600-evb``, +``bletchley-bmc``, ``fuji-bmc``, ``gb200nvl-bmc``, ``fby35-bmc``, +``fp5280g2-bmc``, ``g220a-bmc``, ``palmetto-bmc``, +``qcom-dc-scm-v1-bmc``, ``qcom-firework-bmc``, ``quanta-q71l-bmc``, +``rainier-bmc``, ``romulus-bmc``, ``sonorapass-bmc``, +``supermicrox11-bmc``, ``supermicrox11spi-bmc``, ``tiogapass-bmc``, +``witherspoon-bmc``, ``yosemitev2-bmc``)

================================================================
======

Quoted 1 line

================================================================
======

Quoted 1 line

================================================================
======

Quoted 1 line

================================================================
======

Quoted 1 line
Quoted 9 lines

================================================================
======

Quoted 1 line

================================================================
======

Quoted 1 line

The title text line above and the "...===..." line should match in length.

Thanks for your review and suggestion.
Will update it.

Thanks-Jamin

Quoted 19 lines

Thanks,

C.

Quoted 1 line

The QEMU Aspeed machines model BMCs of various OpenPOWER

systems and

docs/system/arm/aspeed.rst configuration file for OTP memory: · line 278

Quoted 7 lines
docs/system/arm/aspeed.rst +1 -1
@@ -274,7 +274,7 @@ configuration file for OTP memory:
      done > otpmem.img
    fi
 
-Aspeed 2700 family boards (``ast2700-evb``)
+Aspeed 2700 family boards (``ast2700-evb``, ``ast2700fc``)
 

================================================================
==

Quoted 2 lines
docs/system/arm/aspeed.rst +0 -0
  The QEMU Aspeed machines model BMCs of Aspeed evaluation boards.
#29 lore raw

PATCH 12/12 docs/system/arm/aspeed: Update Aspeed MiniBMC section to include AST1060 PFR processor

In reply to Jamin Lin via

Added details describing AST1060 as a PFR processor board alongside AST1030 MiniBMC, and extended the list of missing devices to include SMBus Filter and QSPI Monitor controllers.

---
 docs/system/arm/aspeed.rst | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)
docs/system/arm/aspeed.rst +15 -9
index a0c05a6f73..ffa5f4b372 100644
@@ -448,23 +448,25 @@ Use ``tio`` or another terminal emulator to connect to the consoles:
    $ tio /dev/pts/57
 
 
-Aspeed minibmc family boards (``ast1030-evb``)
-==================================================================
+Aspeed minibmc and PFR processor family boards (``ast1030-evb``, ``ast1060-evb``)
+=================================================================================
 
-The QEMU Aspeed machines model mini BMCs of various Aspeed evaluation
-boards. They are based on different releases of the
-Aspeed SoC : the AST1030 integrating an ARM Cortex M4F CPU (200MHz).
+The QEMU Aspeed machines model mini BMCs and PFR processors of various Aspeed
+evaluation boards. They are based on different releases of the
+Aspeed SoC : the AST1030 (MiniBMC) and AST1060 (PFR Processor), both integrating
+an ARM Cortex M4F CPU (200MHz).
 
 The SoC comes with SRAM, SPI, I2C, etc.
 
-AST1030 SoC based machines :
+AST10x0 SoC based machines :
 
-- ``ast1030-evb``          Aspeed AST1030 Evaluation board (Cortex-M4F)
+- ``ast1030-evb``          Aspeed AST1030 MiniBMC Evaluation board (Cortex-M4F)
+- ``ast1060-evb``	   Aspeed AST1060 PFR Processor Evaluation board (Cortex-M4F)
 
 Supported devices
 -----------------
 
- * SMP (for the AST1030 Cortex-M4F)
+ * SMP (for the Cortex-M4F)
  * Interrupt Controller (VIC)
  * Timer Controller
  * I2C Controller
@@ -492,6 +494,8 @@ Missing devices
  * Virtual UART
  * eSPI Controller
  * I3C Controller
+ * SMBus Filter Controller
+ * QSPI Monitor Controller
 
 Boot options
 ------------
@@ -502,9 +506,11 @@ ASPEED GitHub release repository :
 
    https://github.com/AspeedTech-BMC/zephyr/releases
 
+   https://github.com/AspeedTech-BMC/aspeed-zephyr-project/releases
+
 To boot a kernel directly from a Zephyr build tree:
 
 .. code-block:: bash
 
   $ qemu-system-arm -M ast1030-evb -nographic \
-        -kernel zephyr.elf
+        -kernel zephyr.bin
Signature · 1 line
2.43.0
#30 lore raw

Re: [PATCH v1 12/12] docs/system/arm/aspeed: Update Aspeed MiniBMC section to include AST1060 PFR processor

Quoted 1 line · Jamin Lin

Added details describing AST1060 as a PFR processor board alongside

Please explain what the TLA 'PFR' means.

Quoted 56 lines

AST1030 MiniBMC, and extended the list of missing devices to include SMBus Filter and QSPI Monitor controllers.

---
  docs/system/arm/aspeed.rst | 24 +++++++++++++++---------
  1 file changed, 15 insertions(+), 9 deletions(-)
docs/system/arm/aspeed.rst +12 -8
index a0c05a6f73..ffa5f4b372 100644
@@ -448,23 +448,25 @@ Use ``tio`` or another terminal emulator to connect to the consoles:
     $ tio /dev/pts/57
 
 
-Aspeed minibmc family boards (``ast1030-evb``)
-==================================================================
+Aspeed minibmc and PFR processor family boards (``ast1030-evb``, ``ast1060-evb``)
+=================================================================================
 
-The QEMU Aspeed machines model mini BMCs of various Aspeed evaluation
-boards. They are based on different releases of the
-Aspeed SoC : the AST1030 integrating an ARM Cortex M4F CPU (200MHz).
+The QEMU Aspeed machines model mini BMCs and PFR processors of various Aspeed
+evaluation boards. They are based on different releases of the
+Aspeed SoC : the AST1030 (MiniBMC) and AST1060 (PFR Processor), both integrating
+an ARM Cortex M4F CPU (200MHz).
 
  The SoC comes with SRAM, SPI, I2C, etc.
 
-AST1030 SoC based machines :
+AST10x0 SoC based machines :
 
-- ``ast1030-evb``          Aspeed AST1030 Evaluation board (Cortex-M4F)
+- ``ast1030-evb``          Aspeed AST1030 MiniBMC Evaluation board (Cortex-M4F)
+- ``ast1060-evb``	   Aspeed AST1060 PFR Processor Evaluation board (Cortex-M4F)
 
  Supported devices
  -----------------
 
- * SMP (for the AST1030 Cortex-M4F)
+ * SMP (for the Cortex-M4F)
   * Interrupt Controller (VIC)
   * Timer Controller
   * I2C Controller
@@ -492,6 +494,8 @@ Missing devices
   * Virtual UART
   * eSPI Controller
   * I3C Controller
+ * SMBus Filter Controller
+ * QSPI Monitor Controller
 
  Boot options
  ------------

docs/system/arm/aspeed.rst ASPEED GitHub release repository : · line 510

Quoted 5 lines
docs/system/arm/aspeed.rst +2 -0
@@ -502,9 +506,11 @@ ASPEED GitHub release repository :
 
     https://github.com/AspeedTech-BMC/zephyr/releases
 
+   https://github.com/AspeedTech-BMC/aspeed-zephyr-project/releases
+

Should we keep a reference to both URLs ?

Thanks,

C.

Quoted 7 lines
docs/system/arm/aspeed.rst +1 -1
  To boot a kernel directly from a Zephyr build tree:
 
  .. code-block:: bash
 
    $ qemu-system-arm -M ast1030-evb -nographic \
-        -kernel zephyr.elf
+        -kernel zephyr.bin
#31 lore raw

RE: [PATCH v1 12/12] docs/system/arm/aspeed: Update Aspeed MiniBMC section to include AST1060 PFR processor

Hi Cédric

Quoted 7 lines

Subject: Re: [PATCH v1 12/12] docs/system/arm/aspeed: Update Aspeed MiniBMC section to include AST1060 PFR processor

Quoted 1 line · Jamin Lin

Added details describing AST1060 as a PFR processor board alongside

Please explain what the TLA 'PFR' means.

PFR is the abbreviation for Platform Firmware Resilience, as defined in the NIST SP 800-193 (Platform Firmware Resiliency Guidelines, https://csrc.nist.gov/pubs/sp/800/193/final )
The AST1060 implements the NIST SP 800-193 PFR functionality and effectively serves as the Platform Root of Trust. So, I will update to use " Platform Root of Trust" instead of PFR.

Quoted 69 lines

docs/system/arm/aspeed.rst Use ``tio`` or another terminal emulator to

Quoted 14 lines

AST1030 MiniBMC, and extended the list of missing devices to include SMBus Filter and QSPI Monitor controllers.

---
  docs/system/arm/aspeed.rst | 24 +++++++++++++++---------
  1 file changed, 15 insertions(+), 9 deletions(-)
docs/system/arm/aspeed.rst +0 -0
index a0c05a6f73..ffa5f4b372 100644
@@ -448,23 +448,25 @@ Use ``tio`` or another terminal emulator to

connect to the consoles:

docs/system/arm/aspeed.rst Use ``tio`` or another terminal emulator to connect to the consoles: · line 453

Quoted 5 lines
docs/system/arm/aspeed.rst +0 -1
     $ tio /dev/pts/57
 
 
-Aspeed minibmc family boards (``ast1030-evb``)
 

-===============================================================
===

docs/system/arm/aspeed.rst Use ``tio`` or another terminal emulator to · line 454

Quoted 3 lines
docs/system/arm/aspeed.rst +2 -0
+Aspeed minibmc and PFR processor family boards (``ast1030-evb``,
+``ast1060-evb``)
 

+===============================================================
======

docs/system/arm/aspeed.rst Use ``tio`` or another terminal emulator to · line 455

Quoted 3 lines
docs/system/arm/aspeed.rst +1 -1
+============
 
-The QEMU Aspeed machines model mini BMCs of various Aspeed

evaluation

docs/system/arm/aspeed.rst Use ``tio`` or another terminal emulator to connect to the consoles:

Quoted 13 lines
docs/system/arm/aspeed.rst +0 -1
-boards. They are based on different releases of the -Aspeed SoC : the

AST1030 integrating an ARM Cortex M4F CPU (200MHz).

docs/system/arm/aspeed.rst +5 -2
+The QEMU Aspeed machines model mini BMCs and PFR processors of
+various Aspeed evaluation boards. They are based on different
+releases of the Aspeed SoC : the AST1030 (MiniBMC) and AST1060 (PFR
+Processor), both integrating an ARM Cortex M4F CPU (200MHz).
 
  The SoC comes with SRAM, SPI, I2C, etc.
 
-AST1030 SoC based machines :
+AST10x0 SoC based machines :
 
-- ``ast1030-evb``          Aspeed AST1030 Evaluation board

(Cortex-M4F)

Quoted 1 line

+- ``ast1030-evb`` Aspeed AST1030 MiniBMC Evaluation board

(Cortex-M4F)

Quoted 1 line

+- ``ast1060-evb`` Aspeed AST1060 PFR Processor Evaluation board

(Cortex-M4F)

Quoted 20 lines

Supported devices
-----------------

- * SMP (for the AST1030 Cortex-M4F)
+ * SMP (for the Cortex-M4F)
* Interrupt Controller (VIC)
* Timer Controller
* I2C Controller

docs/system/arm/aspeed.rst +2 -0
@@ -492,6 +494,8 @@ Missing devices
   * Virtual UART
   * eSPI Controller
   * I3C Controller
+ * SMBus Filter Controller
+ * QSPI Monitor Controller
 
  Boot options
  ------------
@@ -502,9 +506,11 @@ ASPEED GitHub release repository :
 
Quoted 7 lines

docs/system/arm/aspeed.rst ASPEED GitHub release repository : · line 510

Quoted 4 lines
docs/system/arm/aspeed.rst +2 -0
     https://github.com/AspeedTech-BMC/zephyr/releases
 
+   https://github.com/AspeedTech-BMC/aspeed-zephyr-project/releases
+

Should we keep a reference to both URLs ?

Will remove it.
Thanks-Jamin

Quoted 12 lines

Thanks,

C.

Quoted 7 lines
docs/system/arm/aspeed.rst +1 -1
  To boot a kernel directly from a Zephyr build tree:
 
  .. code-block:: bash
 
    $ qemu-system-arm -M ast1030-evb -nographic \
-        -kernel zephyr.elf
+        -kernel zephyr.bin