RK3588 EVB1蓝牙休眠唤醒调试
rk平台支持二级休眠,即SOC大部分电都关了,只留下唤醒源需要的电.
rk3588 evb1因为蓝牙相关的部分大部分IO没有接到PMU电源域,所以调试起来需要另外配置,以方便快速验证.
下面,我们以博通AP6275p芯片为例, 分析下快速验证蓝牙休眠唤醒需要的设定(前提是蓝牙已经正常bringup能工作的情况下).
一. DTS全部配置
为了方便只要答案的同学, 这里直接给出配置:
Subject: [PATCH] dts:arm64:rk3588:config for bt wake up from deep sleep
Change-Id: Ia382dbf9860a76d2558f6f6f5f330cd46f58689d
---
.../boot/dts/rockchip/rk3588-evb1-bt-wakeup.dtsi | 52 ++++++++++++++++++++++
.../boot/dts/rockchip/rk3588-evb1-lp4-v10.dts | 1 +
2 files changed, 53 insertions(+)
create mode 100755 arch/arm64/boot/dts/rockchip/rk3588-evb1-bt-wakeup.dtsi
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-bt-wakeup.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-evb1-bt-wakeup.dtsi
new file mode 100755
index 0000000..75f79b8
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-bt-wakeup.dtsi
@@ -0,0 +1,52 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
+ *
+ */
+
+&rockchip_suspend {
+ rockchip,sleep-mode-config = <
+ (0
+ | RKPM_SLP_ARMOFF_DDRPD
+ )
+ >;
+ rockchip,wakeup-config = <
+ (0
+ | RKPM_CPU0_WKUP_EN
+ | RKPM_GPIO_WKUP_EN
+ )
+ >;
+
+ status = "okay";
+};
+
+&vdd_log_s0 {
+ regulator-state-mem {
+ regulator-on-in-suspend;
+ regulator-suspend-microvolt = <750000>;
+ };
+};
+
+&vc