BSEC node can not retireve OTP data
Hello everyone,
We have a custom board based on stm32mp157c. We have a working bsp, which have tf-a 2.2 and u-boot 2020 version. Currently we are updating tf-a to 2.6 and u-boot to 2022. In our board we have burned mac address in the otp and we can read the mac address from otp using the old tf-a and u-boot version.
But currently we can not read otp from the using the current version. It is showing following message while retrieving mac-address from the otp.
invalid MAC address 0 in OTP 00:00:00:00:00:00
I have following device tree configuration in the optee.
&bsec {
status = "okay";
ethernet_mac_address@e4 {
reg = <0xe4 0x8>;
st,non-secure-otp;
};
ethernet_mac1_address@ec {
reg = <0xec 0x8>;
st,non-secure-otp;
};
ethernet_mac2_address@f4 {
reg = <0xf4 0x8>;
st,non-secure-otp;
};
board_id@fc {
reg = <0xfc 0x4>;
st,non-secure-otp;
};
user_otp@100 {
reg = <0x100 0x80>;
st,non-secure-otp;
};
};
In u-boot environment if I give "stboard" command I get following reply:
STM32MP> stboard
Board : OTP board FREE
OTP 59 NOT locked !
Can anyone help me to solve this issue? Thanks in advance.
N.B: Using random mac address and setting the mac-address manually is not a feasible solution for me. I must need to retrieve the mac address from the otp.
