Andrew Davis | 42e1d60 | 2023-04-11 13:25:00 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Tom Rini | e33af1c | 2015-07-31 19:55:12 -0400 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for OMAP4/5 SoC CPU thermal |
| 4 | * |
Andrew Davis | 42e1d60 | 2023-04-11 13:25:00 -0500 | [diff] [blame] | 5 | * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ |
Tom Rini | e33af1c | 2015-07-31 19:55:12 -0400 | [diff] [blame] | 6 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> |
Tom Rini | e33af1c | 2015-07-31 19:55:12 -0400 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/thermal/thermal.h> |
| 10 | |
| 11 | cpu_thermal: cpu_thermal { |
| 12 | polling-delay-passive = <250>; /* milliseconds */ |
| 13 | polling-delay = <1000>; /* milliseconds */ |
| 14 | |
| 15 | /* sensor ID */ |
Andrew Davis | ddb82a0 | 2023-04-11 13:25:08 -0500 | [diff] [blame] | 16 | thermal-sensors = <&bandgap 0>; |
Tom Rini | e33af1c | 2015-07-31 19:55:12 -0400 | [diff] [blame] | 17 | |
| 18 | cpu_trips: trips { |
Andrew Davis | ddb82a0 | 2023-04-11 13:25:08 -0500 | [diff] [blame] | 19 | cpu_alert0: cpu_alert { |
| 20 | temperature = <100000>; /* millicelsius */ |
| 21 | hysteresis = <2000>; /* millicelsius */ |
| 22 | type = "passive"; |
| 23 | }; |
| 24 | cpu_crit: cpu_crit { |
| 25 | temperature = <125000>; /* millicelsius */ |
| 26 | hysteresis = <2000>; /* millicelsius */ |
| 27 | type = "critical"; |
| 28 | }; |
| 29 | }; |
Tom Rini | e33af1c | 2015-07-31 19:55:12 -0400 | [diff] [blame] | 30 | |
| 31 | cpu_cooling_maps: cooling-maps { |
| 32 | map0 { |
| 33 | trip = <&cpu_alert0>; |
| 34 | cooling-device = |
| 35 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 36 | }; |
| 37 | }; |
| 38 | }; |