Add i.MX8QM cpu-freq cooling support, when temperature
exceeds passive point, cpu-freq will drop to lowest
set-point. Both A53 and A72 cluster are supported.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
#include <dt-bindings/soc/imx8_pd.h>
#include <dt-bindings/pinctrl/pads-imx8qm.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/thermal/thermal.h>
/ {
compatible = "fsl,imx8qm";
type = "critical";
};
};
+ cooling-maps {
+ map0 {
+ trip = <&cpu_alert0>;
+ cooling-device =
+ <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
};
cpu-thermal1 {
type = "critical";
};
};
+ cooling-maps {
+ map0 {
+ trip = <&cpu_alert1>;
+ cooling-device =
+ <&A72_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
};
gpu-thermal0 {
>;
clocks = <&clk IMX8QM_A53_DIV>;
clock-latency = <61036>;
+ #cooling-cells = <2>;
};
&A72_0 {
>;
clocks = <&clk IMX8QM_A72_DIV>;
clock-latency = <61036>;
+ #cooling-cells = <2>;
};