[PATCH v23 1/6] dt-bindings: remoteproc: st,stm32-rproc: Add st,rproc-tee
Arnaud Pouliquen
arnaud.pouliquen at foss.st.com
Wed Dec 2 06:48:17 PST 2026
An STM32 remote processor can be controlled in two ways, depending on
how the secure firmware partitions the system:
- by the non-secure world, which loads the firmware and drives the MCU
reset and hold-boot controls directly (existing binding);
- by the secure firmware (OP-TEE), which authenticates and loads the
firmware and owns the MCU reset and hold-boot controls. These are then
not accessible from the non-secure world.
This ownership is defined per remote processor by the secure firmware
configuration: the same STM32MP15 can run either configuration depending
on the secure services.
Add st,rproc-tee, a reference to the OP-TEE node plus the identifier of
the remote processor in the secure firmware. When it is present, resets,
hold boot and the TrustZone syscon must not be described.
Existing DTS without st,rproc-tee are unaffected: resets stays required
for them.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen at foss.st.com>
---
Changes in v23:
- st,rproc-tee now references the linaro,optee-tz node instead of a
dedicated TA node; remoteproc-tee.yaml (v22 1/7) is dropped.
- Rework st,rproc-tee description to describe the secure firmware
ownership.
- Forbid st,syscfg-tz when st,rproc-tee is present.
- Example: drop the firmware node and optional syscon properties, use
4-space indentation.
- v22: https://lore.kernel.org/all/20260414152904.1679724-3-arnaud.pouliquen@foss.st.com/
Changes in v22:
- New patch: the st,stm32mp1-m4-tee compatible (v21) is replaced by the
st,rproc-tee property referencing the OP-TEE remoteproc service.
---
.../bindings/remoteproc/st,stm32-rproc.yaml | 50 ++++++++++++++++++----
1 file changed, 41 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
index 843679c557e7..0fae14952ddb 100644
--- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
@@ -143,24 +143,48 @@ properties:
maxItems: 1
description: Default name of the remote processor firmware.
+ st,rproc-tee:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description:
+ Present when the remote processor lifecycle (firmware authentication
+ and loading, start/stop, reset and hold boot) is owned by the secure
+ firmware. Absent when the non-secure world controls the remote processor
+ directly.
+ items:
+ - items:
+ - description: phandle to the OP-TEE firmware node
+ - description: remote processor identifier assigned by the secure
+ firmware
+
required:
- compatible
- reg
- - resets
allOf:
- if:
- properties:
- reset-names:
- not:
- contains:
- const: hold_boot
- then:
required:
- - st,syscfg-holdboot
- else:
+ - st,rproc-tee
+ then:
properties:
+ resets: false
+ reset-names: false
st,syscfg-holdboot: false
+ st,syscfg-tz: false
+ else:
+ required:
+ - resets
+ if:
+ properties:
+ reset-names:
+ not:
+ contains:
+ const: hold_boot
+ then:
+ required:
+ - st,syscfg-holdboot
+ else:
+ properties:
+ st,syscfg-holdboot: false
additionalProperties: false
@@ -192,5 +216,13 @@ examples:
st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
};
+ - |
+ m4 at 10000000 {
+ compatible = "st,stm32mp1-m4";
+ reg = <0x10000000 0x40000>,
+ <0x30000000 0x40000>,
+ <0x38000000 0x10000>;
+ st,rproc-tee = <&optee 0>;
+ };
...
--
2.43.0
More information about the linux-arm-kernel
mailing list