RK3568 OTP划分为Non-Secure OTP和Secure OTP。
其中Non-Secure OTP可在非安全世界中读取,不提供写接口,在kernel端可以读取/sys/bus/nvmem/devices/rockchip-otp0/nvmemw文件获取OTP信息。
对于Secure OTP的读写,请参考附件。
另外,RK3568 Non-Secure OTP的Layout中,system info为:
/* Data cells */
cpu_code: cpu-code@2 {
reg = <0x02 0x2>;
};
otp_cpu_version: cpu-version@8 {
reg = <0x08 0x1>;
bits = <3 3>;
};
mbist_vmin: mbist-vmin@9 {
reg = <0x09 0x1>;
bits = <0 4>;
};
otp_id: id@a {
reg = <0x0a 0x10>;
};
cpu_leakage: cpu-leakage@1a {
reg = <0x1a 0x1>;
};
log_leakage: log-leakage@1b {
reg = <0x1b 0x1>;
};
npu_leakage: npu-leakage@1c {
reg = <0x1c 0x1>;
};
gpu_leakage: gpu-leakage@1d {
reg = <0x1d 0x1>;
};
core_pvtm:core-pvtm@2a {
reg = <0x2a 0x2>;
};