Skip to contentSkip to conversation

docs/system: Document some arm board models

PATCH In review Peter Maydell 4 participants 24 messages May 7, 2020 – May 15, 2020 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

cover docs/system: Document some arm board models

This patchset adds (minimal) documentation of these Arm board models:

vexpress-a15         ARM Versatile Express for Cortex-A15
vexpress-a9          ARM Versatile Express for Cortex-A9
mps2-an385           ARM MPS2 with AN385 FPGA image for Cortex-M35
mps2-an505           ARM MPS2 with AN505 FPGA image for Cortex-M33
mps2-an511           ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3
mps2-an521           ARM MPS2 with AN521 FPGA image for dual Cortex-M33
musca-a              ARM Musca-A board (dual Cortex-M33)
musca-b1             ARM Musca-B1 board (dual Cortex-M33)

to the system emulator manual.

Patches 1 and 2 are minor tidyup of the board table-of-contents before we start adding new entries with patches 3-5.

I'm aiming more for "at least note that the boards exist" than "fully comprehensive" documentation here -- there are still another 37 Arm board models with no documentation at all...

thanks
-- PMM

Peter Maydell (5):
docs/system: Add 'Arm' to the Integrator/CP document title docs/system: Sort Arm board index into alphabetical order docs/system: Document Arm Versatile Express boards docs/system: Document the various MPS2 models docs/system: Document Musca boards

 docs/system/arm/integratorcp.rst |  4 +--
 docs/system/arm/mps2.rst         | 29 +++++++++++++++
 docs/system/arm/musca.rst        | 31 +++++++++++++++++
 docs/system/arm/vexpress.rst     | 60 ++++++++++++++++++++++++++++++++
 docs/system/target-arm.rst       | 15 ++++----
 MAINTAINERS                      |  3 ++
 6 files changed, 134 insertions(+), 8 deletions(-)
 create mode 100644 docs/system/arm/mps2.rst
 create mode 100644 docs/system/arm/musca.rst
 create mode 100644 docs/system/arm/vexpress.rst
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/5 docs/system: Add 'Arm' to the Integrator/CP document title

Add 'Arm' to the Integrator/CP document title, for consistency with the titling of the other documentation of Arm devboard models (versatile, realview).

---
 docs/system/arm/integratorcp.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/integratorcp.rst +2 -2
index e6f050f602b..594438008e4 100644
@@ -1,5 +1,5 @@
-Integrator/CP (``integratorcp``)
-================================
+Arm Integrator/CP (``integratorcp``)
+====================================
 
 The Arm Integrator/CP board is emulated with the following devices:
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/5
#2 lore raw

Re: [PATCH 1/5] docs/system: Add 'Arm' to the Integrator/CP document title

Quoted 3 lines · Peter Maydell

Add 'Arm' to the Integrator/CP document title, for consistency with the titling of the other documentation of Arm devboard models (versatile, realview).

Quoted 22 lines
---
 docs/system/arm/integratorcp.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/integratorcp.rst +2 -2
index e6f050f602b..594438008e4 100644
@@ -1,5 +1,5 @@
-Integrator/CP (``integratorcp``)
-================================
+Arm Integrator/CP (``integratorcp``)
+====================================
 
 The Arm Integrator/CP board is emulated with the following devices:
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/5
#3 lore raw

Re: [PATCH 1/5] docs/system: Add 'Arm' to the Integrator/CP document title

In reply to Peter Maydell
Quoted 5 lines · Peter Maydell

Add 'Arm' to the Integrator/CP document title, for consistency with the titling of the other documentation of Arm devboard models (versatile, realview).

Quoted 15 lines
---
 docs/system/arm/integratorcp.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/arm/integratorcp.rst +2 -2
index e6f050f602b..594438008e4 100644
@@ -1,5 +1,5 @@
-Integrator/CP (``integratorcp``)
-================================
+Arm Integrator/CP (``integratorcp``)
+====================================
 
 The Arm Integrator/CP board is emulated with the following devices:
Signature · 1 line
Alex Bennée
#4 lore raw

PATCH 2/5 docs/system: Sort Arm board index into alphabetical order

In reply to Peter Maydell

