Polrfire SoC Temperature driver #494
Replies: 1 comment 2 replies
-
Hey @MarkAtMicrochip :) theres no built in driver for doing this unfortunately. There are two ways you can access the TVS, either using devmem and reading via the SCB (system controller bus), you can find the registers described in the PolarFire SoC Register map, in MPFS Instance Map -> PFSOC_CONTROL_SCB: Note the addresses shown here should have 0x3000_0000 added on, e.g TVS_CONTROL is at 0x37020008 not 0x07020008, you need the 0x3... to access the SCB. The alternative option is to use the TVS fabric macro (it appears as an IP core in your design) and connect it via a FIC to read the values. Personally I prefer this approach as you can use the core with other parts of your design and raise interrupts from it etc. If you would like to go this route please open a tech support case and we could provide you with an APB wrapper for the IP core to connect it up easier. |
Beta Was this translation helpful? Give feedback.
-
Is there a driver for reading the on-die temperature sensor in Linux? I can't seem to find what I'm looking for in the documentation. I know that the TVS (Temperature and Voltage Sensor) block holds the 16-bit temperature value. However, I don't know whether there's a way for the MSS to read it and whether we have it enabled in our Linux build. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions