From 8408b6ce97d05b928d65029e429c8da3ae775010 Mon Sep 17 00:00:00 2001 From: Octav Zlatior Date: Mon, 8 Jun 2015 16:44:05 +0200 Subject: dts: sun6i: pangolin thermal trips and maps * defines the trip points for active and passive cooling * defines the fan device in i2c3 Signed-off-by: Octav Zlatior --- arch/arm/boot/dts/sun6i-a31-pangolin.dts | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'arch/arm/boot/dts/sun6i-a31-pangolin.dts') diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts index 1401dd2ef02a..fc5826dcbaa1 100644 --- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts +++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts @@ -78,6 +78,7 @@ }; }; }; + &cpu0 { cpu-supply = <&vdd_cpu>; operating-points = < @@ -90,6 +91,55 @@ sampling-rate = <160000>; }; +&cpu_thermal { + cooling-maps { + map_fan { + trip = <&cpu_active>; + cooling-device = <&fan 0 9>; + }; + map0 { + trip = <&cpu_alert0>; + cooling-device = <&cpu0 0 1>; + }; + map1 { + trip = <&cpu_alert1>; + cooling-device = <&cpu0 0 2>; + }; + map2 { + trip = <&cpu_alert2>; + cooling-device = <&cpu0 0 3>; + }; + }; + + trips { + cpu_active: cpu_active { + temperature = <40000>; + hysteresis = <2000>; + type = "active"; + }; + cpu_alert0: cpu_alert0 { + temperature = <70000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_alert1: cpu_alert1 { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_alert2: cpu_alert2 { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit: cpu_crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; +}; + &rtc { status = "disabled"; }; @@ -153,6 +203,13 @@ compatible = "isil,isl1208"; reg = <0x6f>; }; + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + cooling-min-state = <0>; + cooling-max-state = <9>; + #cooling-cells = <2>; + }; }; &gpu { -- cgit v1.2.3