From: Sam Edwards <cfsworks@gmail.com>
To: Heiko Stuebner <heiko@sntech.de>
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Ondrej Jirman" <megi@xff.cz>,
"Chris Morgan" <macromorgan@hotmail.com>,
"Alex Zhao" <zzc@rock-chips.com>,
"Dragan Simic" <dsimic@manjaro.org>,
"FUKAUMI Naoki" <naoki@radxa.com>,
"Sebastian Reichel" <sebastian.reichel@collabora.com>,
"Jing Luo" <jing@jing.rocks>,
"Kever Yang" <kever.yang@rock-chips.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
"Daniel Kukieła" <daniel@kukiela.pl>,
"Joshua Riek" <jjriek@verizon.net>,
"Sam Edwards" <CFSworks@gmail.com>,
soxrok2212 <soxrok2212@gmail.com>
Subject: [PATCH 3/5] arm64: dts: rockchip: Enable automatic fan control on Turing RK1
Date: Wed, 11 Sep 2024 19:50:32 -0700 [thread overview]
Message-ID: <20240912025034.180233-4-CFSworks@gmail.com> (raw)
In-Reply-To: <20240912025034.180233-1-CFSworks@gmail.com>
This patch adds thermal trip points and cooling maps to the Turing RK1
in order to enable automatic control of the external PWM fan. The fan is
not active below 45C, as the heatsink alone can generally keep the chip
in this temperature region at idle load. This cooling profile errs on
the side of quietness, since the RK1 is commonly deployed in a Turing
Pi 2 clusterboard alongside three others, with additional cooling
provided at the chassis level.
Helped-by: soxrok2212 <soxrok2212@gmail.com>
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
---
.../boot/dts/rockchip/rk3588-turing-rk1.dtsi | 53 +++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi
index 9bcb5acdea54..f6a12fe12d45 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi
@@ -208,6 +208,59 @@ rgmii_phy: ethernet-phy@1 {
};
};
+&package_thermal {
+ trips {
+ package_active1: trip-active1 {
+ temperature = <45000>;
+ hysteresis = <5000>;
+ type = "active";
+ };
+ package_active2: trip-active2 {
+ temperature = <50000>;
+ hysteresis = <5000>;
+ type = "active";
+ };
+ package_active3: trip-active3 {
+ temperature = <60000>;
+ hysteresis = <5000>;
+ type = "active";
+ };
+ package_active4: trip-active4 {
+ temperature = <70000>;
+ hysteresis = <5000>;
+ type = "active";
+ };
+ package_active5: trip-active5 {
+ temperature = <80000>;
+ hysteresis = <5000>;
+ type = "active";
+ };
+ };
+
+ cooling-maps {
+ map1 {
+ trip = <&package_active1>;
+ cooling-device = <&fan 1 1>;
+ };
+ map2 {
+ trip = <&package_active2>;
+ cooling-device = <&fan 2 2>;
+ };
+ map3 {
+ trip = <&package_active3>;
+ cooling-device = <&fan 3 3>;
+ };
+ map4 {
+ trip = <&package_active4>;
+ cooling-device = <&fan 4 4>;
+ };
+ map5 {
+ trip = <&package_active5>;
+ cooling-device = <&fan 5 5>;
+ };
+ };
+};
+
&pcie2x1l1 {
linux,pci-domain = <1>;
pinctrl-names = "default";
--
2.44.2
next prev parent reply other threads:[~2024-09-12 2:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 2:50 [PATCH 0/5] Turing RK1 SoM DT updates Sam Edwards
2024-09-12 2:50 ` [PATCH 1/5] arm64: dts: rockchip: Split up RK3588's PCIe pinctrls Sam Edwards
2024-09-12 2:50 ` [PATCH 2/5] arm64: dts: rockchip: Fix Turing RK1 PCIe3 hang Sam Edwards
2024-09-12 2:50 ` Sam Edwards [this message]
2024-09-12 2:50 ` [PATCH 4/5] arm64: dts: rockchip: Enable all 3 USBs on Turing RK1 Sam Edwards
2024-09-12 19:53 ` Jonas Karlman
2024-09-12 21:06 ` Sam Edwards
2024-09-12 22:35 ` Jonas Karlman
2024-09-12 23:20 ` Sam Edwards
2024-09-12 2:50 ` [PATCH 5/5] arm64: dts: rockchip: Enable GPU " Sam Edwards
2024-09-30 10:55 ` (subset) [PATCH 0/5] Turing RK1 SoM DT updates Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240912025034.180233-4-CFSworks@gmail.com \
--to=cfsworks@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@kukiela.pl \
--cc=devicetree@vger.kernel.org \
--cc=dsimic@manjaro.org \
--cc=heiko@sntech.de \
--cc=jing@jing.rocks \
--cc=jjriek@verizon.net \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=macromorgan@hotmail.com \
--cc=megi@xff.cz \
--cc=naoki@radxa.com \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=soxrok2212@gmail.com \
--cc=zzc@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).