1
0
Fork 0

MLK-18687-1 ARM64: dts: freescale: imx8dx: use new method to disable DRC thermal sensor

The imx_sc_thermal driver has strict thermal zone and sensor
id relationship with device tree settings, simple removing
DRC thermal zone node will introduce incorrect sensor id
settings for other thermal zones, so adding status for driver
to ignore those thermal zones with status equal "disabled".

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
pull/10/head
Anson Huang 2018-06-26 13:38:20 +08:00 committed by Jason Liu
parent 0421359b30
commit cce29924d1
2 changed files with 22 additions and 3 deletions

View File

@ -1355,7 +1355,7 @@
tsens: thermal-sensor {
compatible = "nxp,imx8qxp-sc-tsens";
/* number of the temp sensor on the chip */
tsens-num = <1>;
tsens-num = <2>;
#thermal-sensor-cells = <1>;
};
@ -1386,6 +1386,25 @@
};
};
};
drc-thermal0 {
polling-delay-passive = <250>;
polling-delay = <2000>;
thermal-sensors = <&tsens 1>;
status = "disabled";
trips {
drc_alert0: trip0 {
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
drc_crit0: trip1 {
temperature = <127000>;
hysteresis = <2000>;
type = "critical";
};
};
};
};
irqsteer_csi: irqsteer@58220000 {

View File

@ -1135,14 +1135,14 @@
};
&tsens {
tsens-num = <2>;
tsens-num = <3>;
};
&thermal_zones {
pmic-thermal0 {
polling-delay-passive = <250>;
polling-delay = <2000>;
thermal-sensors = <&tsens 1>;
thermal-sensors = <&tsens 2>;
trips {
pmic_alert0: trip0 {
temperature = <80000>;