@@ -19,6 +19,15 @@ aliases {
rtc0 = &rtc;
rtc1 = &vrtc;
};
+
+ gpio_fan: gpio-fan {
+ compatible = "gpio-fan";
+ gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
+ /* Using Dummy Speed */
+ gpio-fan,speed-map = <0 0
+ 1 1>;
+ #cooling-cells = <2>;
+ };
gpio-keys-polled {
compatible = "gpio-keys-polled";
@@ -131,3 +140,20 @@ &tdmout_a {
&tohdmitx {
status = "okay";
};
+
+&cpu_thermal {
+ trips {
+ cpu_active: cpu-active
+ temperature = <60000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "active";
+ };
+ };
+
+ cooling-maps {
+ map {
+ trip = <&cpu_active>;
+ cooling-device = <&gpio_fan 1 THERMAL_NO_LIMIT>;
+ };
+ };
+};