From: Dongjin Kim Date: Wed, 24 Jun 2020 02:48:59 +0000 (+0900) Subject: ODROID-N2PLUS: arm64/dts: add fan cooler mapping X-Git-Tag: hardkernel-4.9.236-104~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8781dcd13a97f6462b28e36c3aca6013d54cc57;p=platform%2Fkernel%2Flinux-amlogic.git ODROID-N2PLUS: arm64/dts: add fan cooler mapping Signed-off-by: Dongjin Kim Change-Id: I7c60abb9598905687347185b301e457fd300e578 --- diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidn2_plus.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidn2_plus.dts index cf2d2b2..537d648 100644 --- a/arch/arm64/boot/dts/amlogic/meson64_odroidn2_plus.dts +++ b/arch/arm64/boot/dts/amlogic/meson64_odroidn2_plus.dts @@ -17,6 +17,7 @@ /dts-v1/; +#include #include "mesong12b.dtsi" #include "meson64_odroidn2.dtsi" @@ -156,3 +157,28 @@ /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>; + }; + }; +};