ODROID-N2PLUS: arm64/dts: add fan cooler mapping
authorDongjin Kim <tobetter@gmail.com>
Wed, 24 Jun 2020 02:48:59 +0000 (11:48 +0900)
committerDongjin Kim <tobetter@gmail.com>
Fri, 10 Jul 2020 04:47:21 +0000 (13:47 +0900)
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7c60abb9598905687347185b301e457fd300e578

arch/arm64/boot/dts/amlogic/meson64_odroidn2_plus.dts

index cf2d2b2..537d648 100644 (file)
@@ -17,6 +17,7 @@
 
 /dts-v1/;
 
+#include <include/dt-bindings/thermal/thermal.h>
 #include "mesong12b.dtsi"
 #include "meson64_odroidn2.dtsi"
 
                /delete-property/ gpio_power;
        };
 };
+
+&soc_thermal {
+       trips {
+               fan_0: trip-point@4 {
+                       temperature = <65000>;
+                       hysteresis = <5000>;
+                       type = "active";
+               };
+               fan_1: trip-point@5 {
+                       temperature = <75000>;
+                       hysteresis = <5000>;
+                       type = "active";
+               };
+       };
+       cooling-maps {
+               fan_cooling_map0 {
+                       trip = <&fan_0>;
+                       cooling-device = <&pwmfan THERMAL_NO_LIMIT 2>;
+               };
+               fan_cooling_map1 {
+                       trip = <&fan_1>;
+                       cooling-device = <&pwmfan 2 THERMAL_NO_LIMIT>;
+               };
+       };
+};