Re: [PATCH v3 16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
From: Muzaffer Kadir
Date: Tue Sep 29 2026 - 08:15:32 EST
Hi Daniel,
On Tue, 29 Sep 2026 09:11:28 +0200, Daniel Lezcano wrote:
> On 9/21/26 20:19, Muzaffer Kadir via B4 Relay wrote:
>> From: Muzaffer Kadir <muzafferkadir@xxxxxxxxxxxxxx>
>>
>> Add MSM8952 support for tsens.
>>
>> Downstream does a lot of advanced things with calculations.
>> But seems like using tsens-v1 directly works too.
>
> Can you elaborate a bit the changelog please ?
>
> Thanks
>
MSM8952 has 11 sensors
and 3200 default slope (according to downstream)
For tests, this is the table for readings:
tsens sensor 0 1 2 3 4 5 6 7 8 9 10
TWRP 32 31 29 28 28 31 30 30 30 32 30
this patch 31 29 31 29 29 31 30 31 31 30 30
Both are read from same device, one after the other,
First upstream then TWRP.
2 degree difference seems reasonable in my idea,
as there is a reboot process happens in between reads and
downstream has more power saving features than this port.
I don't know any way to independently measure temperature.
I reused offsets and slope from downstream.
My commit message wasn't good, I will expand the
commit message by v4.
Best regards,
Muzaffer Kadir