Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
573 Discussions

SDM Mailbox access in intel agilex 5

Prasannaijayakumar
597 Views

I am trying to read the voltage sensor values in intel agilex5 SDM through hwmon.

My assumption is that we have to send a HWMON READVOLT command as a SMC call to ATF.

ATF will takes care of the mailbox communication to SDM and provide the response to HPS through the same SMC call.

Please correct me if i am wrong. 

 

0 Kudos
2 Replies
Farabi
Employee
536 Views

Hello,


Please try to use Configuration Debugger in Quartus. It is easiest way to view your voltage sensors reading and temperature sensors reading in one dashboard.


regards,

Farabi


0 Kudos
TiensungA_Altera
Employee
293 Views

Yes, that is correct. ATF is the middleman for all the mailbox communication to SDM.

The HPS HWMON software driver sends the SMC Call to ATF when then sends the HWMON  READVOLT to SDM. 

Make sure your Linux OS build has CONFIG_SENSORS_SOC64=y.

 

On Linux check if the HWMON driver is probed successful

root@agilex:/# dmesg | grep "soc64"

[    1.268886] soc64_hwmon_probe

[    1.271949] soc64_hwmon_probe Initialized 1 temperature and 6 voltage channels

[    1.271957] soc64-hwmon soc:firmware:hwmon: Initialized 1 temperature and 6 voltage channels

 

Read the temperature or voltages like this

  ~#  cat  /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp1_input

78125

~#  cat  /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp2_input

82125

~#  cat  /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp3_input

80875

:~#  cat  /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp4_input

76375

Reply