summaryrefslogtreecommitdiff
path: root/fdts/stm32mp157c-ed1.dts
diff options
context:
space:
mode:
authorNicolas Le Bayon <nicolas.le.bayon@st.com>2020-09-25 17:25:09 +0200
committerYann Gautier <yann.gautier@st.com>2022-01-28 18:01:46 +0100
commitff8767cbfc2bb851a2f6cc32fbe3693ddbfb7d12 (patch)
tree2752f695f2390a36b6f74ea1c8720c57840546c9 /fdts/stm32mp157c-ed1.dts
parentdfbdbd0625990267c6742268118ea748e77c6123 (diff)
downloadarm-trusted-firmware-ff8767cbfc2bb851a2f6cc32fbe3693ddbfb7d12.tar.gz
feat(stm32mp1-fdts): add nvmem_layout node and OTP definitions
A new nvmem_layout node includes nvmem platform-dependent layout information, such as OTP NVMEM cell lists (phandle, name). This list allows easy access to OTP offsets defined in BSEC node, where more OTP definitions with offsets in bytes and length have been added (replace hard-coded values). Each board may redefine this list, especially for board_id info. Change-Id: I910ae671b3bf3320ee6500fecc9ec335ae67bbda Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'fdts/stm32mp157c-ed1.dts')
-rw-r--r--fdts/stm32mp157c-ed1.dts22
1 files changed, 21 insertions, 1 deletions
diff --git a/fdts/stm32mp157c-ed1.dts b/fdts/stm32mp157c-ed1.dts
index 5c9818fab..2de90d8c4 100644
--- a/fdts/stm32mp157c-ed1.dts
+++ b/fdts/stm32mp157c-ed1.dts
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
- * Copyright (c) 2017-2021, STMicroelectronics - All Rights Reserved
+ * Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved
* Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
*/
/dts-v1/;
@@ -196,6 +196,26 @@
status = "okay";
};
+&nvmem_layout {
+ nvmem-cells = <&cfg0_otp>,
+ <&part_number_otp>,
+ <&monotonic_otp>,
+ <&nand_otp>,
+ <&uid_otp>,
+ <&package_otp>,
+ <&hw2_otp>,
+ <&board_id>;
+
+ nvmem-cell-names = "cfg0_otp",
+ "part_number_otp",
+ "monotonic_otp",
+ "nand_otp",
+ "uid_otp",
+ "package_otp",
+ "hw2_otp",
+ "board_id";
+};
+
&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;