RK3568-设备树休眠唤醒

设备树

rockchip_suspend: rockchip-suspend {
	compatible = "rockchip,pm-rk3568";
	status = "disabled";
	rockchip,sleep-debug-en = <1>;
	rockchip,sleep-mode-config = <
		(0
		| RKPM_SLP_ARMOFF_LOGOFF		//断电arm和logic
		| RKPM_SLP_CENTER_OFF
		| RKPM_SLP_HW_PLLS_OFF
		| RKPM_SLP_PMUALIVE_32K
		| RKPM_SLP_OSC_DIS
		| RKPM_SLP_PMIC_LP
		| RKPM_SLP_32K_PVTM
		)
	>;
	rockchip,wakeup-config = <
		(0
		| RKPM_GPIO_WKUP_EN		//使能GPIO唤醒
		)
	>;
};

休眠唤醒功能宏定义文件:include/dt-bindings/suspend/rockchip-rk3568.h

#define RKPM_SLP_WFI			BIT(0)
#define RKPM_SLP_ARMOFF			BIT(1)
#define RKPM_SLP_CENTER_OFF		BIT(2)
#define RKPM_SLP_ARM

你可能感兴趣的:(RK3568,linux)