| #
0c30714b |
| 12-Nov-2021 |
Joseph Chen <chenjh@rock-chips.com> |
dm: scmi: add build control for scmi smccc and clk
There are not scmi clk and smccc agent available for SPL/TPL.
But in SPL/TPL, we still need smccc agent driver to trigger scmi uclass to setup it'
dm: scmi: add build control for scmi smccc and clk
There are not scmi clk and smccc agent available for SPL/TPL.
But in SPL/TPL, we still need smccc agent driver to trigger scmi uclass to setup it's all protocols, then there should be a fake plat-specific scmi clk implementation to take over the clk get/set operation from clk_scmi.c.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ia0ebfa96b2aa6318083ddcd868af9381c74fb80c
show more ...
|
| #
3c685337 |
| 09-Sep-2020 |
Etienne Carriere <etienne.carriere@linaro.org> |
UPSTREAM: firmware: scmi: support Arm SMCCC transport
This change implements a SMCCC transport for SCMI exchanges. This implementation follows the Linux kernel as references implementation for SCMI
UPSTREAM: firmware: scmi: support Arm SMCCC transport
This change implements a SMCCC transport for SCMI exchanges. This implementation follows the Linux kernel as references implementation for SCMI message processing, using the SMT format for communication channel meta-data.
Use of SMCCC transport in SCMI FDT bindings are defined in the Linux kernel DT bindings since v5.8. SMCCC with SMT is implemented in OP-TEE from tag 3.9.0 [2].
Links: [2] https://github.com/OP-TEE/optee_os/commit/a58c4d706d23 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>
(cherry picked from commit 1e35913a2677b1d0511769425a53cd9ae113c238) Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I3f1f28405b00578695087bd0a1b51f1d0e0183f6
show more ...
|
| #
533e551c |
| 09-Sep-2020 |
Etienne Carriere <etienne.carriere@linaro.org> |
UPSTREAM: firmware: scmi: mailbox/smt agent device
This change implements a mailbox transport using SMT format for SCMI exchanges. This implementation follows the Linux kernel and SCP-firmware [1] a
UPSTREAM: firmware: scmi: mailbox/smt agent device
This change implements a mailbox transport using SMT format for SCMI exchanges. This implementation follows the Linux kernel and SCP-firmware [1] as references implementation for SCMI message processing using SMT format for communication channel meta-data.
Use of mailboxes in SCMI FDT bindings are defined in the Linux kernel DT bindings since v4.17.
Links: [1] https://github.com/ARM-software/SCP-firmware 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>
(cherry picked from commit 240720e9052fa7459e4d8a46d508db1ae41ed238) Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I02ed9ea6925d9d90e8b46deecd9137ed78172f94
show more ...
|
| #
1afcdfc6 |
| 09-Sep-2020 |
Etienne Carriere <etienne.carriere@linaro.org> |
UPSTREAM: 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
UPSTREAM: 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>
Conflicts: arch/sandbox/dts/test.dts configs/sandbox_defconfig drivers/firmware/Kconfig drivers/firmware/Makefile test/dm/Makefile
(cherry picked from commit 358599efd827b0ee48af864537cc86facc9167c0) Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I251bf48c2bb60af041e71c5904e0eb73f0243439
show more ...
|