u-boot-brain/test/dm
Etienne Carriere 358599efd8 firmware: add SCMI agent uclass
This change introduces SCMI agent uclass to interact with a firmware
using the SCMI protocols [1].

SCMI agent uclass currently supports a single method to request
processing of the SCMI message by an identified server. A SCMI message
is made of a byte payload associated to a protocol ID and a message ID,
all defined by the SCMI specification [1]. On return from process_msg()
method, the caller gets the service response.

SCMI agent uclass defines a post bind generic sequence for all devices.
The sequence binds all the SCMI protocols listed in the FDT for that
SCMI agent device. Currently none, but later change will introduce
protocols.

This change implements a simple sandbox device for the SCMI agent uclass.
The sandbox nicely answers SCMI_NOT_SUPPORTED to SCMI messages.
To prepare for further test support, the sandbox exposes a architecture
function for test application to read the sandbox emulated devices state.
Currently supports 2 SCMI agents, identified by an ID in the FDT device
name. The simplistic DM test does nothing yet.

SCMI agent uclass is designed for platforms that embed a SCMI server in
a firmware hosted somewhere, for example in a companion co-processor or
in the secure world of the executing processor. SCMI protocols allow an
SCMI agent to discover and access external resources as clock, reset
controllers and more. SCMI agent and server communicate following the
SCMI specification [1]. This SCMI agent implementation complies with
the DT bindings defined in the Linux kernel source tree regarding
SCMI agent description since v5.8.

Links: [1] https://developer.arm.com/architectures/system-architectures/software-standards/scmi
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-09-30 11:55:23 -04:00
..
acpi_dp.c dm: acpi: Use correct GPIO polarity type in acpi_dp_add_gpio() 2020-09-25 11:27:14 +08:00
acpi.c cmd: acpi: Print revisions in hex format 2020-09-21 16:41:35 +08:00
acpi.h acpi: Support generation of a scope 2020-07-17 14:32:24 +08:00
acpigen.c acpi: Add more support for generating processor tables 2020-09-25 11:27:18 +08:00
adc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
audio.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
axi.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
blk.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
board.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
bootcount.c i2c: eeprom: Use reg property instead of offset and size 2020-08-20 09:49:20 +02:00
bus.c test: gpio: Add tests for the managed API 2020-09-30 11:55:22 -04:00
button.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
cache.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
clk_ccf.c clk: ccf: mux: change the get_rate helper 2020-08-24 11:03:26 +02:00
clk.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
core.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
cpu.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
devres.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
dma.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
dsi_host.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
eth.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
fdtdec.c test: fdtdec: Add test for new no-map fdtdec_add_reserved_memory() parameter 2020-09-22 12:54:13 -06:00
firmware.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
gpio.c test: gpio: Add tests for the managed API 2020-09-30 11:55:22 -04:00
hwspinlock.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
i2c.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
i2s.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
irq.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
k210_pll.c clk: Add K210 pll support 2020-07-01 15:01:21 +08:00
Kconfig test: Move the unit tests to their own menu 2015-05-21 09:16:17 -04:00
led.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
mailbox.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
Makefile firmware: add SCMI agent uclass 2020-09-30 11:55:23 -04:00
mdio_mux.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
mdio.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
misc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
mmc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
nop.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
ofnode.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
ofread.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
osd.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
p2sb.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
panel.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
pch.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
pci_ep.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
pci.c pci: pci-uclass: Add multi entry support for memory regions 2020-08-25 08:01:16 +02:00
phy.c sandbox: dts: Add compatible string for bind-test node 2020-08-22 07:58:39 -06:00
pmc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
pmic.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
power-domain.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
pwm.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
ram.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
regmap.c test: dm: Add tests for regmap managed API and regmap fields 2020-09-30 11:55:23 -04:00
regulator.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
remoteproc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
reset.c test: reset: Add tests for the managed API 2020-09-30 11:55:22 -04:00
rng.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
rtc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
scmi.c firmware: add SCMI agent uclass 2020-09-30 11:55:23 -04:00
serial.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
sf.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
simple-pm-bus.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
smem.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
soc.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
sound.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
spi.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
spmi.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
syscon-reset.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
syscon.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
sysreset.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
tee.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
test-driver.c dm: core: Drop header files from dm/test.h 2020-08-03 22:19:54 -04:00
test-fdt.c test: gpio: Add tests for the managed API 2020-09-30 11:55:22 -04:00
test-main.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
test-uclass.c dm: core: Drop header files from dm/test.h 2020-08-03 22:19:54 -04:00
timer.c timer: Add a test for timer_timebase_fallback 2020-09-30 08:54:45 +08:00
usb.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
video.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
virtio.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
wdt.c dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00