From 0b69ce6a816c39502941deb90543e23619e02896 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Wed, 6 Jul 2022 18:20:24 +0200 Subject: [PATCH] ARM: dts: stm32mp13: add OP-TEE nodes Add the node for OP-TEE firmware with the associated reserved memory nodes Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32mp13-u-boot.dtsi | 4 ++++ arch/arm/dts/stm32mp131.dtsi | 7 +++++++ arch/arm/dts/stm32mp135f-dk.dts | 11 +++++++++++ 3 files changed, 22 insertions(+) diff --git a/arch/arm/dts/stm32mp13-u-boot.dtsi b/arch/arm/dts/stm32mp13-u-boot.dtsi index 1b5b358690..adc7e67ee5 100644 --- a/arch/arm/dts/stm32mp13-u-boot.dtsi +++ b/arch/arm/dts/stm32mp13-u-boot.dtsi @@ -82,6 +82,10 @@ u-boot,dm-pre-reloc; }; +&optee { + u-boot,dm-pre-reloc; +}; + &pinctrl { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/stm32mp131.dtsi b/arch/arm/dts/stm32mp131.dtsi index 950e172e45..652743fd06 100644 --- a/arch/arm/dts/stm32mp131.dtsi +++ b/arch/arm/dts/stm32mp131.dtsi @@ -27,6 +27,13 @@ interrupt-parent = <&intc>; }; + firmware { + optee: optee { + method = "smc"; + compatible = "linaro,optee-tz"; + }; + }; + clocks { clk_axi: clk-axi { #clock-cells = <0>; diff --git a/arch/arm/dts/stm32mp135f-dk.dts b/arch/arm/dts/stm32mp135f-dk.dts index ee100d108e..31c510f976 100644 --- a/arch/arm/dts/stm32mp135f-dk.dts +++ b/arch/arm/dts/stm32mp135f-dk.dts @@ -23,6 +23,17 @@ reg = <0xc0000000 0x20000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + optee@de000000 { + reg = <0xde000000 0x2000000>; + no-map; + }; + }; + vdd_sd: vdd-sd { compatible = "regulator-fixed"; regulator-name = "vdd_sd"; -- 2.39.5