On Sat, May 29, 2021 at 08:09:52PM +0300, Dmitry Osipenko wrote: > All NVIDIA Tegra30 SoCs have a two-channel on-chip sensor unit which > monitors temperature and voltage of the SoC. Sensors control CPU frequency > throttling, which is activated by hardware once preprogrammed temperature > level is breached, they also send signal to Power Management controller to > perform emergency shutdown on a critical overheat of the SoC die. Add > driver for the Tegra30 TSENSOR module, exposing it as a thermal sensor > and a cooling device. > > Tested-by: Andreas Westman Dorcsak <hedmoo@xxxxxxxxx> # Asus TF700T > Tested-by: Maxim Schwalm <maxim.schwalm@xxxxxxxxx> # Asus TF700T > Tested-by: Svyatoslav Ryhel <clamor95@xxxxxxxxx> # Asus TF201T > Tested-by: Ihor Didenko <tailormoon@xxxxxxxxxx> # Asus TF300T > Tested-by: Ion Agorria <ion@xxxxxxxxxxx> # Asus TF201T > Tested-by: Matt Merhar <mattmerhar@xxxxxxxxxxxxxx> # Ouya > Tested-by: Peter Geis <pgwipeout@xxxxxxxxx> # Ouya > Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx> > --- > drivers/thermal/tegra/Kconfig | 7 + > drivers/thermal/tegra/Makefile | 1 + > drivers/thermal/tegra/tegra30-tsensor.c | 736 ++++++++++++++++++++++++ > 3 files changed, 744 insertions(+) > create mode 100644 drivers/thermal/tegra/tegra30-tsensor.c Acked-by: Thierry Reding <treding@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature