Skip to content

Commit

Permalink
ARM: dts: stm32: add OP-TEE node and its reserved-memory node for stm…
Browse files Browse the repository at this point in the history
…32mp157

Adds firmware/optee node and adds a reserved-memory node named
optee for the DDR reserved to OP-TEE.

SoC defines a default disabled OP-TEE node.
DK1 defines a default disabled OP-TEE reserved-memory node.
DK2 enables OP-TEE and its reserved memory.
ED1 defines a default disabled OP-TEE reserved-memory node and
enables OP-TEE node.

Change-Id: I7b5d50a27a2a81b7cb510ae14ee96e975e41bb97
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/148795
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Reviewed-by: Alexandre TORGUE <alexandre.torgue@st.com>
  • Loading branch information
etienne-lms authored and atorgue committed Apr 9, 2020
1 parent baceaa6 commit d17e72a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/stm32mp157a-dk1.dts
Expand Up @@ -75,6 +75,12 @@
reg = <0xd4000000 0x4000000>;
no-map;
};

optee_memory: optee@0xde000000 {
reg = <0xde000000 0x02000000>;
no-map;
status = "disabled";
};
};

sram: sram@10050000 {
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/stm32mp157c-dk2.dts
Expand Up @@ -165,3 +165,10 @@
};
};

&optee_memory {
status = "okay";
};

&optee {
status = "okay";
};
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/stm32mp157c-ed1.dts
Expand Up @@ -68,6 +68,11 @@
reg = <0xe8000000 0x8000000>;
no-map;
};

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

sram: sram@10050000 {
Expand Down Expand Up @@ -386,3 +391,7 @@
&usbphyc_port1 {
phy-supply = <&vdd_usb>;
};

&optee {
status = "okay";
};
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/stm32mp157c.dtsi
Expand Up @@ -1787,4 +1787,12 @@
};
};
};

firmware {
optee: optee {
compatible = "linaro,optee-tz";
method = "smc";
status = "disabled";
};
};
};

0 comments on commit d17e72a

Please sign in to comment.