kratsg / ironman

L1Calo Firmware for SoCs
https://ironman.rtfd.io
MIT License
5 stars 3 forks source link

Note to myself #3

Open kratsg opened 8 years ago

kratsg commented 8 years ago

Note that for example, on the zc706, the path to the xadc temperature device is like so:

/sys/devices/soc0/amba@0/f8007100.ps7-xadc/iio:device0/in_temp0_raw
/sys/devices/soc0/amba@0/f8007100.ps7-xadc/iio:device0/in_temp0_offset
/sys/devices/soc0/amba@0/f8007100.ps7-xadc/iio:device0/in_temp0_scale

where (raw+offset)*scale produces the temperature in milliCelsius

kratsg commented 8 years ago

https://gist.github.com/kratsg/21725171cb7bda751697