summaryrefslogtreecommitdiff
path: root/fdts/stm32mp157c-security.dtsi
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-03-11 10:04:38 +0100
committerYann Gautier <yann.gautier@st.com>2019-03-11 10:09:34 +0100
commit83f62c877b3096f259581043d1369cbe6b8da489 (patch)
tree539eae344a7dcb5f00de550bf30a54d770798e93 /fdts/stm32mp157c-security.dtsi
parentc48d02bade88b07fa7f43aa44e5217f68e5d047f (diff)
fdts: stm32mp1: add bsec node
This node is added in a new file stm32mp157c-security.dtsi. This node includes OTPs that should be shadowed and made readable to non secure world. Explicitly add status and secure-status, as these OTPs are accessible by secure and non-secure world. The stgen node is also moved to this file. Change-Id: I3c89a01588d2e411fecfc44997e1c5df2fc37cad Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'fdts/stm32mp157c-security.dtsi')
-rw-r--r--fdts/stm32mp157c-security.dtsi34
1 files changed, 34 insertions, 0 deletions
diff --git a/fdts/stm32mp157c-security.dtsi b/fdts/stm32mp157c-security.dtsi
new file mode 100644
index 00000000..fb04e7dd
--- /dev/null
+++ b/fdts/stm32mp157c-security.dtsi
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2017-2019, STMicroelectronics - All Rights Reserved
+ *
+ * SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause
+ */
+
+/ {
+ soc {
+ stgen: stgen@5C008000 {
+ compatible = "st,stm32-stgen";
+ reg = <0x5C008000 0x1000>;
+ status = "okay";
+ };
+ };
+};
+
+&bsec {
+ mac_addr: mac_addr@e4 {
+ reg = <0xe4 0x6>;
+ status = "okay";
+ secure-status = "okay";
+ };
+ /* Spare field to align on 32-bit OTP granularity */
+ spare_ns_ea: spare_ns_ea@ea {
+ reg = <0xea 0x2>;
+ status = "okay";
+ secure-status = "okay";
+ };
+ board_id: board_id@ec {
+ reg = <0xec 0x4>;
+ status = "okay";
+ secure-status = "okay";
+ };
+};