Skip to content

mps2: Add few more peripherals

Philippe Mathieu-Daudé qemu-arm qemu-devel 3 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 2 repliesApplied
  2. v214 patches 0 repliesSuperseded
  3. v17 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- added missing Kconfig select

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/14hw/watchdog/cmsdk-apb-watchdog: Add trace event for lock statushw/watchdog/cmsdk-apb-watchdog.c hw/watchdog/trace-events+2 -00 replies
2/14hw/i2c/versatile_i2c: Add definitions for register addresseshw/i2c/versatile_i2c.c+10 -40 replies
3/14hw/i2c/versatile_i2c: Add SCL/SDA definitionshw/i2c/versatile_i2c.c+5 -20 replies
4/14hw/i2c: Add header for ARM SBCon two-wire serial bus interfaceMAINTAINERS hw/i2c/versatile_i2c.c include/hw/i2c/arm_sbcon_i2c.h+41 -120 replies
5/14hw/arm: Use TYPE_VERSATILE_I2C instead of hardcoded stringhw/arm/realview.c hw/arm/versatilepb.c hw/arm/vexpress.c+6 -30 replies
6/14hw/arm/mps2: Document CMSDK/FPGA APB subsystem sectionshw/arm/mps2.c+4 -10 replies
7/14hw/arm/mps2: Rename CMSDK AHB peripheral regionhw/arm/mps2.c+2 -10 replies
8/14hw/arm/mps2: Add CMSDK APB watchdog devicehw/arm/Kconfig hw/arm/mps2.c+8 -00 replies
9/14hw/arm/mps2: Add CMSDK AHB GPIO peripherals as unimplemented deviceshw/arm/mps2.c+6 -20 replies
10/14hw/arm/mps2: Map the FPGA I/O blockhw/arm/mps2.c+9 -00 replies
11/14hw/arm/mps2: Add SPI deviceshw/arm/Kconfig hw/arm/mps2.c+27 -30 replies
12/14hw/arm/mps2: Add I2C deviceshw/arm/Kconfig hw/arm/mps2.c+9 -00 replies
13/14hw/arm/mps2: Add audio I2S interface as unimplemented devicehw/arm/mps2.c+1 -00 replies
14/14hw/arm/mps2-tz: Use the ARM SBCon two-wire serial bus interfacehw/arm/mps2-tz.c+18 -50 replies

Reviews trailers per patch

2 of 14 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/14
2/14
3/14
4/14
5/14
6/14
7/14R-b
8/14
9/14R-b
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/14] mps2: Add few more peripherals

Few patches while playing with Zephyr on the MPS2:

- clean 'versatile_i2c' a bit,
- describe it as 'ARM SBCon two-wire serial bus interface' which is common on the ARM documentation,
- add watchdog
- added fpgaio with correct prescale clk
- added i2c and spi
- added gpio/i2s as unimp
- dropped the fpgaio push-button patch

Since v2:
- added missing Kconfig select
Since v1:
- addressed Peter review comments

Zephyr ressources used:
https://docs.zephyrproject.org/latest/boards/arm/mps2_an385/doc/index.html

$ git backport-diff -u v2
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/14:[----] [--] 'hw/watchdog/cmsdk-apb-watchdog: Add trace event for lock status' 002/14:[----] [--] 'hw/i2c/versatile_i2c: Add definitions for register addresses' 003/14:[----] [--] 'hw/i2c/versatile_i2c: Add SCL/SDA definitions' 004/14:[----] [--] 'hw/i2c: Add header for ARM SBCon two-wire serial bus interface' 005/14:[----] [--] 'hw/arm: Use TYPE_VERSATILE_I2C instead of hardcoded string' 006/14:[----] [--] 'hw/arm/mps2: Document CMSDK/FPGA APB subsystem sections' 007/14:[----] [--] 'hw/arm/mps2: Rename CMSDK AHB peripheral region' 008/14:[----] [--] 'hw/arm/mps2: Add CMSDK APB watchdog device' 009/14:[----] [--] 'hw/arm/mps2: Add CMSDK AHB GPIO peripherals as unimplemented devices' 010/14:[----] [--] 'hw/arm/mps2: Map the FPGA I/O block'
011/14:[0006] [FC] 'hw/arm/mps2: Add SPI devices'
012/14:[0001] [FC] 'hw/arm/mps2: Add I2C devices'
013/14:[----] [--] 'hw/arm/mps2: Add audio I2S interface as unimplemented device' 014/14:[----] [--] 'hw/arm/mps2-tz: Use the ARM SBCon two-wire serial bus interface'

Based-on: <[email protected]> fpu/softfloat: Silence 'bitwise negation of boolean expression' warning

Philippe Mathieu-Daudé (14):
hw/watchdog/cmsdk-apb-watchdog: Add trace event for lock status hw/i2c/versatile_i2c: Add definitions for register addresses hw/i2c/versatile_i2c: Add SCL/SDA definitions
hw/i2c: Add header for ARM SBCon two-wire serial bus interface hw/arm: Use TYPE_VERSATILE_I2C instead of hardcoded string hw/arm/mps2: Document CMSDK/FPGA APB subsystem sections hw/arm/mps2: Rename CMSDK AHB peripheral region hw/arm/mps2: Add CMSDK APB watchdog device
hw/arm/mps2: Add CMSDK AHB GPIO peripherals as unimplemented devices hw/arm/mps2: Map the FPGA I/O block
hw/arm/mps2: Add SPI devices
hw/arm/mps2: Add I2C devices
hw/arm/mps2: Add audio I2S interface as unimplemented device hw/arm/mps2-tz: Use the ARM SBCon two-wire serial bus interface

 include/hw/i2c/arm_sbcon_i2c.h   | 35 +++++++++++++++++
 hw/arm/mps2-tz.c                 | 23 ++++++++---
 hw/arm/mps2.c                    | 65 ++++++++++++++++++++++++++++++--
 hw/arm/realview.c                |  3 +-
 hw/arm/versatilepb.c             |  3 +-
 hw/arm/vexpress.c                |  3 +-
 hw/i2c/versatile_i2c.c           | 38 ++++++++++---------
 hw/watchdog/cmsdk-apb-watchdog.c |  1 +
 MAINTAINERS                      |  1 +
 hw/arm/Kconfig                   |  8 ++--
 hw/watchdog/trace-events         |  1 +
 11 files changed, 148 insertions(+), 33 deletions(-)
 create mode 100644 include/hw/i2c/arm_sbcon_i2c.h
Signature · 1 line
2.21.3