[PATCH v6 4/5] thermal/drivers/sun8i: Add support for A523 THS0/1 controllers
Chen-Yu Tsai
wens at kernel.org
Sun Sep 20 03:02:45 PDT 2026
On Sun, Sep 13, 2026 at 10:56 PM Mikhail Kalashnikov <iuncuim at gmail.com> wrote:
>
> From: Mikhail Kalashnikov <iuncuim at gmail.com>
>
> The A523 processor has two temperature controllers, THS0 and THS1.
> THS0 has only one temperature sensor, which is located in the DRAM
> controller. THS1 does have 4 sensors:
> ths1_0 - "big" cores
> ths1_1 - "little" cores
> ths1_2 - gpu
> ths1_3 - npu
>
> The user manual for the T527 processor describes 4 sensors, whereas
> the one for the A523 describes only 3. As additional information, the BSP
> driver was used, in which the value SUN55IW3_CAL_COM(5000) is used as
> the calibration value in the formula; in the mainline driver it is
> treated as the ft_deviation value. Also, in the BSP driver the NPU sensor
> is used for both the GPU and the NPU — its actual purpose is unclear;
> both sensors are functional and show temperature changes depending on
> load.
>
> Signed-off-by: Mikhail Kalashnikov <iuncuim at gmail.com>
Reviewed-by: Chen-Yu Tsai <wens at kernel.org>
I think we can ignore Sashiko's concerns for this patch.
1. calibration likely happens at room temperature
2. it is not the drivers responsibility to guard against incorrect
device trees
More information about the linux-arm-kernel
mailing list