thermal: imx_thermal: rework driver to be reused