Skip to content

Commit

Permalink
station-m3: add cooling-maps pwm-fan support.
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsx authored and amazingfate committed Jul 18, 2024
1 parent afe6822 commit 1353b19
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5b.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-cm5-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-nx5-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-roc-rk3588s-pc-v12.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-roc-pc.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-rk806-single-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-v11.dtb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
compatible = "pwm-fan";
#cooling-cells = <2>;
fan-supply = <&vcc12v_dcin>;
cooling-levels = <60 100 140 160 185 220 255>;
pwms = <&pwm11 0 50000 1>;
};

Expand Down Expand Up @@ -579,6 +580,76 @@
status = "okay";
};

&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 = <&fan 0 1>;
contribution = <1024>;
};
map1 {
trip = <&trip1>;
cooling-device = <&fan 1 2>;
contribution = <1024>;
};
map2 {
trip = <&trip2>;
cooling-device = <&fan 2 3>;
contribution = <1024>;
};
map3 {
trip = <&trip3>;
cooling-device = <&fan 3 4>;
contribution = <1024>;
};
map4 {
trip = <&trip4>;
cooling-device = <&fan 4 5>;
contribution = <1024>;
};
map5 {
trip = <&pcritical>;
cooling-device = <&fan 5 6>;
contribution = <1024>;
};
};
};

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

0 comments on commit 1353b19

Please sign in to comment.