Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 41b4cd9d authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

thermal: tsens: Add Temperature sensor driver



Temperature sensor (TSENS) driver registers with
the of_thermal framework to provide sysfs interface
to thermal clients to set trips and read temperature
from supported TSENS temperature.

The driver has a general API for supported operations
needed as part of registering with of_thermal such as
reading temperature and setting thresholds. These
functions call into supported controller for the
platform to program the thresholds and enable
the controller for temperature monitoring.
Minor controller updates can be abstracted as a
platform data within the TSENS controller driver.

The driver also supports debug capabilities as a
separate interface such as tracing temperature
reads done by individual clients for sensors and
tracing the time when programmed threshold interrupts
are tripped.

Change-Id: I6678cbe9ee370fba05263199cb1b5ccc3a4f7700
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 436b4a5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment