ARM: dts: am57xx-beagle-x15: Add thermal map to include fan and tmp102
BeagleBoard-X15 has capability for a fan and has an onboard TMP102 temperature sensor as well. This allows us to create a new thermal zone (called, un-imaginatively "board"), and allows us to use some active cooling as temperatures start edge upward in the system by creating a new alert temperature (emperically 50C) for cpu. NOTE: Fan is NOT mounted by default on the platform, in such a case, all we end up doing is switch on a regulator and leak very minimal current. Signed-off-by: Nishanth Menon <nm@ti.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:

committed by
Tony Lindgren

parent
f7397edf47
commit
d723cfeafc
@@ -87,6 +87,7 @@
|
|||||||
gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
|
||||||
gpio-fan,speed-map = <0 0>,
|
gpio-fan,speed-map = <0 0>,
|
||||||
<13000 1>;
|
<13000 1>;
|
||||||
|
#cooling-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
extcon_usb1: extcon_usb1 {
|
extcon_usb1: extcon_usb1 {
|
||||||
@@ -442,6 +443,7 @@
|
|||||||
pinctrl-0 = <&tmp102_pins_default>;
|
pinctrl-0 = <&tmp102_pins_default>;
|
||||||
interrupt-parent = <&gpio7>;
|
interrupt-parent = <&gpio7>;
|
||||||
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
|
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -560,3 +562,50 @@
|
|||||||
&usb2 {
|
&usb2 {
|
||||||
dr_mode = "peripheral";
|
dr_mode = "peripheral";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cpu_trips {
|
||||||
|
cpu_alert1: cpu_alert1 {
|
||||||
|
temperature = <50000>; /* millicelsius */
|
||||||
|
hysteresis = <2000>; /* millicelsius */
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpu_cooling_maps {
|
||||||
|
map1 {
|
||||||
|
trip = <&cpu_alert1>;
|
||||||
|
cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&thermal_zones {
|
||||||
|
board_thermal: board_thermal {
|
||||||
|
polling-delay-passive = <1250>; /* milliseconds */
|
||||||
|
polling-delay = <1500>; /* milliseconds */
|
||||||
|
|
||||||
|
/* sensor ID */
|
||||||
|
thermal-sensors = <&tmp102 0>;
|
||||||
|
|
||||||
|
board_trips: trips {
|
||||||
|
board_alert0: board_alert {
|
||||||
|
temperature = <40000>; /* millicelsius */
|
||||||
|
hysteresis = <2000>; /* millicelsius */
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
|
||||||
|
board_crit: board_crit {
|
||||||
|
temperature = <105000>; /* millicelsius */
|
||||||
|
hysteresis = <0>; /* millicelsius */
|
||||||
|
type = "critical";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
board_cooling_maps: cooling-maps {
|
||||||
|
map0 {
|
||||||
|
trip = <&board_alert0>;
|
||||||
|
cooling-device =
|
||||||
|
<&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@@ -18,7 +18,7 @@ cpu_thermal: cpu_thermal {
|
|||||||
/* sensor ID */
|
/* sensor ID */
|
||||||
thermal-sensors = <&bandgap 0>;
|
thermal-sensors = <&bandgap 0>;
|
||||||
|
|
||||||
trips {
|
cpu_trips: trips {
|
||||||
cpu_alert0: cpu_alert {
|
cpu_alert0: cpu_alert {
|
||||||
temperature = <100000>; /* millicelsius */
|
temperature = <100000>; /* millicelsius */
|
||||||
hysteresis = <2000>; /* millicelsius */
|
hysteresis = <2000>; /* millicelsius */
|
||||||
@@ -31,7 +31,7 @@ cpu_thermal: cpu_thermal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cooling-maps {
|
cpu_cooling_maps: cooling-maps {
|
||||||
map0 {
|
map0 {
|
||||||
trip = <&cpu_alert0>;
|
trip = <&cpu_alert0>;
|
||||||
cooling-device =
|
cooling-device =
|
||||||
|
Reference in New Issue
Block a user