LPDDR4 Temperature Sensor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPDDR4 Temperature Sensor

1,846 次查看
philippe_schenk
Contributor IV

Hello,

I saw that it is possible to read out the temperature from the LPDDR4 RAM through MR4.

I would like to know if it is possible to read the LPDDR4 RAM temperature in Linux?

I couldn't find any hint in the SCFW porting kit about that it is possible to read that temperature back. Plus the DRC temperature already present in /sys/class/temperature I assume is only the RAM-Controller temperature sitting in the SoC, right?

Thanks for your answer
Philippe Schenker

0 项奖励
7 回复数

1,829 次查看
philippe_schenk
Contributor IV

I use an i.MX 8 QuadMax Mek with 5.4.70-2.3.0

Edit: @jimmychan I guess you didn't get notified because I missed the proper reply button...

0 项奖励

1,837 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Could you tell me which processor are you using?

Which board and which version of BSP are you using?

0 项奖励

1,803 次查看
philippe_schenk
Contributor IV

Hi @jimmychan pinging you here again as I got a follow-up email from the community and I am not sure wether my edit before triggered a mail to you.

We're searching answers for i.MX 8QXP MEK, i.MX 8 QuadMax MEK, i.MX 8M EVK. We're currently developing on all three SoC variants and I guess the answer for all three is similar. But most important for now is the i.MX 8 QuadMax

Best Regards,
Philippe

0 项奖励

1,272 次查看
shusheer
Contributor II

Did you ever get code working to do this? I'm interested in reading LPDDR4 temperature sensor using i.MX8MPlus, which presumably is similar.

0 项奖励

1,255 次查看
philippe_schenk
Contributor IV

Hi shusheer,

I'm sorry we never really went ahead with this idea.

But just a rough guess would be that this needs to be read out from the SCFW since also the RAM is being setup by the SC Firmware.

Best Regards,
Philippe

0 项奖励

1,795 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Hello,

 

Sorry to tell you that we don't have the example code for reading the MR4.

Basically, we have DDR test tool and the RPA (excel sheet) to configure/tuning the parameters.

For details, please read this link:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8-8X-Family-DDR-Tools-Release/ta-p/...

 

0 项奖励

999 次查看
shusheer
Contributor II

I have done some further digging on this, and am replying so others who find this info save some head-scratching.

It seems that the LPDDR4 temperature sensor is accessible through the MR4 mode register on the memory chip. However, MR4 does not provide raw temperature, it provides a set of bitfields that suggest the appropriate scaling of the memory refresh rate based on the raw temperature. There does not appear to (in general) be a way to get raw temperature measurements from the LPDDR4 module temperature sensor itself.

A representative datasheet describing the process is here:https://www.micron.com/-/media/client/global/documents/products/data-sheet/dram/mobile-dram/low-powe... see page 44 and page 190

So I assume it is usual for the operating system to regularly poll MR4, and then update the processor DDRC refresh registers. One could hook into this process to find out if the LPDDR4 is particularly high or low temperature.

0 项奖励