openwrt/target/linux/lantiq
Mathias Kresin 23e3314cad lantiq: fix thermal sensors driver
Read the temperature including the decimale place from the CGU_GPHY1_CR
register.

Decrement the temperature read from the register by 38.0 degree celsius.
The temperature range of the sensor is -38.0 to +154 °C and the register
value 0 is equal to -38.0 °C. This fixes the report of unrealistic
temperatures as seen on all tested boards.

Give the SoC a few milliseconds to get the first temperature value. On
some rare occasions there is no temperature value in the register when
read the first time after activation. This leads to a reported
temperature of -38.0 °C on boot.

Only version 1.2 of the vr9 SoC has a temperature sensor. Add a check
to make sure the driver doesn't load on v1.1 vr9 SoCs.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-10-19 19:55:06 +02:00
..
base-files lantiq: rework VG3503J image 2016-10-19 19:06:15 +02:00
dts lantiq: Sanitize device tree files 2016-10-19 19:55:04 +02:00
files/firmware/lantiq move GPHY FW blobs to non versioned folder 2013-03-14 18:42:21 +00:00
image lantiq: use new build code for DGN3500 2016-10-19 19:06:15 +02:00
patches-4.4 lantiq: fix thermal sensors driver 2016-10-19 19:55:06 +02:00
xrx200 lantiq: switch from 34k to 24k 2016-08-23 11:55:32 +02:00
xway lantiq: switch from 34k to 24k 2016-08-23 11:55:32 +02:00
xway_legacy lantiq: switch from 34k to 24k 2016-08-23 11:55:32 +02:00
config-4.4 lantiq: add cpu temperatur sensor driver for xrx200 2016-08-03 15:30:13 +02:00
Makefile use immediate set in target Makefiles 2016-09-10 15:30:38 +02:00
modules.mk fix i2c-lantiq module 2012-12-16 10:03:18 +00:00