[PATCH v1] thermal: qoriq: add Layerscape on-die TMU
Peng Fan
peng.fan at oss.nxp.com
Thu May 28 03:36:23 CEST 2026
On Wed, May 27, 2026 at 09:04:59AM -0600, Tom Rini wrote:
>On Wed, May 27, 2026 at 03:46:45PM +0200, Vincent Jardin wrote:
>> Add the support for lx2160 and other layerscape for:
>> => temperature list
>> | cluster67-thermal | qoriq_thermal | tmu at 1f80000
>> | ddr1-cluster5-... | qoriq_thermal | tmu at 1f80000
>> ...
>>
>> => temperature get cluster67-thermal
>> cluster67-thermal: 56000 mC
>>
>> It is designed as a generic UCLASS_THERMAL driver for the
>> QorIQ/Layerscape on-die Thermal Monitoring Unit (TMU).
>>
>> It is similar to the "regs_v1" variant already implemented in
>> drivers/thermal/imx_tmu.c, but the i.MX driver depends
>> on <asm/arch/clock.h>, is_imx8m*() arch helpers, and OCOTP fuse
>> reads that do not exist on Layerscape.
>>
>> Rather than #ifdef the QorIQ bits, this driver is a clean Layerscape
>> counterpart binding the standard "fsl,qoriq-tmu" compatible used by
>> the Linux qoriq_thermal driver and by the existing fsl-ls10{28,88}a
>> DTSIs too!
>
>Are there parts of the other driver that could be split out to a new
>file/header and shared? Or are the i.MX portions too deeply embedded and
>cannot be easily abstracted? Thanks!
QorIQ TMU and i.MX8MQ TMU shares same IP, with only minor differences.
As I recall, the differences are in calibration part.
Current imx_thermal driver is too deeply embedded, not in a good shape.
Need to give a look to clean it up.
Thanks,
Peng
>
>--
>Tom
More information about the U-Boot
mailing list