Enable STM32 Digital Thermal Sensor (dts) driver for
STM32MP157c-ed1 board.
Signed-off-by: David Hernandez Sanchez
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts
b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index c3ecb1e..98ef7a0 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm
Enable STM32 Digital Thermal Sensor (dts) driver for
STM32MP157c-ed1 board.
Signed-off-by: David Hernandez Sanchez
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts
b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index c3ecb1e..98ef7a0 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm
-off-by: David Hernandez Sanchez
Fixes: 1d693155 ("thermal: add stm32 thermal driver")
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c
index 47623da..daa1257 100644
--- a/drivers/thermal/st/stm_thermal.c
+++ b/drivers/thermal/st/stm_thermal.c
@@ -532
-off-by: David Hernandez Sanchez
Fixes: 1d693155 ("thermal: add stm32 thermal driver")
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c
index 47623da..daa1257 100644
--- a/drivers/thermal/st/stm_thermal.c
+++ b/drivers/thermal/st/stm_thermal.c
@@ -532
Adding brackets allows to multiply the register value,
masked by TS1_RAMP_COEFF_MASK, by an ADJUST value
properly and not to multiply ADJUST by register value and
then mask the whole.
Signed-off-by: David Hernandez Sanchez
Fixes: 1d693155 ("thermal: add stm32 thermal driver")
Adding brackets allows to multiply the register value,
masked by TS1_RAMP_COEFF_MASK, by an ADJUST value
properly and not to multiply ADJUST by register value and
then mask the whole.
Signed-off-by: David Hernandez Sanchez
Fixes: 1d693155 ("thermal: add stm32 thermal driver")
Call stm_thermal_read_factory_settings once
internal peripheral is properly clocked.
To avoid wrong initialization of fmt0
(stm_thermal_sensor struct) member add
brackets properly.
Change-Id: I150d00fd50e382df04bfad12f0653b1ed6a1db1b
Signed-off-by: David Hernandez Sanchez
diff --git a/drivers
Call stm_thermal_read_factory_settings once
internal peripheral is properly clocked.
To avoid wrong initialization of fmt0
(stm_thermal_sensor struct) member add
brackets properly.
Change-Id: I150d00fd50e382df04bfad12f0653b1ed6a1db1b
Signed-off-by: David Hernandez Sanchez
diff --git a/drivers
.
Br,
David HERNANDEZ SANCHEZ
David Hernandez Sanchez (3):
dt-bindings: stm32-thermal: add binding documentation
thermal: add stm32 thermal driver
ARM: dts: stm32: add thermal sensor support on STM32MP157c
.../devicetree/bindings/thermal/stm32-thermal.txt | 61 ++
arch/arm/boot/dts
.
Br,
David HERNANDEZ SANCHEZ
David Hernandez Sanchez (3):
dt-bindings: stm32-thermal: add binding documentation
thermal: add stm32 thermal driver
ARM: dts: stm32: add thermal sensor support on STM32MP157c
.../devicetree/bindings/thermal/stm32-thermal.txt | 61 ++
arch/arm/boot/dts
reset.
Signed-off-by: David Hernandez Sanchez
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 0e69edc..5422523 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -432,7 +432,7 @@ source "drivers/thermal/samsung/Kconfig"
endmenu
menu "STM
reset.
Signed-off-by: David Hernandez Sanchez
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 0e69edc..5422523 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -432,7 +432,7 @@ source "drivers/thermal/samsung/Kconfig"
endmenu
menu "STM
Add configuration on DT for thermal sensor driver
Signed-off-by: David Hernandez Sanchez
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi
b/arch/arm/boot/dts/stm32mp157c.dtsi
index 661be94..e90b9f6 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -84,6
Add thermal binding documentation for STM32 DTS sensor
Signed-off-by: David Hernandez Sanchez
diff --git a/Documentation/devicetree/bindings/thermal/stm32-thermal.txt
b/Documentation/devicetree/bindings/thermal/stm32-thermal.txt
new file mode 100644
index 000..8c0d5a4
--- /dev/null
+++ b
Add configuration on DT for thermal sensor driver
Signed-off-by: David Hernandez Sanchez
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi
b/arch/arm/boot/dts/stm32mp157c.dtsi
index 661be94..e90b9f6 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -84,6
Add thermal binding documentation for STM32 DTS sensor
Signed-off-by: David Hernandez Sanchez
diff --git a/Documentation/devicetree/bindings/thermal/stm32-thermal.txt
b/Documentation/devicetree/bindings/thermal/stm32-thermal.txt
new file mode 100644
index 000..8c0d5a4
--- /dev/null
+++ b
16 matches
Mail list logo