thermal: imx_tmu: Always set thermal trips from fuses
authorPrimoz Fiser <primoz.fiser@norik.com>
Wed, 15 Oct 2025 06:33:47 +0000 (08:33 +0200)
committerFabio Estevam <festevam@gmail.com>
Thu, 30 Oct 2025 15:38:53 +0000 (12:38 -0300)
commit8690133debf5d2caa624a658ac33fb43b9329bbd
tree2c7e8c450cdc7d96aba3d2c1c8a87b8620c38430
parentd6737daa206d8622e109c22623a29a1e53f33c7e
thermal: imx_tmu: Always set thermal trips from fuses

NXP i.MX SoCs are available in different temperature grades. By default,
device-tree contains only thermal trips for consumer grade parts. On the
other hand, part temp grade fuse can be used to determine thermal trip
points. We already do this in imx_tmu_bind() function. Now, factor out
this functionality to a standalone function imx_tmu_set_trips() and use
it for both cases. This fixes an issue where 'cpu-thermal' child device
would set different thermal trips than the parent 'tmu@44482000' sensor,
depending on which gets used.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
drivers/thermal/imx_tmu.c