2023-09-22 09:59:13

by Frank Wunderlich

[permalink] [raw]
Subject: [PATCH v3 0/4] add LVTS support for mt7988

From: Frank Wunderlich <[email protected]>

This series makes allows soc specific temperature coefficients
and adds support for mt7988 which has a different one.

Frank Wunderlich (4):
dt-bindings: thermal: mediatek: add mt7988 lvts compatible
dt-bindings: thermal: mediatek: Add LVTS thermal sensors for mt7988
thermal/drivers/mediatek/lvts_thermal: make coeff configurable
thermal/drivers/mediatek/lvts_thermal: add mt7988 support

.../thermal/mediatek,lvts-thermal.yaml | 1 +
drivers/thermal/mediatek/lvts_thermal.c | 89 +++++++++++++++----
.../thermal/mediatek,lvts-thermal.h | 9 ++
3 files changed, 82 insertions(+), 17 deletions(-)

--
2.34.1


2023-09-22 21:08:22

by Frank Wunderlich

[permalink] [raw]
Subject: [PATCH v3 2/4] dt-bindings: thermal: mediatek: Add LVTS thermal sensors for mt7988

From: Frank Wunderlich <[email protected]>

Add sensor constants for MT7988.

Signed-off-by: Frank Wunderlich <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Acked-by: Conor Dooley <[email protected]>
---
v2:
- new patch (moved from driver code to binding header)
- give sensors more meaningful names
---
include/dt-bindings/thermal/mediatek,lvts-thermal.h | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/include/dt-bindings/thermal/mediatek,lvts-thermal.h b/include/dt-bindings/thermal/mediatek,lvts-thermal.h
index 8fa5a46675c4..8c1fdc18cf34 100644
--- a/include/dt-bindings/thermal/mediatek,lvts-thermal.h
+++ b/include/dt-bindings/thermal/mediatek,lvts-thermal.h
@@ -7,6 +7,15 @@
#ifndef __MEDIATEK_LVTS_DT_H
#define __MEDIATEK_LVTS_DT_H

+#define MT7988_CPU_0 0
+#define MT7988_CPU_1 1
+#define MT7988_ETH2P5G_0 2
+#define MT7988_ETH2P5G_1 3
+#define MT7988_TOPS_0 4
+#define MT7988_TOPS_1 5
+#define MT7988_ETHWARP_0 6
+#define MT7988_ETHWARP_1 7
+
#define MT8195_MCU_BIG_CPU0 0
#define MT8195_MCU_BIG_CPU1 1
#define MT8195_MCU_BIG_CPU2 2
--
2.34.1

2023-09-28 11:45:59

by Daniel Lezcano

[permalink] [raw]
Subject: Re: [PATCH v3 0/4] add LVTS support for mt7988

On 22/09/2023 07:50, Frank Wunderlich wrote:
> From: Frank Wunderlich <[email protected]>
>
> This series makes allows soc specific temperature coefficients
> and adds support for mt7988 which has a different one.
>
> Frank Wunderlich (4):
> dt-bindings: thermal: mediatek: add mt7988 lvts compatible
> dt-bindings: thermal: mediatek: Add LVTS thermal sensors for mt7988
> thermal/drivers/mediatek/lvts_thermal: make coeff configurable
> thermal/drivers/mediatek/lvts_thermal: add mt7988 support
>
> .../thermal/mediatek,lvts-thermal.yaml | 1 +
> drivers/thermal/mediatek/lvts_thermal.c | 89 +++++++++++++++----
> .../thermal/mediatek,lvts-thermal.h | 9 ++
> 3 files changed, 82 insertions(+), 17 deletions(-)
>

Applied, thanks

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog