dts: ARM: stm32mp15: add OP-TEE node in u-boot DTSI
authorEtienne Carriere <etienne.carriere@linaro.org>
Fri, 5 Jun 2020 07:24:30 +0000 (09:24 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 16 Jun 2020 08:39:28 +0000 (10:39 +0200)
Add OP-TEE firmware node in stm32mp15 U-Boot DTSI. This node is
needed since commit [1] that changed U-Boot/stm32mp15 to detect
OP-TEE availability by probing the resource instead of relying on
U-Boot configuration. The software sequence implemented by [1] is
fine but U-Boot DTS/DTSI files were not updated accordingly since,
hence OP-TEE presence is never detected by U-Boot, preventing Linux
kernel from using OP-TEE resources.

For consistency and to synchronize stm32mp15 DTSI files (excluding
U-Boot specific DTSI files) with the Linux kernel ones, this change
also moves the OP-TEE reserved memory nodes from board generic DTSI
files to U-Boot specific board DTSI files.

Link: [1] commit 43df0a159df6 ("stm32mp1: dynamically detect op-tee presence")
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ed1.dts
arch/arm/dts/stm32mp15xx-dkx.dtsi

index c52abeb1e7fcdc930de7c0fed70b575ca6648ec4..3fedb6f1e1ddcf527eb538801674f4b0cb90f11b 100644 (file)
                st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
                st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
        };
+
+       firmware {
+               optee {
+                       compatible = "linaro,optee-tz";
+                       method = "smc";
+               };
+       };
+
+       reserved-memory {
+               optee@de000000 {
+                       reg = <0xde000000 0x02000000>;
+                       no-map;
+               };
+       };
+
        led {
                red {
                        label = "error";
index 84af7fa47b78a54744a69850279bf11232fa8939..a07c5854154cee55613164dfa2ef1b010ac0e370 100644 (file)
                st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
        };
 
+       firmware {
+               optee {
+                       compatible = "linaro,optee-tz";
+                       method = "smc";
+               };
+       };
+
+       reserved-memory {
+               optee@fe000000 {
+                       reg = <0xfe000000 0x02000000>;
+                       no-map;
+               };
+       };
+
        led {
                red {
                        label = "error";
index 4fb71100f50471cc1a4e02d08ff81080646b6406..186dc46754432bcf9f3665fd8f92fd83ac5e8b7d 100644 (file)
                        reg = <0xe8000000 0x8000000>;
                        no-map;
                };
-
-               optee@fe000000 {
-                       reg = <0xfe000000 0x02000000>;
-                       no-map;
-               };
        };
 
        aliases {
index 812e370ee4079358eec670c9a51dd91856c1a15b..7589c6f9dc5a44c263ca9de7506be7b4e396ba19 100644 (file)
                        reg = <0xd4000000 0x4000000>;
                        no-map;
                };
-
-               optee@de000000 {
-                       reg = <0xde000000 0x02000000>;
-                       no-map;
-               };
        };
 
        led {