[PATCH v2 00/13] hw/arm/aspeed: Add AST1040 FMC/SPI controllers and unimplemented devices

Jamin Lin posted 13 patches 3 weeks, 5 days ago
Failed in applying to current master (apply log)
hw/block/m25p80_sfdp.h                      |   1 +
include/hw/misc/aspeed_scu.h                |   2 +-
hw/arm/aspeed_ast1040.c                     |  45 +++++++
hw/block/m25p80.c                           |   2 +
hw/block/m25p80_sfdp.c                      |  36 ++++++
hw/ssi/aspeed_smc.c                         | 131 +++++++++++++++++++-
tests/qtest/aspeed_smc-test.c               |  61 +++++++++
tests/functional/arm/test_aspeed_ast1040.py |  12 +-
8 files changed, 278 insertions(+), 12 deletions(-)
[PATCH v2 00/13] hw/arm/aspeed: Add AST1040 FMC/SPI controllers and unimplemented devices
Posted by Jamin Lin 3 weeks, 5 days ago
v1:
 1. Fix AST2700 segment end address decoding
 2. Fix AST2700 DMA flash address mask
 3. Rename w25q32dw to w25q33pw and add the SFDP table for the W25Q33PW,
 4. Correct the AST1040 A0 silicon revision ID
 5. Add FMC and SPI controllers
 6. Add the FMC/SPI filters, OTP, ATC, I3C and Caliptra register
    regions as unimplemented device
 7. Update the AST1040 functional test to use the official pre-built
    image from aspeed-mcu-fw-hub v01.00.

v2:
  1. Add w25q33pw as a separate flash model instead of renaming w25q32dw.
  2. Add the AST1040 SMC reset value table.

Jamin Lin (13):
  hw/ssi/aspeed_smc: Fix AST2700 segment end address decoding
  hw/ssi/aspeed_smc: Fix AST2700 DMA flash address mask
  hw/block/m25p80: Add Winbond W25Q33PW flash
  hw/misc/aspeed_scu: Correct AST1040 A0 revision ID
  hw/ssi/aspeed_smc: Add AST1040 FMC and SPI controllers
  hw/arm/aspeed_ast1040: Add FMC and SPI controllers
  hw/arm/aspeed_ast1040: Add FMC and SPI filters as unimplemented
    devices
  hw/arm/aspeed_ast1040: Add OTP as an unimplemented device
  hw/arm/aspeed_ast1040: Add Anti-Tamper Controller (ATC) as an
    unimplemented device
  hw/arm/aspeed_ast1040: Add I3C as an unimplemented device
  hw/arm/aspeed_ast1040: Add Caliptra as an unimplemented device
  tests/qtest/aspeed_smc: Add AST1040 SMC tests
  tests/functional/arm/test_aspeed_ast1040: Update AST1040 image to
    aspeed-mcu-fw-hub v01.00

 hw/block/m25p80_sfdp.h                      |   1 +
 include/hw/misc/aspeed_scu.h                |   2 +-
 hw/arm/aspeed_ast1040.c                     |  45 +++++++
 hw/block/m25p80.c                           |   2 +
 hw/block/m25p80_sfdp.c                      |  36 ++++++
 hw/ssi/aspeed_smc.c                         | 131 +++++++++++++++++++-
 tests/qtest/aspeed_smc-test.c               |  61 +++++++++
 tests/functional/arm/test_aspeed_ast1040.py |  12 +-
 8 files changed, 278 insertions(+), 12 deletions(-)

