This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am437x internal thermal sensor - bandgap not working, reading 0

Hi

I am trying to get the cpu temp via the bandgap module but it reads always 0

I basicly implemented this patch:

github.com/beagleboard/meta-beagleboard/blob/master/common-bsp/recipes-kernel/linux/linux-mainline-3.8/resources/0021-hwmon-add-driver-for-the-AM335x-bandgap-temperature-.patch


and added it to my dts.


So the bandgap module loads fine and access the regs as planned .. but nor the driver or even direct devmem access reads out anything else then 0

root@am437x-evm:~# devmem2 0x44e10448 w
b/dev/mem opened.
Memory mapped at address 0xb6fb0000.
Read at address  0x44E10448 (0xb6fb0448): 0x0000001E
root@am437x-evm:~# devmem2 0x44e10449 b
/dev/mem opened.
Memory mapped at address 0xb6f00000.
Read at address  0x44E10449 (0xb6f00449): 0x00


cat /sys/devices/44000000.ocp/44e10448.bandgap/temp1_input
0

Any hints ? There is nothing about this in the ERRATA or so

Regards Rob