mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/6] firmware: arm_scmi: add OP-TEE transport support
Date: Mon, 27 Nov 2023 07:40:28 +0100	[thread overview]
Message-ID: <20231127064034.2206788-1-a.fatoum@pengutronix.de> (raw)

STM32MP15 in trusted mode and STM32MP13 by default use OP-TEE as secure
monitor and some resets, clocks and voltage regulators are off-limits
to the normal world.

This series syncs barebox SCMI support with v6.6 and adds OP-TEE as
transport alongside SMCCC. This series has been tested on:

  - STM32MP15 + OP-TEE + OP-TEE shm
  - STM32MP13 + OP-TEE + OP-TEE shm
  - STM32MP15 + OP-TEE + CFG_STM32MP1_SCMI_SIP
  - STM32MP15 + TF-A as SCMI provider (no OP-TEE)

This series depends on the OP-TEE infrastructure added in
<M20231127063559.2205776-1-a.fatoum@pengutronix.de>

Ahmad Fatoum (6):
  firmware: arm_scmi: sync with Linux v6.6
  ARM: dts: stm32mp: dk1/2: build SCMI-enabled device tree
  nvmem: bsec: add support for STM32 bsec pseudo TA
  ARM: dts: stm32mp: ev1: build extra device tree with SCMI
  ARM: dts: stm32mp: add dtsi for SMC SiP-based SCMI
  ARM: dts: stm32mp: lxa-mc1: build SCMI-enabled DT

 arch/arm/dts/Makefile                      |    7 +-
 arch/arm/dts/stm32mp1-scmi-smc.dtsi        |   49 +
 arch/arm/dts/stm32mp157a-dk1-scmi.dts      |    4 +
 arch/arm/dts/stm32mp157c-dk2-scmi.dts      |    4 +
 arch/arm/dts/stm32mp157c-ev1-scmi.dts      |   20 +
 arch/arm/dts/stm32mp157c-lxa-mc1-scmi.dts  |   63 +
 drivers/clk/clk-scmi.c                     |  100 +-
 drivers/firmware/Kconfig                   |   12 +-
 drivers/firmware/arm_scmi/Kconfig          |   86 +
 drivers/firmware/arm_scmi/Makefile         |   18 +-
 drivers/firmware/arm_scmi/base.c           |   85 +-
 drivers/firmware/arm_scmi/bus.c            |  356 ++++-
 drivers/firmware/arm_scmi/clock.c          |  292 ++--
 drivers/firmware/arm_scmi/common.h         |  315 ++--
 drivers/firmware/arm_scmi/driver.c         | 1668 +++++++++++++-------
 drivers/firmware/arm_scmi/msg.c            |   93 ++
 drivers/firmware/arm_scmi/optee.c          |  614 +++++++
 drivers/firmware/arm_scmi/power.c          |  229 +++
 drivers/firmware/arm_scmi/protocols.h      |  325 ++++
 drivers/firmware/arm_scmi/reset.c          |   67 +-
 drivers/firmware/arm_scmi/scmi_pm_domain.c |  135 ++
 drivers/firmware/arm_scmi/sensors.c        |  936 +++++++++++
 drivers/firmware/arm_scmi/shmem.c          |   53 +-
 drivers/firmware/arm_scmi/smc.c            |   86 +-
 drivers/firmware/arm_scmi/voltage.c        |  204 ++-
 drivers/nvmem/Kconfig                      |    6 +
 drivers/nvmem/Makefile                     |    1 +
 drivers/nvmem/bsec.c                       |  133 +-
 drivers/nvmem/stm32-bsec-optee-ta.c        |  298 ++++
 drivers/nvmem/stm32-bsec-optee-ta.h        |   85 +
 drivers/regulator/scmi-regulator.c         |   13 +-
 drivers/reset/reset-scmi.c                 |    2 +-
 include/linux/scmi_protocol.h              |   94 +-
 33 files changed, 5216 insertions(+), 1237 deletions(-)
 create mode 100644 arch/arm/dts/stm32mp1-scmi-smc.dtsi
 create mode 100644 arch/arm/dts/stm32mp157a-dk1-scmi.dts
 create mode 100644 arch/arm/dts/stm32mp157c-dk2-scmi.dts
 create mode 100644 arch/arm/dts/stm32mp157c-ev1-scmi.dts
 create mode 100644 arch/arm/dts/stm32mp157c-lxa-mc1-scmi.dts
 create mode 100644 drivers/firmware/arm_scmi/Kconfig
 create mode 100644 drivers/firmware/arm_scmi/msg.c
 create mode 100644 drivers/firmware/arm_scmi/optee.c
 create mode 100644 drivers/firmware/arm_scmi/power.c
 create mode 100644 drivers/firmware/arm_scmi/protocols.h
 create mode 100644 drivers/firmware/arm_scmi/scmi_pm_domain.c
 create mode 100644 drivers/firmware/arm_scmi/sensors.c
 create mode 100644 drivers/nvmem/stm32-bsec-optee-ta.c
 create mode 100644 drivers/nvmem/stm32-bsec-optee-ta.h

-- 
2.39.2




             reply	other threads:[~2023-11-27  6:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27  6:40 Ahmad Fatoum [this message]
2023-11-27  6:40 ` [PATCH 1/6] firmware: arm_scmi: sync with Linux v6.6 Ahmad Fatoum
2023-11-27  6:40 ` [PATCH 2/6] ARM: dts: stm32mp: dk1/2: build SCMI-enabled device tree Ahmad Fatoum
2023-11-27  6:40 ` [PATCH 3/6] nvmem: bsec: add support for STM32 bsec pseudo TA Ahmad Fatoum
2023-11-27  6:40 ` [PATCH 4/6] ARM: dts: stm32mp: ev1: build extra device tree with SCMI Ahmad Fatoum
2023-11-27  6:40 ` [PATCH 5/6] ARM: dts: stm32mp: add dtsi for SMC SiP-based SCMI Ahmad Fatoum
2023-11-27  6:40 ` [PATCH 6/6] ARM: dts: stm32mp: lxa-mc1: build SCMI-enabled DT Ahmad Fatoum
2023-12-05  7:29 ` [PATCH 0/6] firmware: arm_scmi: add OP-TEE transport support Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231127064034.2206788-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox