Skip to content

Commit

Permalink
dts: ARM: stm32mp15: add OP-TEE node in u-boot DTSI
Browse files Browse the repository at this point in the history
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 43df0a1 ("stm32mp1: dynamically detect op-tee presence")
Signed-off-by: Etienne Carriere <[email protected]>
Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
  • Loading branch information
etienne-lms authored and patrickdelaunay committed Jun 16, 2020
1 parent 164873a commit 9e69696
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
15 changes: 15 additions & 0 deletions arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
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";
Expand Down
14 changes: 14 additions & 0 deletions arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
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";
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/dts/stm32mp157c-ed1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@
reg = <0xe8000000 0x8000000>;
no-map;
};

optee@fe000000 {
reg = <0xfe000000 0x02000000>;
no-map;
};
};

aliases {
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/dts/stm32mp15xx-dkx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
reg = <0xd4000000 0x4000000>;
no-map;
};

optee@de000000 {
reg = <0xde000000 0x02000000>;
no-map;
};
};

led {
Expand Down

0 comments on commit 9e69696

Please sign in to comment.