提交 1cea9959 编写于 作者: V Viorel Suman 提交者: Daniel Lezcano

thermal/drivers/imx_sc_thermal: Add iMX8QM sensors

Add iMX8QM sensors. As stated in 31fd4b9d ("thermal/drivers/imx_sc:
Rely on the platform data to get the resource id"):

    The thermal OF code returns -ENODEV if the thermal zone registration
    with a specific id fails because the description is not available in
    the DT for such a sensor id. In this case we continue with the other
    ids without bailing out with an error.
Signed-off-by: NViorel Suman <viorel.suman@nxp.com>
Reviewed-by: NDong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20230117091956.61729-2-viorel.suman@oss.nxp.comSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 4b26b7c9
...@@ -127,7 +127,11 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) ...@@ -127,7 +127,11 @@ static int imx_sc_thermal_probe(struct platform_device *pdev)
return 0; return 0;
} }
static const int imx_sc_sensors[] = { IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, -1 }; static const int imx_sc_sensors[] = {
IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0,
IMX_SC_R_AP_0, IMX_SC_R_AP_1,
IMX_SC_R_GPU_0_PID0, IMX_SC_R_GPU_1_PID0,
IMX_SC_R_DRC_0, -1 };
static const struct of_device_id imx_sc_thermal_table[] = { static const struct of_device_id imx_sc_thermal_table[] = {
{ .compatible = "fsl,imx-sc-thermal", .data = imx_sc_sensors }, { .compatible = "fsl,imx-sc-thermal", .data = imx_sc_sensors },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册