Skip to content

Commit

Permalink
dts: rockpro64: Cool CPU with fan before throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaris committed Jun 11, 2020
1 parent ab2a436 commit 9dd6768
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
Expand Up @@ -59,6 +59,7 @@
#cooling-cells = <2>;
fan-supply = <&vcc12v_dcin>;
pwms = <&pwm1 0 50000 0>;
cooling-levels = <0 102 170 255>;
};

sdio_pwrseq: sdio-pwrseq {
Expand Down Expand Up @@ -215,6 +216,41 @@
cpu-supply = <&vdd_cpu_b>;
};

&cpu_thermal {
trips {
cpu_high0: cpu_high0 {
temperature = <55000>;
hysteresis = <2000>;
type = "active";
};
cpu_high1: cpu_high1 {
temperature = <60000>;
hysteresis = <2000>;
type = "active";
};
cpu_high2: cpu_high2 {
temperature = <65000>;
hysteresis = <2000>;
type = "active";
};
};

cooling-maps {
map2 {
trip = <&cpu_high0>;
cooling-device = <&fan 0 1>;
};
map3 {
trip = <&cpu_high1>;
cooling-device = <&fan 1 2>;
};
map4 {
trip = <&cpu_high2>;
cooling-device = <&fan 2 3>;
};
};
};

&emmc_phy {
status = "okay";
};
Expand Down

0 comments on commit 9dd6768

Please sign in to comment.