Sort the board index into alphabetical order. (Note that we need to sort alphabetically by the title text of each file, which isn't the same ordering as sorting by the filename.)

---
 docs/system/target-arm.rst | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
docs/system/target-arm.rst +6 -6
index 324e2af1cbc..d1196cbe01c 100644
@@ -71,15 +71,15 @@ undocumented; you can get a complete list by running
    :maxdepth: 1
 
    arm/integratorcp
-   arm/versatile
    arm/realview
-   arm/xscale
-   arm/palm
-   arm/nseries
-   arm/stellaris
+   arm/versatile
    arm/musicpal
-   arm/sx1
+   arm/nseries
    arm/orangepi
+   arm/palm
+   arm/xscale
+   arm/sx1
+   arm/stellaris
 
 Arm CPU features
 ================
Signature · 1 line
2.20.1
Reviewed-by on v1 2/5
#5 lore raw

Re: [PATCH 2/5] docs/system: Sort Arm board index into alphabetical order

Quoted 3 lines · Peter Maydell

Sort the board index into alphabetical order. (Note that we need to sort alphabetically by the title text of each file, which isn't the same ordering as sorting by the filename.)

Quoted 36 lines
---
 docs/system/target-arm.rst | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
docs/system/target-arm.rst +6 -6
index 324e2af1cbc..d1196cbe01c 100644
@@ -71,15 +71,15 @@ undocumented; you can get a complete list by running
    :maxdepth: 1
 
    arm/integratorcp
-   arm/versatile
    arm/realview
-   arm/xscale
-   arm/palm
-   arm/nseries
-   arm/stellaris
+   arm/versatile
    arm/musicpal
-   arm/sx1
+   arm/nseries
    arm/orangepi
+   arm/palm
+   arm/xscale
+   arm/sx1
+   arm/stellaris
 
 Arm CPU features
 ================
Signature · 1 line
2.20.1
Reviewed-by on v1 2/5
#6 lore raw

Re: [PATCH 2/5] docs/system: Sort Arm board index into alphabetical order

In reply to Peter Maydell
Quoted 3 lines · Peter Maydell

Sort the board index into alphabetical order. (Note that we need to sort alphabetically by the title text of each file, which isn't the same ordering as sorting by the filename.)

Is it possible to leave an inline comment in the rst to this effect so no one mis-sorts it next time?

Otherwise:

Signature · 1 line
Alex Bennée
#7 lore raw

PATCH 3/5 docs/system: Document Arm Versatile Express boards

In reply to Peter Maydell

Provide a minimal documentation of the Versatile Express boards (vexpress-a9, vexpress-a15).

---
 docs/system/arm/vexpress.rst | 60 ++++++++++++++++++++++++++++++++++++
 docs/system/target-arm.rst   |  1 +
 MAINTAINERS                  |  1 +
 3 files changed, 62 insertions(+)
 create mode 100644 docs/system/arm/vexpress.rst
docs/system/arm/vexpress.rst new file +60 -0
new file mode 100644
index 00000000000..7f1bcbef078
@@ -0,0 +1,60 @@
+Arm Versatile Express boards (``vexpress-a9``, ``vexpress-a15``)
+================================================================
+
+QEMU models two variants of the Arm Versatile Express development
+board family:
+
+- ``vexpress-a9`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A9x4 daughterboard
+- ``vexpress-a15`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A15x2 daughterboard
+
+Note that as this hardware does not have PCI, IDE or SCSI,
+the only available storage option is emulated SD card.
+
+Implemented devices:
+
+- PL041 audio
+- PL181 SD controller
+- PL050 keyboard and mouse
+- PL011 UARTs
+- SP804 timers
+- I2C controller
+- PL031 RTC
+- PL111 LCD display controller
+- Flash memory
+- LAN9118 ethernet
+
+Unimplemented devices:
+
+- SP810 system control block
+- PCI-express
+- USB controller (Philips ISP1761)
+- Local DAP ROM
+- CoreSight interfaces
+- PL301 AXI interconnect
+- SCC
+- System counter
+- HDLCD controller (``vexpress-a15``)
+- SP805 watchdog
+- PL341 dynamic memory controller
+- DMA330 DMA controller
+- PL354 static memory controller
+- BP147 TrustZone Protection Controller
+- TrustZone Address Space Controller
+
+Other differences between the hardware and the QEMU model:
+
+- QEMU will default to creating one CPU unless you pass a different
+  ``-smp`` argument
+- QEMU allows the amount of RAM provided to be specified with the
+  ``-m`` argument
+- QEMU defaults to providing a CPU which does not provide either
+  TrustZone or the Virtualization Extensions: if you want these you
+  must enable them with ``-machine secure=on`` and ``-machine
+  virtualization=on``
+- QEMU provides 4 virtio-mmio virtio transports; these start at
+  address ``0x10013000`` for ``vexpress-a9`` and at ``0x1c130000`` for
+  ``vexpress-a15``, and have IRQs from 40 upwards. If a dtb is
+  provided on the command line then QEMU will edit it to include
+  suitable entries describing these transports for the guest.
docs/system/target-arm.rst +1 -0
index d1196cbe01c..4779293d731 100644
@@ -73,6 +73,7 @@ undocumented; you can get a complete list by running
    arm/integratorcp
    arm/realview
    arm/versatile
+   arm/vexpress
    arm/musicpal
    arm/nseries
    arm/orangepi
MAINTAINERS +1 -0
index 1f84e3ae2c6..74cff1c3818 100644
@@ -826,6 +826,7 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/arm/vexpress.c
+F: docs/system/arm/vexpress.rst
 
 Versatile PB
 M: Peter Maydell <[email protected]>
Signature · 1 line
2.20.1
Reviewed-by on v1 3/5
#8 lore raw

Re: [PATCH 3/5] docs/system: Document Arm Versatile Express boards

Quoted 2 lines · Peter Maydell

Provide a minimal documentation of the Versatile Express boards (vexpress-a9, vexpress-a15).

Quoted 103 lines
---
 docs/system/arm/vexpress.rst | 60 ++++++++++++++++++++++++++++++++++++
 docs/system/target-arm.rst   |  1 +
 MAINTAINERS                  |  1 +
 3 files changed, 62 insertions(+)
 create mode 100644 docs/system/arm/vexpress.rst
docs/system/arm/vexpress.rst new file +60 -0
new file mode 100644
index 00000000000..7f1bcbef078
@@ -0,0 +1,60 @@
+Arm Versatile Express boards (``vexpress-a9``, ``vexpress-a15``)
+================================================================
+
+QEMU models two variants of the Arm Versatile Express development
+board family:
+
+- ``vexpress-a9`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A9x4 daughterboard
+- ``vexpress-a15`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A15x2 daughterboard
+
+Note that as this hardware does not have PCI, IDE or SCSI,
+the only available storage option is emulated SD card.
+
+Implemented devices:
+
+- PL041 audio
+- PL181 SD controller
+- PL050 keyboard and mouse
+- PL011 UARTs
+- SP804 timers
+- I2C controller
+- PL031 RTC
+- PL111 LCD display controller
+- Flash memory
+- LAN9118 ethernet
+
+Unimplemented devices:
+
+- SP810 system control block
+- PCI-express
+- USB controller (Philips ISP1761)
+- Local DAP ROM
+- CoreSight interfaces
+- PL301 AXI interconnect
+- SCC
+- System counter
+- HDLCD controller (``vexpress-a15``)
+- SP805 watchdog
+- PL341 dynamic memory controller
+- DMA330 DMA controller
+- PL354 static memory controller
+- BP147 TrustZone Protection Controller
+- TrustZone Address Space Controller
+
+Other differences between the hardware and the QEMU model:
+
+- QEMU will default to creating one CPU unless you pass a different
+  ``-smp`` argument
+- QEMU allows the amount of RAM provided to be specified with the
+  ``-m`` argument
+- QEMU defaults to providing a CPU which does not provide either
+  TrustZone or the Virtualization Extensions: if you want these you
+  must enable them with ``-machine secure=on`` and ``-machine
+  virtualization=on``
+- QEMU provides 4 virtio-mmio virtio transports; these start at
+  address ``0x10013000`` for ``vexpress-a9`` and at ``0x1c130000`` for
+  ``vexpress-a15``, and have IRQs from 40 upwards. If a dtb is
+  provided on the command line then QEMU will edit it to include
+  suitable entries describing these transports for the guest.
docs/system/target-arm.rst +1 -0
index d1196cbe01c..4779293d731 100644
@@ -73,6 +73,7 @@ undocumented; you can get a complete list by running
    arm/integratorcp
    arm/realview
    arm/versatile
+   arm/vexpress
    arm/musicpal
    arm/nseries
    arm/orangepi
MAINTAINERS +1 -0
index 1f84e3ae2c6..74cff1c3818 100644
@@ -826,6 +826,7 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/arm/vexpress.c
+F: docs/system/arm/vexpress.rst
 
 Versatile PB
 M: Peter Maydell <[email protected]>
Signature · 1 line
2.20.1
Reviewed-by on v1 3/5
#9 lore raw

Re: [PATCH 3/5] docs/system: Document Arm Versatile Express boards

In reply to Peter Maydell
Quoted 67 lines · Peter Maydell

Provide a minimal documentation of the Versatile Express boards (vexpress-a9, vexpress-a15).

---
 docs/system/arm/vexpress.rst | 60 ++++++++++++++++++++++++++++++++++++
 docs/system/target-arm.rst   |  1 +
 MAINTAINERS                  |  1 +
 3 files changed, 62 insertions(+)
 create mode 100644 docs/system/arm/vexpress.rst
docs/system/arm/vexpress.rst new file +50 -0
new file mode 100644
index 00000000000..7f1bcbef078
@@ -0,0 +1,60 @@
+Arm Versatile Express boards (``vexpress-a9``, ``vexpress-a15``)
+================================================================
+
+QEMU models two variants of the Arm Versatile Express development
+board family:
+
+- ``vexpress-a9`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A9x4 daughterboard
+- ``vexpress-a15`` models the combination of the Versatile Express
+  motherboard and the CoreTile Express A15x2 daughterboard
+
+Note that as this hardware does not have PCI, IDE or SCSI,
+the only available storage option is emulated SD card.
+
+Implemented devices:
+
+- PL041 audio
+- PL181 SD controller
+- PL050 keyboard and mouse
+- PL011 UARTs
+- SP804 timers
+- I2C controller
+- PL031 RTC
+- PL111 LCD display controller
+- Flash memory
+- LAN9118 ethernet
+
+Unimplemented devices:
+
+- SP810 system control block
+- PCI-express
+- USB controller (Philips ISP1761)
+- Local DAP ROM
+- CoreSight interfaces
+- PL301 AXI interconnect
+- SCC
+- System counter
+- HDLCD controller (``vexpress-a15``)
+- SP805 watchdog
+- PL341 dynamic memory controller
+- DMA330 DMA controller
+- PL354 static memory controller
+- BP147 TrustZone Protection Controller
+- TrustZone Address Space Controller
+
+Other differences between the hardware and the QEMU model:
+
+- QEMU will default to creating one CPU unless you pass a different
+  ``-smp`` argument
+- QEMU allows the amount of RAM provided to be specified with the

docs/system/arm/vexpress.rst line 60

Quoted 10 lines
docs/system/arm/vexpress.rst new file +10 -0
+  ``-m`` argument
+- QEMU defaults to providing a CPU which does not provide either
+  TrustZone or the Virtualization Extensions: if you want these you
+  must enable them with ``-machine secure=on`` and ``-machine
+  virtualization=on``
+- QEMU provides 4 virtio-mmio virtio transports; these start at
+  address ``0x10013000`` for ``vexpress-a9`` and at ``0x1c130000`` for
+  ``vexpress-a15``, and have IRQs from 40 upwards. If a dtb is
+  provided on the command line then QEMU will edit it to include
+  suitable entries describing these transports for the guest.

TIL ;-)

Signature · 1 line
Alex Bennée
#10 lore raw

PATCH 4/5 docs/system: Document the various MPS2 models

In reply to Peter Maydell

Add basic documentation of the MPS2 board models.

---
 docs/system/arm/mps2.rst   | 29 +++++++++++++++++++++++++++++
 docs/system/target-arm.rst |  1 +
 MAINTAINERS                |  1 +
 3 files changed, 31 insertions(+)
 create mode 100644 docs/system/arm/mps2.rst
docs/system/arm/mps2.rst new file +29 -0
new file mode 100644
index 00000000000..3a98cb59b0d
@@ -0,0 +1,29 @@
+Arm MPS2 boards (``mps2-an385``, ``mps2-an505``, ``mps2-an511``, ``mps2-an521``)
+================================================================================
+
+These board models all use Arm M-profile CPUs.
+
+The Arm MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger
+FPGA but is otherwise the same as the 2). Since the CPU itself
+and most of the devices are in the FPGA, the details of the board
+as seen by the guest depend significantly on the FPGA image.
+
+QEMU models the following FPGA images:
+
+``mps2-an385``
+  Cortex-M3 as documented in ARM Application Note AN385
+``mps2-an511``
+  Cortex-M3 'DesignStart' as documented in AN511
+``mps2-an505``
+  Cortex-M33 as documented in ARM Application Note AN505
+``mps2-an521``
+  Dual Cortex-M33 as documented in Application Note AN521
+
+Differences between QEMU and real hardware:
+
+- AN385 remapping of low 16K of memory to either ZBT SSRAM1 or to
+  block RAM is unimplemented (QEMU always maps this to ZBT SSRAM1, as
+  if zbt_boot_ctrl is always zero)
+- QEMU provides a LAN9118 ethernet rather than LAN9220; the only guest
+  visible difference is that the LAN9118 doesn't support checksum
+  offloading
docs/system/target-arm.rst +1 -0
index 4779293d731..15bcf9f81f0 100644
@@ -71,6 +71,7 @@ undocumented; you can get a complete list by running
    :maxdepth: 1
 
    arm/integratorcp
+   arm/mps2
    arm/realview
    arm/versatile
    arm/vexpress
MAINTAINERS +1 -0
index 74cff1c3818..ea7bdd359e0 100644
@@ -699,6 +699,7 @@ F: hw/misc/armsse-cpuid.c
 F: include/hw/misc/armsse-cpuid.h
 F: hw/misc/armsse-mhu.c
 F: include/hw/misc/armsse-mhu.h
+F: docs/system/arm/mps2.rst
 
 Musca
 M: Peter Maydell <[email protected]>
Signature · 1 line
2.20.1
Reviewed-by on v1 4/5
#11 lore raw

Re: [PATCH 4/5] docs/system: Document the various MPS2 models

Quoted 2 lines · Peter Maydell

Add basic documentation of the MPS2 board models.

Quoted 71 lines
---
 docs/system/arm/mps2.rst   | 29 +++++++++++++++++++++++++++++
 docs/system/target-arm.rst |  1 +
 MAINTAINERS                |  1 +
 3 files changed, 31 insertions(+)
 create mode 100644 docs/system/arm/mps2.rst
docs/system/arm/mps2.rst new file +29 -0
new file mode 100644
index 00000000000..3a98cb59b0d
@@ -0,0 +1,29 @@
+Arm MPS2 boards (``mps2-an385``, ``mps2-an505``, ``mps2-an511``, ``mps2-an521``)
+================================================================================
+
+These board models all use Arm M-profile CPUs.
+
+The Arm MPS2 and MPS2+ dev boards are FPGA based (the 2+ has a bigger
+FPGA but is otherwise the same as the 2). Since the CPU itself
+and most of the devices are in the FPGA, the details of the board
+as seen by the guest depend significantly on the FPGA image.
+
+QEMU models the following FPGA images:
+
+``mps2-an385``
+  Cortex-M3 as documented in ARM Application Note AN385
+``mps2-an511``
+  Cortex-M3 'DesignStart' as documented in AN511
+``mps2-an505``
+  Cortex-M33 as documented in ARM Application Note AN505
+``mps2-an521``
+  Dual Cortex-M33 as documented in Application Note AN521
+
+Differences between QEMU and real hardware:
+
+- AN385 remapping of low 16K of memory to either ZBT SSRAM1 or to
+  block RAM is unimplemented (QEMU always maps this to ZBT SSRAM1, as
+  if zbt_boot_ctrl is always zero)
+- QEMU provides a LAN9118 ethernet rather than LAN9220; the only guest
+  visible difference is that the LAN9118 doesn't support checksum
+  offloading
docs/system/target-arm.rst +1 -0
index 4779293d731..15bcf9f81f0 100644
@@ -71,6 +71,7 @@ undocumented; you can get a complete list by running
    :maxdepth: 1
 
    arm/integratorcp
+   arm/mps2
    arm/realview
    arm/versatile
    arm/vexpress
MAINTAINERS +1 -0
index 74cff1c3818..ea7bdd359e0 100644
@@ -699,6 +699,7 @@ F: hw/misc/armsse-cpuid.c
 F: include/hw/misc/armsse-cpuid.h
 F: hw/misc/armsse-mhu.c
 F: include/hw/misc/armsse-mhu.h
+F: docs/system/arm/mps2.rst
 
 Musca
 M: Peter Maydell <[email protected]>
Signature · 1 line
2.20.1
#13 lore raw

PATCH 5/5 docs/system: Document Musca boards

In reply to Peter Maydell

Provide a minimal documentation of the Musca boards.

---
 docs/system/arm/musca.rst  | 31 +++++++++++++++++++++++++++++++
 docs/system/target-arm.rst |  1 +
 MAINTAINERS                |  1 +
 3 files changed, 33 insertions(+)
 create mode 100644 docs/system/arm/musca.rst
docs/system/arm/musca.rst new file +31 -0
new file mode 100644
index 00000000000..8375c5008d5
@@ -0,0 +1,31 @@
+Arm Musca boards (``musca-a``, ``musca-b1``)
+============================================
+
+The Arm Musca development boards are a reference implementation
+of a system using the SSE-200 subsystem for embedded. They are
+dual Cortex-M33 systems.
+
+QEMU provides models of the A and B1 variants of this board.
+
+Unimplemented devices:
+
+- SPI
+- |I2C|
+- |I2S|
+- PWM
+- QSPI
+- Timer
+- SCC
+- GPIO
+- eFlash
+- MHU
+- PVT
+- SDIO
+- CryptoCell
+
+Note that (like the real hardware) the Musca-A machine is
+asymmetric: CPU 0 does not have the FPU or DSP extensions,
+but CPU 1 does. Also like the real hardware, the memory maps
+for the A and B1 variants differ significantly, so guest
+software must be built for the right variant.
+
docs/system/target-arm.rst +1 -0
index 15bcf9f81f0..1b86b93c346 100644
@@ -72,6 +72,7 @@ undocumented; you can get a complete list by running
 
    arm/integratorcp
    arm/mps2
+   arm/musca
    arm/realview
    arm/versatile
    arm/vexpress
MAINTAINERS +1 -0
index ea7bdd359e0..f8e0fdb4ef2 100644
@@ -706,6 +706,7 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/arm/musca.c
+F: docs/system/arm/musca.rst
 
 Musicpal
 M: Jan Kiszka <[email protected]>
Signature · 1 line
2.20.1
Reviewed-by on v1 5/5
#14 lore raw

Re: [PATCH 5/5] docs/system: Document Musca boards

Quoted 1 line · Peter Maydell

Provide a minimal documentation of the Musca boards.

Quoted 74 lines
---
 docs/system/arm/musca.rst  | 31 +++++++++++++++++++++++++++++++
 docs/system/target-arm.rst |  1 +
 MAINTAINERS                |  1 +
 3 files changed, 33 insertions(+)
 create mode 100644 docs/system/arm/musca.rst
docs/system/arm/musca.rst new file +31 -0
new file mode 100644
index 00000000000..8375c5008d5
@@ -0,0 +1,31 @@
+Arm Musca boards (``musca-a``, ``musca-b1``)
+============================================
+
+The Arm Musca development boards are a reference implementation
+of a system using the SSE-200 subsystem for embedded. They are
+dual Cortex-M33 systems.
+
+QEMU provides models of the A and B1 variants of this board.
+
+Unimplemented devices:
+
+- SPI
+- |I2C|
+- |I2S|
+- PWM
+- QSPI
+- Timer
+- SCC
+- GPIO
+- eFlash
+- MHU
+- PVT
+- SDIO
+- CryptoCell
+
+Note that (like the real hardware) the Musca-A machine is
+asymmetric: CPU 0 does not have the FPU or DSP extensions,
+but CPU 1 does. Also like the real hardware, the memory maps
+for the A and B1 variants differ significantly, so guest
+software must be built for the right variant.
+
docs/system/target-arm.rst +1 -0
index 15bcf9f81f0..1b86b93c346 100644
@@ -72,6 +72,7 @@ undocumented; you can get a complete list by running
 
    arm/integratorcp
    arm/mps2
+   arm/musca
    arm/realview
    arm/versatile
    arm/vexpress
MAINTAINERS +1 -0
index ea7bdd359e0..f8e0fdb4ef2 100644
@@ -706,6 +706,7 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/arm/musca.c
+F: docs/system/arm/musca.rst
 
 Musicpal
 M: Jan Kiszka <[email protected]>
Signature · 1 line
2.20.1
#15 lore raw

Re: [PATCH 5/5] docs/system: Document Musca boards

In reply to Peter Maydell
Quoted 16 lines · Peter Maydell

Provide a minimal documentation of the Musca boards.

---
  docs/system/arm/musca.rst  | 31 +++++++++++++++++++++++++++++++
  docs/system/target-arm.rst |  1 +
  MAINTAINERS                |  1 +
  3 files changed, 33 insertions(+)

create mode 100644 docs/system/arm/musca.rst

docs/system/arm/musca.rst new file +0 -0
new file mode 100644
index 00000000000..8375c5008d5

docs/system/arm/musca.rst line 5

Quoted 5 lines
docs/system/arm/musca.rst new file +5 -0
@@ -0,0 +1,31 @@
+Arm Musca boards (``musca-a``, ``musca-b1``)
+============================================
+
+The Arm Musca development boards are a reference implementation
+of a system using the SSE-200 subsystem for embedded.

Maybe nitpicking, but this sentence seems unfinished.

" ... for embedded [?]."

Maybe triplicate "systems" again?

Quoted 52 lines

They are

docs/system/arm/musca.rst new file +26 -0
+dual Cortex-M33 systems.
+
+QEMU provides models of the A and B1 variants of this board.
+
+Unimplemented devices:
+
+- SPI
+- |I2C|
+- |I2S|
+- PWM
+- QSPI
+- Timer
+- SCC
+- GPIO
+- eFlash
+- MHU
+- PVT
+- SDIO
+- CryptoCell
+
+Note that (like the real hardware) the Musca-A machine is
+asymmetric: CPU 0 does not have the FPU or DSP extensions,
+but CPU 1 does. Also like the real hardware, the memory maps
+for the A and B1 variants differ significantly, so guest
+software must be built for the right variant.
+
docs/system/target-arm.rst +1 -0
index 15bcf9f81f0..1b86b93c346 100644
@@ -72,6 +72,7 @@ undocumented; you can get a complete list by running
 
     arm/integratorcp
     arm/mps2
+   arm/musca
     arm/realview
     arm/versatile
     arm/vexpress
MAINTAINERS +1 -0
index ea7bdd359e0..f8e0fdb4ef2 100644
@@ -706,6 +706,7 @@ M: Peter Maydell <[email protected]>
  L: [email protected]
  S: Maintained
  F: hw/arm/musca.c
+F: docs/system/arm/musca.rst
 
  Musicpal
  M: Jan Kiszka <[email protected]>
#16 lore raw

Re: [PATCH 5/5] docs/system: Document Musca boards

Quoted 17 lines · Philippe Mathieu-Daudé

docs/system/arm/musca.rst line 5

Quoted 12 lines · Peter Maydell

Provide a minimal documentation of the Musca boards.

docs/system/arm/musca.rst new file +5 -0
@@ -0,0 +1,31 @@
+Arm Musca boards (``musca-a``, ``musca-b1``)
+============================================
+
+The Arm Musca development boards are a reference implementation
+of a system using the SSE-200 subsystem for embedded.

Maybe nitpicking, but this sentence seems unfinished.

Quoted 1 line

" ... for embedded [?]."

That's the name of the IP block:
https://developer.arm.com/docs/101104/latest/introduction/about-the-sse-200

I guess it ought to be capitalized: "SSE-200 Subsystem for Embedded".

thanks
-- PMM

#17 lore raw

Re: [PATCH 5/5] docs/system: Document Musca boards

Quoted 18 lines · Peter Maydell
Quoted 17 lines · Philippe Mathieu-Daudé

docs/system/arm/musca.rst line 5

Quoted 12 lines · Peter Maydell

Provide a minimal documentation of the Musca boards.

docs/system/arm/musca.rst new file +5 -0
@@ -0,0 +1,31 @@
+Arm Musca boards (``musca-a``, ``musca-b1``)
+============================================
+
+The Arm Musca development boards are a reference implementation
+of a system using the SSE-200 subsystem for embedded.

Maybe nitpicking, but this sentence seems unfinished.

Quoted 6 lines
Quoted 1 line

" ... for embedded [?]."

That's the name of the IP block:
https://developer.arm.com/docs/101104/latest/introduction/about-the-sse-200

I guess it ought to be capitalized: "SSE-200 Subsystem for Embedded".

Ah yes, it is clearer.

Quoted 4 lines

thanks
-- PMM

#19 lore raw
In reply to Peter Maydell

Ping for review?

thanks
-- PMM

Quoted 45 lines · Peter Maydell

This patchset adds (minimal) documentation of these Arm board models:

vexpress-a15         ARM Versatile Express for Cortex-A15
vexpress-a9          ARM Versatile Express for Cortex-A9
mps2-an385           ARM MPS2 with AN385 FPGA image for Cortex-M35
mps2-an505           ARM MPS2 with AN505 FPGA image for Cortex-M33
mps2-an511           ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3
mps2-an521           ARM MPS2 with AN521 FPGA image for dual Cortex-M33
musca-a              ARM Musca-A board (dual Cortex-M33)
musca-b1             ARM Musca-B1 board (dual Cortex-M33)

to the system emulator manual.

Patches 1 and 2 are minor tidyup of the board table-of-contents before we start adding new entries with patches 3-5.

I'm aiming more for "at least note that the boards exist" than "fully comprehensive" documentation here -- there are still another 37 Arm board models with no documentation at all...

thanks
-- PMM

Peter Maydell (5):
docs/system: Add 'Arm' to the Integrator/CP document title docs/system: Sort Arm board index into alphabetical order docs/system: Document Arm Versatile Express boards docs/system: Document the various MPS2 models docs/system: Document Musca boards

 docs/system/arm/integratorcp.rst |  4 +--
 docs/system/arm/mps2.rst         | 29 +++++++++++++++
 docs/system/arm/musca.rst        | 31 +++++++++++++++++
 docs/system/arm/vexpress.rst     | 60 ++++++++++++++++++++++++++++++++
 docs/system/target-arm.rst       | 15 ++++----
 MAINTAINERS                      |  3 ++
 6 files changed, 134 insertions(+), 8 deletions(-)
 create mode 100644 docs/system/arm/mps2.rst
 create mode 100644 docs/system/arm/musca.rst
 create mode 100644 docs/system/arm/vexpress.rst

--
2.20.1

#20 lore raw

Hi Peter,

+Markus

Quoted 1 line · Peter Maydell

Ping for review?

For the series:

However I'd rather see the board documentation in the source code, and extract it when building. It'd be harder to miss updating the documentation when modifying the code.

Another way (rather than using external program to extract from source code) can be to add a method/field to MachineClass, and once a build is finished, we could run 'qemu-system-arch -M gendoc' which go thru all machines and display the documentation properly formatted.

Quoted 51 lines

thanks
-- PMM

Quoted 45 lines · Peter Maydell

This patchset adds (minimal) documentation of these Arm board models:

vexpress-a15         ARM Versatile Express for Cortex-A15
vexpress-a9          ARM Versatile Express for Cortex-A9
mps2-an385           ARM MPS2 with AN385 FPGA image for Cortex-M35
mps2-an505           ARM MPS2 with AN505 FPGA image for Cortex-M33
mps2-an511           ARM MPS2 with AN511 DesignStart FPGA image for Cortex-M3
mps2-an521           ARM MPS2 with AN521 FPGA image for dual Cortex-M33
musca-a              ARM Musca-A board (dual Cortex-M33)
musca-b1             ARM Musca-B1 board (dual Cortex-M33)

to the system emulator manual.

Patches 1 and 2 are minor tidyup of the board table-of-contents before we start adding new entries with patches 3-5.

I'm aiming more for "at least note that the boards exist" than "fully comprehensive" documentation here -- there are still another 37 Arm board models with no documentation at all...

thanks
-- PMM

Peter Maydell (5):
docs/system: Add 'Arm' to the Integrator/CP document title docs/system: Sort Arm board index into alphabetical order docs/system: Document Arm Versatile Express boards docs/system: Document the various MPS2 models docs/system: Document Musca boards

  docs/system/arm/integratorcp.rst |  4 +--
  docs/system/arm/mps2.rst         | 29 +++++++++++++++
  docs/system/arm/musca.rst        | 31 +++++++++++++++++
  docs/system/arm/vexpress.rst     | 60 ++++++++++++++++++++++++++++++++
  docs/system/target-arm.rst       | 15 ++++----
  MAINTAINERS                      |  3 ++
  6 files changed, 134 insertions(+), 8 deletions(-)

create mode 100644 docs/system/arm/mps2.rst
create mode 100644 docs/system/arm/musca.rst
create mode 100644 docs/system/arm/vexpress.rst

--
2.20.1

#21 lore raw
Quoted 3 lines · Philippe Mathieu-Daudé

However I'd rather see the board documentation in the source code, and extract it when building. It'd be harder to miss updating the documentation when modifying the code.

I definitely agree in principle; but for the moment at least we can have some documentation...

Quoted 4 lines

Another way (rather than using external program to extract from source code) can be to add a method/field to MachineClass, and once a build is finished, we could run 'qemu-system-arch -M gendoc' which go thru all machines and display the documentation properly formatted.

The documentation needs to include all machines, not just the ones that got compiled into a particular binary, so I'm not sure this will work. I also would prefer it if we avoided having the docs build depend on doing a full binary build -- places like readthedocs will just do a docs build by invoking Sphinx directly, and we'd like the machine docs to be visible there.

thanks
-- PMM

#22 lore raw
Quoted 7 lines · Peter Maydell
Quoted 3 lines · Philippe Mathieu-Daudé

However I'd rather see the board documentation in the source code, and extract it when building. It'd be harder to miss updating the documentation when modifying the code.

I definitely agree in principle; but for the moment at least we can have some documentation...

Yes, thank you very much for this effort!

Quoted 6 lines
Quoted 5 lines

Another way (rather than using external program to extract from source code) can be to add a method/field to MachineClass, and once a build is finished, we could run 'qemu-system-arch -M gendoc' which go thru all machines and display the documentation properly formatted.

Quoted 7 lines

The documentation needs to include all machines, not just the ones that got compiled into a particular binary, so I'm not sure this will work. I also would prefer it if we avoided having the docs build depend on doing a full binary build -- places like readthedocs will just do a docs build by invoking Sphinx directly, and we'd like the machine docs to be visible there.

Sphinx consumes docs/system/$arch/$machine.rst files committed to the repository, and we don't need to build various qemu-system-arch to generate the documentation.

If you work on a particular board, you might end up only building its corresponding qemu-system-ARCH. Maybe we can add an extra-pass once a binary is linked, and re-generate the docs/system/ARCH/$machine.rst files, so if you modified a board and its documentation placeholder in the code, when commiting your code change, you also have to commit the rst changes.

Just brainstorming an idea for now ;)

Quoted 4 lines

thanks
-- PMM

#23 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé

Sphinx consumes docs/system/$arch/$machine.rst files committed to the repository, and we don't need to build various qemu-system-arch to generate the documentation.

If you work on a particular board, you might end up only building its corresponding qemu-system-ARCH. Maybe we can add an extra-pass once a binary is linked, and re-generate the docs/system/ARCH/$machine.rst files, so if you modified a board and its documentation placeholder in the code, when commiting your code change, you also have to commit the rst changes.

I'm not a huge fan of committing generated files to source control... I think I'd prefer an approach that worked via some kind of kerneldoc comments that we pull out and parse using the Sphinx plugin we have for that. (There's more complication than that but roughly I think that would be the kind of approach I'd like to see.)

thanks
-- PMM