-- 
2.53.0
Re: [PATCH v2 00/13] hw/arm/aspeed: Add AST1040 FMC/SPI controllers and unimplemented devices
Posted by Cédric Le Goater 3 weeks, 4 days ago
On 10/28/26 03:31, Jamin Lin wrote:
> v1:
>   1. Fix AST2700 segment end address decoding
>   2. Fix AST2700 DMA flash address mask
>   3. Rename w25q32dw to w25q33pw and add the SFDP table for the W25Q33PW,
>   4. Correct the AST1040 A0 silicon revision ID
>   5. Add FMC and SPI controllers
>   6. Add the FMC/SPI filters, OTP, ATC, I3C and Caliptra register
>      regions as unimplemented device
>   7. Update the AST1040 functional test to use the official pre-built
>      image from aspeed-mcu-fw-hub v01.00.
> 
> v2:
>    1. Add w25q33pw as a separate flash model instead of renaming w25q32dw.
>    2. Add the AST1040 SMC reset value table.
> 
> Jamin Lin (13):
>    hw/ssi/aspeed_smc: Fix AST2700 segment end address decoding
>    hw/ssi/aspeed_smc: Fix AST2700 DMA flash address mask
>    hw/block/m25p80: Add Winbond W25Q33PW flash
>    hw/misc/aspeed_scu: Correct AST1040 A0 revision ID
>    hw/ssi/aspeed_smc: Add AST1040 FMC and SPI controllers
>    hw/arm/aspeed_ast1040: Add FMC and SPI controllers
>    hw/arm/aspeed_ast1040: Add FMC and SPI filters as unimplemented
>      devices
>    hw/arm/aspeed_ast1040: Add OTP as an unimplemented device
>    hw/arm/aspeed_ast1040: Add Anti-Tamper Controller (ATC) as an
>      unimplemented device
>    hw/arm/aspeed_ast1040: Add I3C as an unimplemented device
>    hw/arm/aspeed_ast1040: Add Caliptra as an unimplemented device
>    tests/qtest/aspeed_smc: Add AST1040 SMC tests
>    tests/functional/arm/test_aspeed_ast1040: Update AST1040 image to
>      aspeed-mcu-fw-hub v01.00
> 
>   hw/block/m25p80_sfdp.h                      |   1 +
>   include/hw/misc/aspeed_scu.h                |   2 +-
>   hw/arm/aspeed_ast1040.c                     |  45 +++++++
>   hw/block/m25p80.c                           |   2 +
>   hw/block/m25p80_sfdp.c                      |  36 ++++++
>   hw/ssi/aspeed_smc.c                         | 131 +++++++++++++++++++-
>   tests/qtest/aspeed_smc-test.c               |  61 +++++++++
>   tests/functional/arm/test_aspeed_ast1040.py |  12 +-
>   8 files changed, 278 insertions(+), 12 deletions(-)
> 

Applied to

     https://github.com/legoater/qemu aspeed-next

Thanks,

C.
Re: [PATCH v2 00/13] hw/arm/aspeed: Add AST1040 FMC/SPI controllers and unimplemented devices
Posted by Cédric Le Goater 3 weeks, 4 days ago
On 10/28/26 03:31, Jamin Lin wrote:
> v1:
>   1. Fix AST2700 segment end address decoding
>   2. Fix AST2700 DMA flash address mask
>   3. Rename w25q32dw to w25q33pw and add the SFDP table for the W25Q33PW,
>   4. Correct the AST1040 A0 silicon revision ID
>   5. Add FMC and SPI controllers
>   6. Add the FMC/SPI filters, OTP, ATC, I3C and Caliptra register
>      regions as unimplemented device
>   7. Update the AST1040 functional test to use the official pre-built
>      image from aspeed-mcu-fw-hub v01.00.
> 
> v2:
>    1. Add w25q33pw as a separate flash model instead of renaming w25q32dw.
>    2. Add the AST1040 SMC reset value table.
> 
> Jamin Lin (13):
>    hw/ssi/aspeed_smc: Fix AST2700 segment end address decoding
>    hw/ssi/aspeed_smc: Fix AST2700 DMA flash address mask
>    hw/block/m25p80: Add Winbond W25Q33PW flash
>    hw/misc/aspeed_scu: Correct AST1040 A0 revision ID
>    hw/ssi/aspeed_smc: Add AST1040 FMC and SPI controllers
>    hw/arm/aspeed_ast1040: Add FMC and SPI controllers
>    hw/arm/aspeed_ast1040: Add FMC and SPI filters as unimplemented
>      devices
>    hw/arm/aspeed_ast1040: Add OTP as an unimplemented device
>    hw/arm/aspeed_ast1040: Add Anti-Tamper Controller (ATC) as an
>      unimplemented device
>    hw/arm/aspeed_ast1040: Add I3C as an unimplemented device
>    hw/arm/aspeed_ast1040: Add Caliptra as an unimplemented device
>    tests/qtest/aspeed_smc: Add AST1040 SMC tests
>    tests/functional/arm/test_aspeed_ast1040: Update AST1040 image to
>      aspeed-mcu-fw-hub v01.00
> 
>   hw/block/m25p80_sfdp.h                      |   1 +
>   include/hw/misc/aspeed_scu.h                |   2 +-
>   hw/arm/aspeed_ast1040.c                     |  45 +++++++
>   hw/block/m25p80.c                           |   2 +
>   hw/block/m25p80_sfdp.c                      |  36 ++++++
>   hw/ssi/aspeed_smc.c                         | 131 +++++++++++++++++++-
>   tests/qtest/aspeed_smc-test.c               |  61 +++++++++
>   tests/functional/arm/test_aspeed_ast1040.py |  12 +-
>   8 files changed, 278 insertions(+), 12 deletions(-)
> 


Reviewed-by: Cédric Le Goater <clg@redhat.com>

Thanks,

C.