2023-05-30 20:32:08

by Frank Wunderlich

[permalink] [raw]
Subject: [PATCH v3 0/4] Add mt7986 thermal

From: Frank Wunderlich <[email protected]>

This series add thermal related devicetree-nodes and necessary
dt-bindings.

I left pwm-fan for r3 for now as i cannot test this completely due to
missing 2 pin-jack and 3v3 pwm-level which my fan cannot handle (starts
spinning at ~3V). Only checked voltage of pwm there.

changes in v3:
- efuse compatibles into one line

changes in v2:
- drop highest 2 trip points as they are not yet used
- leave already applied patches

Daniel Golle (3):
arm64: dts: mt7986: add thermal and efuse
arm64: dts: mt7986: add thermal-zones
arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts

Frank Wunderlich (1):
dt-bindings: nvmem: mediatek: efuse: add support for mt7986

.../bindings/nvmem/mediatek,efuse.yaml | 1 +
.../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 31 ++++++++++
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 62 +++++++++++++++++++
3 files changed, 94 insertions(+)

--
2.34.1



2023-05-30 20:32:24

by Frank Wunderlich

[permalink] [raw]
Subject: [PATCH v3 3/4] arm64: dts: mt7986: add thermal-zones

From: Daniel Golle <[email protected]>

Add thermal-zones to mt7986 devicetree.

Signed-off-by: Daniel Golle <[email protected]>
Signed-off-by: Frank Wunderlich <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
---
changes in v2:
- drop top 2 thermal trips as suggested by matthias
---
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 28 +++++++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index ad4fd77b65a7..68539ea788df 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -602,4 +602,32 @@ wifi: wifi@18000000 {
memory-region = <&wmcpu_emi>;
};
};
+
+ thermal-zones {
+ cpu_thermal: cpu-thermal {
+ polling-delay-passive = <1000>;
+ polling-delay = <1000>;
+ thermal-sensors = <&thermal 0>;
+
+ trips {
+ cpu_trip_active_high: active-high {
+ temperature = <115000>;
+ hysteresis = <2000>;
+ type = "active";
+ };
+
+ cpu_trip_active_low: active-low {
+ temperature = <85000>;
+ hysteresis = <2000>;
+ type = "active";
+ };
+
+ cpu_trip_passive: passive {
+ temperature = <40000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ };
+ };
+ };
};
--
2.34.1


2023-05-31 14:11:55

by Srinivas Kandagatla

[permalink] [raw]
Subject: Re: (subset) [PATCH v3 0/4] Add mt7986 thermal


On Tue, 30 May 2023 22:12:31 +0200, Frank Wunderlich wrote:
> From: Frank Wunderlich <[email protected]>
>
> This series add thermal related devicetree-nodes and necessary
> dt-bindings.
>
> I left pwm-fan for r3 for now as i cannot test this completely due to
> missing 2 pin-jack and 3v3 pwm-level which my fan cannot handle (starts
> spinning at ~3V). Only checked voltage of pwm there.
>
> [...]

Applied, thanks!

[1/4] dt-bindings: nvmem: mediatek: efuse: add support for mt7986
commit: 05f53e3c22a71ed53e0e88432c3db31f2d27e6e1

Best regards,
--
Srinivas Kandagatla <[email protected]>


2023-06-09 15:05:20

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH v3 0/4] Add mt7986 thermal



On 30/05/2023 22:12, Frank Wunderlich wrote:
> From: Frank Wunderlich <[email protected]>
>
> This series add thermal related devicetree-nodes and necessary
> dt-bindings.
>
> I left pwm-fan for r3 for now as i cannot test this completely due to
> missing 2 pin-jack and 3v3 pwm-level which my fan cannot handle (starts
> spinning at ~3V). Only checked voltage of pwm there.
>
> changes in v3:
> - efuse compatibles into one line
>
> changes in v2:
> - drop highest 2 trip points as they are not yet used
> - leave already applied patches
>
> Daniel Golle (3):
> arm64: dts: mt7986: add thermal and efuse
> arm64: dts: mt7986: add thermal-zones
> arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts
>
> Frank Wunderlich (1):
> dt-bindings: nvmem: mediatek: efuse: add support for mt7986
>
> .../bindings/nvmem/mediatek,efuse.yaml | 1 +
> .../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 31 ++++++++++
> arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 62 +++++++++++++++++++
> 3 files changed, 94 insertions(+)
>

Applied 2-4, thanks!