xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/omap4-cpu-thermal.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree Source for OMAP4/5 SoC CPU thermal
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
6f126890aSEmmanuel Vadot * Contact: Eduardo Valentin <eduardo.valentin@ti.com>
7f126890aSEmmanuel Vadot */
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h>
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadotcpu_thermal: cpu_thermal {
12f126890aSEmmanuel Vadot	polling-delay-passive = <250>; /* milliseconds */
13f126890aSEmmanuel Vadot	polling-delay = <1000>; /* milliseconds */
14f126890aSEmmanuel Vadot
15*aa1a8ff2SEmmanuel Vadot	/*
16*aa1a8ff2SEmmanuel Vadot	 * See 44xx files for single sensor addressing, omap5 and dra7 need
17*aa1a8ff2SEmmanuel Vadot	 * also sensor ID for addressing.
18*aa1a8ff2SEmmanuel Vadot	 */
19f126890aSEmmanuel Vadot	thermal-sensors = <&bandgap     0>;
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot	cpu_trips: trips {
22f126890aSEmmanuel Vadot		cpu_alert0: cpu_alert {
23f126890aSEmmanuel Vadot			temperature = <100000>; /* millicelsius */
24f126890aSEmmanuel Vadot			hysteresis = <2000>; /* millicelsius */
25f126890aSEmmanuel Vadot			type = "passive";
26f126890aSEmmanuel Vadot		};
27f126890aSEmmanuel Vadot		cpu_crit: cpu_crit {
28f126890aSEmmanuel Vadot			temperature = <125000>; /* millicelsius */
29f126890aSEmmanuel Vadot			hysteresis = <2000>; /* millicelsius */
30f126890aSEmmanuel Vadot			type = "critical";
31f126890aSEmmanuel Vadot		};
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot	cpu_cooling_maps: cooling-maps {
35f126890aSEmmanuel Vadot		map0 {
36f126890aSEmmanuel Vadot			trip = <&cpu_alert0>;
37f126890aSEmmanuel Vadot			cooling-device =
38f126890aSEmmanuel Vadot				<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
39f126890aSEmmanuel Vadot		};
40f126890aSEmmanuel Vadot	};
41f126890aSEmmanuel Vadot};
42