b0948126031b8f643326fb834cc840b751f0243f
[openwrt/staging/ansuel.git] /
1 From 2f8064b9c4a012b4d4e8383818f13b682b6c156a Mon Sep 17 00:00:00 2001
2 From: Alexey Charkov <alchark@gmail.com>
3 Date: Mon, 17 Jun 2024 22:28:52 +0400
4 Subject: [PATCH] arm64: dts: rockchip: enable thermal management on all RK3588
5 boards
6
7 This enables the on-chip thermal monitoring sensor (TSADC) on all
8 RK3588(s) boards that don't have it enabled yet. It provides temperature
9 monitoring for the SoC and emergency thermal shutdowns, and is thus
10 important to have in place before CPU DVFS is enabled, as high CPU
11 operating performance points can overheat the chip quickly in the
12 absence of thermal management.
13
14 Signed-off-by: Alexey Charkov <alchark@gmail.com>
15 Link: https://lore.kernel.org/r/20240617-rk-dts-additions-v5-2-c1f5f3267f1e@gmail.com
16 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
17 ---
18 arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts | 4 ++++
19 arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi | 4 ++++
20 arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts | 4 ++++
21 arch/arm64/boot/dts/rockchip/rk3588-ok3588-c.dts | 4 ++++
22 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 4 ++++
23 arch/arm64/boot/dts/rockchip/rk3588-toybrick-x0.dts | 4 ++++
24 arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi | 4 ++++
25 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 4 ++++
26 8 files changed, 32 insertions(+)
27
28 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
29 +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
30 @@ -807,6 +807,10 @@
31 status = "okay";
32 };
33
34 +&tsadc {
35 + status = "okay";
36 +};
37 +
38 &u2phy2 {
39 status = "okay";
40 };
41 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
42 +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
43 @@ -787,6 +787,10 @@
44 };
45 };
46
47 +&tsadc {
48 + status = "okay";
49 +};
50 +
51 &uart2 {
52 pinctrl-0 = <&uart2m0_xfer>;
53 status = "okay";
54 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
55 +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
56 @@ -711,6 +711,10 @@
57 };
58 };
59
60 +&tsadc {
61 + status = "okay";
62 +};
63 +
64 &u2phy0 {
65 status = "okay";
66 };