Skip to content

Commit

Permalink
arm64: dts: rock5a: providing more cooling levels for pwm-fan (torval…
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and Su Yue committed Jul 25, 2023
1 parent 99c823d commit b25e9f4
Showing 1 changed file with 61 additions and 9 deletions.
70 changes: 61 additions & 9 deletions arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
Expand Up @@ -28,7 +28,7 @@
fan0: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
cooling-levels = <0 64 128 192 255>;
cooling-levels = <100 160 190 200 215 235 255>;
pwms = <&pwm3 0 10000 0>;
};

Expand Down Expand Up @@ -708,18 +708,70 @@

&soc_thermal {
sustainable-power = <5000>; /* milliwatts */
polling-delay = <1000>;
polling-delay-passive = <2000>;
trips {
trip0: trip-point@0 {
temperature = <55000>;
hysteresis = <5000>;
type = "active";
};
trip1: trip-point@1 {
temperature = <60000>;
hysteresis = <5000>;
type = "active";
};
trip2: trip-point@2 {
temperature = <65000>;
hysteresis = <5000>;
type = "active";
};
trip3: trip-point@3 {
temperature = <70000>;
hysteresis = <5000>;
type = "active";
};
trip4: trip-point@4 {
temperature = <75000>;
hysteresis = <5000>;
type = "active";
};
pcritical: trip-point@5 {
temperature = <80000>;
hysteresis = <1000>;
type = "active";
};
};
cooling-maps {
map0 {
trip = <&trip0>;
cooling-device = <&fan0 0 1>;
contribution = <1024>;
};
map1 {
trip = <&trip1>;
cooling-device = <&fan0 1 2>;
contribution = <1024>;
};
map2 {
trip = <&trip2>;
cooling-device = <&fan0 2 3>;
contribution = <1024>;
};
map3 {
trip = <&target>;
cooling-device =
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
trip = <&trip3>;
cooling-device = <&fan0 3 4>;
contribution = <1024>;
};
map4 {
trip = <&threshold>;
cooling-device =
<&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
trip = <&trip4>;
cooling-device = <&fan0 4 5>;
contribution = <1024>;
};
map5 {
trip = <&pcritical>;
cooling-device = <&fan0 5 6>;
contribution = <1024>;
};
};
};
Expand Down

0 comments on commit b25e9f4

Please sign in to comment.