[PATCH v2 6/9] thermal/drivers/mediatek/lvts: Add support for ATP mode
Fei Shao
fshao at chromium.org
Wed Jul 30 21:25:46 PDT 2025
On Wed, Jul 30, 2025 at 11:40 PM Laura Nao <laura.nao at collabora.com> wrote:
>
> MT8196/MT6991 uses ATP (Abnormal Temperature Prevention) mode to detect
> abnormal temperature conditions, which involves reading temperature data
> from a dedicated set of registers separate from the ones used for
> immediate and filtered modes.
>
> Add support for ATP mode and its relative registers to ensure accurate
> temperature readings and proper thermal management on MT8196/MT6991
> devices.
>
> While at it, convert mode defines to enum.
>
> Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>
> Signed-off-by: Laura Nao <laura.nao at collabora.com>
It's not visible in this patch, but a heads-up that I see
lvts_ctrl_start() also depends on whether lvts is in immediate mode. I
wonder if anything is needed there for ATP mode e.g. a new
sensor_atp_bitmap.
Feel free to ignore if this is a false alarm.
Regards,
Fei
More information about the Linux-mediatek
mailing list