Skip to content

Commit 1d69315

Browse files
David HERNANDEZ SANCHEZEduardo Valentin
authored andcommitted
thermal: add stm32 thermal driver
Add support for DTS thermal sensor that can be found on some STM32 platforms. This driver is based on OF and works in interrupt mode. It offers two temperature trip points: passive and critical. The first is intended for passive cooling notification while the second is used for over-temperature reset. Signed-off-by: David Hernandez Sanchez <david.hernandezsanchez@st.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 7f1a22c commit 1d69315

File tree

5 files changed

+777
-2
lines changed

5 files changed

+777
-2
lines changed

drivers/thermal/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ source "drivers/thermal/samsung/Kconfig"
432432
endmenu
433433

434434
menu "STMicroelectronics thermal drivers"
435-
depends on ARCH_STI && OF
435+
depends on (ARCH_STI || ARCH_STM32) && OF
436436
source "drivers/thermal/st/Kconfig"
437437
endmenu
438438

drivers/thermal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
5353
obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/
5454
obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o
5555
obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o
56-
obj-$(CONFIG_ST_THERMAL) += st/
56+
obj-y += st/
5757
obj-$(CONFIG_QCOM_TSENS) += qcom/
5858
obj-y += tegra/
5959
obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o

drivers/thermal/st/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#
2+
# STMicroelectronics thermal drivers configuration
3+
#
4+
15
config ST_THERMAL
26
tristate "Thermal sensors on STMicroelectronics STi series of SoCs"
37
help
@@ -10,3 +14,13 @@ config ST_THERMAL_SYSCFG
1014
config ST_THERMAL_MEMMAP
1115
select ST_THERMAL
1216
tristate "STi series memory mapped access based thermal sensors"
17+
18+
config STM32_THERMAL
19+
tristate "Thermal framework support on STMicroelectronics STM32 series of SoCs"
20+
depends on MACH_STM32MP157
21+
default y
22+
help
23+
Support for thermal framework on STMicroelectronics STM32 series of
24+
SoCs. This thermal driver allows to access to general thermal framework
25+
functionalities and to acces to SoC sensor functionalities. This
26+
configuration is fully dependent of MACH_STM32MP157.

drivers/thermal/st/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
obj-$(CONFIG_ST_THERMAL) := st_thermal.o
22
obj-$(CONFIG_ST_THERMAL_SYSCFG) += st_thermal_syscfg.o
33
obj-$(CONFIG_ST_THERMAL_MEMMAP) += st_thermal_memmap.o
4+
obj-$(CONFIG_STM32_THERMAL) := stm_thermal.o

0 commit comments

Comments
 (0)