From 613234a75cebd4de421e8b832a4efc8bc23eeac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dzieko=C5=84ski?= Date: Wed, 3 May 2023 14:13:43 +0200 Subject: [PATCH] sunxi-6.1 h616: Fix thermal zones (add missing trips) --- ...h616-Fix-thermal-zones-missing-trips.patch | 82 +++++++++++++++++++ patch/kernel/archive/sunxi-6.1/series.armbian | 3 +- patch/kernel/archive/sunxi-6.1/series.conf | 3 +- 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch diff --git a/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch b/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch new file mode 100644 index 0000000000..91d38a3879 --- /dev/null +++ b/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch @@ -0,0 +1,82 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20Dzieko=C5=84ski?= + +Date: Wed, 3 May 2023 12:10:01 +0000 +Subject: arm64: dts: allwinner: h616: Fix thermal zones (add missing trips) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Michał Dziekoński +--- + arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 29 ++++++++++ + 1 file changed, 29 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +index 44c794688..7ff911107 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +@@ -887,10 +887,15 @@ cpu_threshold: trip-point@0 { + cpu_target: trip-point@1 { + temperature = <70000>; + type = "passive"; + hysteresis = <0>; + }; ++ cpu_temp_critical: trip-point@2 { ++ temperature = <110000>; ++ type = "critical"; ++ hysteresis = <0>; ++ }; + }; + + cooling-maps { + map0 { + trip = <&cpu_target>; +@@ -905,20 +910,44 @@ map0 { + gpu-thermal { + polling-delay-passive = <500>; + polling-delay = <1000>; + thermal-sensors = <&ths 0>; + sustainable-power = <1100>; ++ ++ trips { ++ gpu_temp_critical: trip-point@0 { ++ temperature = <110000>; ++ type = "critical"; ++ hysteresis = <0>; ++ }; ++ }; + }; + + ve-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 1>; ++ ++ trips { ++ ve_temp_critical: trip-point@0 { ++ temperature = <110000>; ++ type = "critical"; ++ hysteresis = <0>; ++ }; ++ }; + }; + + ddr-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 3>; ++ ++ trips { ++ ddr_temp_critical: trip-point@0 { ++ temperature = <110000>; ++ type = "critical"; ++ hysteresis = <0>; ++ }; ++ }; + }; + }; + }; +-- +Created with Armbian build tools https://github.com/armbian/build + diff --git a/patch/kernel/archive/sunxi-6.1/series.armbian b/patch/kernel/archive/sunxi-6.1/series.armbian index 5fa0c3bee3..1980502901 100644 --- a/patch/kernel/archive/sunxi-6.1/series.armbian +++ b/patch/kernel/archive/sunxi-6.1/series.armbian @@ -89,6 +89,7 @@ patches.armbian/arm64-dts-sun50i-h616-x96-mate-add-hdmi.patch patches.armbian/arm64-dts-allwinner-h616-Add-device-node-for-SID.patch patches.armbian/arm64-dts-allwinner-h616-Add-thermal-sensor-and-thermal-zones.patch + patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch ################### patches.armbian/arm64-dts-sun50i-a64-pinebook-enable-Bluetooth.patch patches.armbian/arm64-dts-sun50i-a64-pine64-enable-Bluetooth.patch @@ -167,4 +168,4 @@ patches.armbian/arm64-dts-sun50i-h6-orangepi.dtsi-Rollback-r_rsb-to-r_i2c.patch patches.armbian/mfd-sunxi-ac200-fix-error-initialization.patch patches.armbian/arm-dts-sun8i-h3-orangepizero-add_tve.patch - patches.armbian/arm-dts-sun8i-h3-fix-thermal-read.patch \ No newline at end of file + patches.armbian/arm-dts-sun8i-h3-fix-thermal-read.patch diff --git a/patch/kernel/archive/sunxi-6.1/series.conf b/patch/kernel/archive/sunxi-6.1/series.conf index a9f9b3a4e7..bffa9c9586 100644 --- a/patch/kernel/archive/sunxi-6.1/series.conf +++ b/patch/kernel/archive/sunxi-6.1/series.conf @@ -493,6 +493,7 @@ patches.armbian/arm64-dts-sun50i-h616-x96-mate-add-hdmi.patch patches.armbian/arm64-dts-allwinner-h616-Add-device-node-for-SID.patch patches.armbian/arm64-dts-allwinner-h616-Add-thermal-sensor-and-thermal-zones.patch + patches.armbian/arm64-dts-allwinner-h616-Fix-thermal-zones-missing-trips.patch ################### patches.armbian/arm64-dts-sun50i-a64-pinebook-enable-Bluetooth.patch patches.armbian/arm64-dts-sun50i-a64-pine64-enable-Bluetooth.patch @@ -571,4 +572,4 @@ patches.armbian/arm64-dts-sun50i-h6-orangepi.dtsi-Rollback-r_rsb-to-r_i2c.patch patches.armbian/mfd-sunxi-ac200-fix-error-initialization.patch patches.armbian/arm-dts-sun8i-h3-orangepizero-add_tve.patch - patches.armbian/arm-dts-sun8i-h3-fix-thermal-read.patch \ No newline at end of file + patches.armbian/arm-dts-sun8i-h3-fix-thermal-read.patch