build/patch/kernel/archive/sunxi-6.5/patches.megous/arm64-dts-rk3399-rockpro64-Add-DMC-nodes.patch

58 lines
1.5 KiB
Diff
Raw Normal View History

From 81cea3ae73339c290b19312f3be004a63b1facdf Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Tue, 18 Jul 2023 13:47:19 +0200
Subject: [PATCH 187/464] arm64: dts: rk3399-rockpro64: Add DMC nodes
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
.../boot/dts/rockchip/rk3399-rockpro64.dtsi | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
index bca2b50e0a93..37d53e64dc7d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
@@ -291,6 +291,39 @@ map3 {
};
};
+&dfi {
+ status = "okay";
+};
+
+&dmc {
+ // This node can only be enabled by FDT patching from U-Boot that
+ // uses Rockchip TPL/TF-A. DMC only works with the downstream firmware.
+ // If you enabled this on mainline, your phone will lock up on boot.
+ //status = "okay";
+
+ center-supply = <&vdd_center>;
+
+ rockchip,pd-idle-ns = <160>;
+ rockchip,sr-idle-ns = <10240>;
+ rockchip,sr-mc-gate-idle-ns = <40960>;
+ rockchip,srpd-lite-idle-ns = <61440>;
+ rockchip,standby-idle-ns = <81920>;
+
+ rockchip,lpddr4_odt_dis_freq = <666000000>;
+
+ rockchip,srpd-lite-idle-dis-freq-hz = <0>;
+ rockchip,standby-idle-dis-freq-hz = <928000000>;
+ rockchip,sr-mc-gate-idle-dis-freq-hz = <800000000>;
+ rockchip,pd-idle-dis-freq-hz = <800000000>;
+ rockchip,sr-idle-dis-freq-hz = <800000000>;
+};
+
+&dmc_opp_table {
+ opp00 {
+ opp-suspend;
+ };
+};
+
&emmc_phy {
status = "okay";
};
--
2.34.1