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
parent
0421359b30
commit
cce29924d1
|
@ -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 {
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue