mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-17 12:21:23 +00:00
rockchip dev thermal patch
Fix broken thermal zones after new gpu subnode.
This commit is contained in:
parent
40768691b2
commit
963b1c9c1f
1 changed files with 31 additions and 0 deletions
31
patch/kernel/rockchip-dev/9006_thermal_zone_fix.patch
Normal file
31
patch/kernel/rockchip-dev/9006_thermal_zone_fix.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
|
||||
index cfa5178..08c96e7 100644
|
||||
--- a/arch/arm/boot/dts/rk3288.dtsi
|
||||
+++ b/arch/arm/boot/dts/rk3288.dtsi
|
||||
@@ -546,6 +546,7 @@
|
||||
pinctrl-0 = <&otp_gpio>;
|
||||
pinctrl-1 = <&otp_out>;
|
||||
pinctrl-2 = <&otp_gpio>;
|
||||
+ rockchip,grf = <&grf>;
|
||||
#thermal-sensor-cells = <1>;
|
||||
rockchip,hw-tshut-temp = <95000>;
|
||||
status = "disabled";
|
||||
@@ -1297,7 +1298,18 @@
|
||||
clocks = <&cru ACLK_GPU>;
|
||||
operating-points-v2 = <&gpu_opp_table>;
|
||||
power-domains = <&power RK3288_PD_GPU>;
|
||||
+ #cooling-cells = <2>; /* min followed by max */
|
||||
status = "disabled";
|
||||
+
|
||||
+ gpu_power_model: power_model {
|
||||
+ compatible = "arm,mali-simple-power-model";
|
||||
+ voltage = <950>;
|
||||
+ frequency = <500>;
|
||||
+ static-power = <300>;
|
||||
+ dynamic-power = <396>;
|
||||
+ ts = <32000 4700 (-80) 2>;
|
||||
+ thermal-zone = "gpu_thermal";
|
||||
+ };
|
||||
};
|
||||
|
||||
gpu_opp_table: gpu-opp-table {
|
Loading…
Add table
Reference in a new issue