From 8a13dae89dd1dedcc922bc854504ee098827ba3b Mon Sep 17 00:00:00 2001 From: Gunjan Gupta Date: Wed, 19 Jul 2023 22:57:31 +0530 Subject: [PATCH] kernel: sun50i: h5: current: add missing gpu trips section --- ...sun50i-h5-Add-missing-GPU-trip-point.patch | 35 +++++++++++++++++++ patch/kernel/archive/sunxi-6.1/series.armbian | 1 + patch/kernel/archive/sunxi-6.1/series.conf | 1 + 3 files changed, 37 insertions(+) create mode 100644 patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch diff --git a/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch b/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch new file mode 100644 index 000000000..5843b4db1 --- /dev/null +++ b/patch/kernel/archive/sunxi-6.1/patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch @@ -0,0 +1,35 @@ +From 9a1a4de7a7076e3b5802310c14f50f93aed5225a Mon Sep 17 00:00:00 2001 +From: Ondrej Jirman +Date: Mon, 13 Mar 2023 06:02:46 +0100 +Subject: [PATCH 191/469] arm64: dts: sun50i-h5: Add missing GPU trip point + +Without this, thermal sensor driver fails to probe. + +Signed-off-by: Ondrej Jirman +--- + arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +index 2159fa336d75..3b2bd698e9c1 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +@@ -227,6 +227,15 @@ gpu-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 1>; ++ ++ trips { ++ gpu_crit: gpu-crit { ++ /* milliCelsius */ ++ temperature = <110000>; ++ hysteresis = <2000>; ++ type = "critical"; ++ }; ++ }; + }; + }; + }; +-- +2.34.1 + diff --git a/patch/kernel/archive/sunxi-6.1/series.armbian b/patch/kernel/archive/sunxi-6.1/series.armbian index b9ab97d88..05a68f600 100644 --- a/patch/kernel/archive/sunxi-6.1/series.armbian +++ b/patch/kernel/archive/sunxi-6.1/series.armbian @@ -179,3 +179,4 @@ patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch + patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch diff --git a/patch/kernel/archive/sunxi-6.1/series.conf b/patch/kernel/archive/sunxi-6.1/series.conf index 260d5ea42..42090e880 100644 --- a/patch/kernel/archive/sunxi-6.1/series.conf +++ b/patch/kernel/archive/sunxi-6.1/series.conf @@ -583,3 +583,4 @@ patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch + patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch