public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 00/12] firmware: scmi: add SCMI base protocol support
@ 2023-07-26  8:37 AKASHI Takahiro
  2023-07-26  8:37 ` [PATCH v2 01/12] scmi: refactor the code to hide a channel from devices AKASHI Takahiro
                   ` (11 more replies)
  0 siblings, 12 replies; 40+ messages in thread
From: AKASHI Takahiro @ 2023-07-26  8:37 UTC (permalink / raw)
  To: trini, sjg; +Cc: etienne.carriere, u-boot, AKASHI Takahiro

This patch series allows users to access SCMI base protocol provided by
SCMI server (platform). It will also be utilized in separate patches
in the future to add sanity/validity checks for other protocols.
See SCMI specification document v3.2 beta[1] for more details about SCMI
base protocol.

What is currently not implemented is
- SCMI_BASE_NOTIFY_ERRORS command and notification callback mechanism

This feature won't be very useful in the current U-Boot environment.

[1] https://developer.arm.com/documentation/den0056/e/?lang=en


Test
====
The patch series was tested on the following platforms:
* sandbox
* qemu-arm64 with OPTEE as SCMI server


Prerequisite:
=============
* This patch series is based on v2023.07-rc and relies on the following
  patch:

[2] https://lists.denx.de/pipermail/u-boot/2023-June/520083.html


Patches:
========
Patch#1-#5: Add SCMI base protocol driver
Patch#6-#9: Add SCMI base protocol device unit test
Patch#10-#12: Add scmi command


Change history:
===============
v2 (Jul, 26, 2023)
* refactor devm_scmi_of_get_channel()/process_msg(), removing uses of ops
  (patch#1)
* use helper functions, removing uses of ops (patch#2,#9,#10)
* add more descriptions in scmi command doc (patch#11)
* remove 'scmi base' sub-command (patch#10,#12)

v1 (Jun, 28, 2023)
* initial release

AKASHI Takahiro (12):
  scmi: refactor the code to hide a channel from devices
  firmware: scmi: implement SCMI base protocol
  firmware: scmi: move scmi_bind_protocols() backward
  firmware: scmi: framework for installing additional protocols
  firmware: scmi: install base protocol to SCMI agent
  sandbox: remove SCMI base node definition from test.dts
  firmware: scmi: fake base protocol commands on sandbox
  test: dm: simplify SCMI unit test on sandbox
  test: dm: add SCMI base protocol test
  cmd: add scmi command for SCMI firmware
  doc: cmd: add documentation for scmi
  test: dm: add scmi command test

 arch/sandbox/dts/test.dts                  |   4 -
 arch/sandbox/include/asm/scmi_test.h       |   7 +-
 cmd/Kconfig                                |   9 +
 cmd/Makefile                               |   1 +
 cmd/scmi.c                                 | 334 +++++++++++
 doc/usage/cmd/scmi.rst                     | 126 ++++
 drivers/clk/clk_scmi.c                     |  27 +-
 drivers/firmware/scmi/Makefile             |   1 +
 drivers/firmware/scmi/base.c               | 637 +++++++++++++++++++++
 drivers/firmware/scmi/sandbox-scmi_agent.c | 379 +++++++++++-
 drivers/firmware/scmi/scmi_agent-uclass.c  | 367 ++++++++++--
 drivers/power/regulator/scmi_regulator.c   |  27 +-
 drivers/reset/reset-scmi.c                 |  19 +-
 include/dm/uclass-id.h                     |   1 +
 include/scmi_agent-uclass.h                |  81 ++-
 include/scmi_agent.h                       |  29 +-
 include/scmi_protocols.h                   | 345 +++++++++++
 test/dm/scmi.c                             | 226 ++++++--
 18 files changed, 2430 insertions(+), 190 deletions(-)
 create mode 100644 cmd/scmi.c
 create mode 100644 doc/usage/cmd/scmi.rst
 create mode 100644 drivers/firmware/scmi/base.c

-- 
2.41.0


^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2023-08-08  8:04 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  8:37 [PATCH v2 00/12] firmware: scmi: add SCMI base protocol support AKASHI Takahiro
2023-07-26  8:37 ` [PATCH v2 01/12] scmi: refactor the code to hide a channel from devices AKASHI Takahiro
2023-07-27  0:50   ` Simon Glass
2023-08-03  9:20     ` Etienne CARRIERE - foss
2023-08-03  9:24   ` Etienne CARRIERE
2023-08-07 10:03     ` AKASHI Takahiro
2023-08-08  8:04       ` Etienne CARRIERE - foss
2023-07-26  8:37 ` [PATCH v2 02/12] firmware: scmi: implement SCMI base protocol AKASHI Takahiro
2023-07-27  0:50   ` Simon Glass
2023-08-03  9:35   ` Etienne CARRIERE
2023-08-08  2:21     ` AKASHI Takahiro
2023-07-26  8:37 ` [PATCH v2 03/12] firmware: scmi: move scmi_bind_protocols() backward AKASHI Takahiro
2023-07-27  0:50   ` Simon Glass
2023-08-03  9:37   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 04/12] firmware: scmi: framework for installing additional protocols AKASHI Takahiro
2023-07-27  0:53   ` Simon Glass
2023-08-03  9:57   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 05/12] firmware: scmi: install base protocol to SCMI agent AKASHI Takahiro
2023-07-27  0:50   ` Simon Glass
2023-07-27  1:07     ` AKASHI Takahiro
2023-07-27  2:44       ` Simon Glass
2023-08-03 10:01       ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 06/12] sandbox: remove SCMI base node definition from test.dts AKASHI Takahiro
2023-08-03 10:02   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 07/12] firmware: scmi: fake base protocol commands on sandbox AKASHI Takahiro
2023-08-03 10:21   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 08/12] test: dm: simplify SCMI unit test " AKASHI Takahiro
2023-08-03 10:23   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 09/12] test: dm: add SCMI base protocol test AKASHI Takahiro
2023-07-27  0:53   ` Simon Glass
2023-08-03 10:25   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 10/12] cmd: add scmi command for SCMI firmware AKASHI Takahiro
2023-07-27  0:53   ` Simon Glass
2023-08-03 10:28   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 11/12] doc: cmd: add documentation for scmi AKASHI Takahiro
2023-07-27  0:53   ` Simon Glass
2023-08-03 10:31   ` Etienne CARRIERE
2023-07-26  8:38 ` [PATCH v2 12/12] test: dm: add scmi command test AKASHI Takahiro
2023-07-27  0:53   ` Simon Glass
2023-08-03 11:36   ` Etienne CARRIERE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox