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

58 lines
1.6 KiB
Diff
Raw Normal View History

From 88c6b8a72c1fb3eaaa8edd63f0c779c913a08f83 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Tue, 18 Jul 2023 13:47:04 +0200
Subject: [PATCH 186/464] arm64: dts: rk3399-pinebook-pro: Add DMC nodes
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
.../boot/dts/rockchip/rk3399-pinebook-pro.dts | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
index c68576e581ff..c3beea387a28 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
@@ -414,6 +414,39 @@ &cdn_dp {
phys = <&tcphy0_dp>;
};
+&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;
+ };
+};
+
&edp {
force-hpd;
status = "okay";
--
2.34.1