Skip to content

Commit 81b0be9

Browse files
chainsxboogieeeee
authored andcommitted
station-m3: add cooling-maps pwm-fan support.
1 parent f69ae34 commit 81b0be9

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

arch/arm64/boot/dts/rockchip/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5b.dtb
412412
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-cm5-io.dtb
413413
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-nx5-io.dtb
414414
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
415-
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-roc-rk3588s-pc-v12.dtb
415+
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-roc-pc.dtb
416416
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-rk806-single-v10.dtb
417417
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-v10.dtb
418418
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-tablet-v11.dtb

arch/arm64/boot/dts/rockchip/rk3588s-roc-rk3588s-pc-v12.dts renamed to arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
compatible = "pwm-fan";
8484
#cooling-cells = <2>;
8585
fan-supply = <&vcc12v_dcin>;
86+
cooling-levels = <60 100 140 160 185 220 255>;
8687
pwms = <&pwm11 0 50000 1>;
8788
};
8889

@@ -579,6 +580,76 @@
579580
status = "okay";
580581
};
581582

583+
&soc_thermal {
584+
sustainable-power = <5000>; /* milliwatts */
585+
polling-delay = <1000>;
586+
polling-delay-passive = <2000>;
587+
trips {
588+
trip0: trip-point@0 {
589+
temperature = <55000>;
590+
hysteresis = <5000>;
591+
type = "active";
592+
};
593+
trip1: trip-point@1 {
594+
temperature = <60000>;
595+
hysteresis = <5000>;
596+
type = "active";
597+
};
598+
trip2: trip-point@2 {
599+
temperature = <65000>;
600+
hysteresis = <5000>;
601+
type = "active";
602+
};
603+
trip3: trip-point@3 {
604+
temperature = <70000>;
605+
hysteresis = <5000>;
606+
type = "active";
607+
};
608+
trip4: trip-point@4 {
609+
temperature = <75000>;
610+
hysteresis = <5000>;
611+
type = "active";
612+
};
613+
pcritical: trip-point@5 {
614+
temperature = <80000>;
615+
hysteresis = <1000>;
616+
type = "active";
617+
};
618+
};
619+
cooling-maps {
620+
map0 {
621+
trip = <&trip0>;
622+
cooling-device = <&fan 0 1>;
623+
contribution = <1024>;
624+
};
625+
map1 {
626+
trip = <&trip1>;
627+
cooling-device = <&fan 1 2>;
628+
contribution = <1024>;
629+
};
630+
map2 {
631+
trip = <&trip2>;
632+
cooling-device = <&fan 2 3>;
633+
contribution = <1024>;
634+
};
635+
map3 {
636+
trip = <&trip3>;
637+
cooling-device = <&fan 3 4>;
638+
contribution = <1024>;
639+
};
640+
map4 {
641+
trip = <&trip4>;
642+
cooling-device = <&fan 4 5>;
643+
contribution = <1024>;
644+
};
645+
map5 {
646+
trip = <&pcritical>;
647+
cooling-device = <&fan 5 6>;
648+
contribution = <1024>;
649+
};
650+
};
651+
};
652+
582653
&iep {
583654
status = "okay";
584655
};

0 commit comments

Comments
 (0)