From 4b04eee7a142e1aef3a1744b30c1b1f29a7b1014 Mon Sep 17 00:00:00 2001 From: XiaoDong Huang Date: Thu, 18 May 2017 20:06:35 +0800 Subject: [PATCH] arm64: dts: rk3368: add wakeup-config in rockchip-suspend Change-Id: Ibf4ba154d59e99332e68ca5451b0045e15fa850d Signed-off-by: XiaoDong Huang --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 6 ++++++ include/dt-bindings/suspend/rockchip-rk3368.h | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index 4f43af5e6c12..614f64f13695 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -2188,5 +2188,11 @@ | RKPM_SLP_SFT_PD_NBSCUS ) >; + rockchip,wakeup-config = < + (0 + | RKPM_GPIO_WKUP_EN + | RKPM_USB_WKUP_EN + ) + >; }; }; diff --git a/include/dt-bindings/suspend/rockchip-rk3368.h b/include/dt-bindings/suspend/rockchip-rk3368.h index e8d4f5e7c702..9873f8236a8b 100644 --- a/include/dt-bindings/suspend/rockchip-rk3368.h +++ b/include/dt-bindings/suspend/rockchip-rk3368.h @@ -39,4 +39,18 @@ #define RKPM_SLP_SFT_32K_EXT BIT(17) #define RKPM_SLP_SFT_PD_PERI BIT(18) #define RKPM_SLP_SFT_PD_NBSCUS BIT(19) /* noboot scus in muti-cluster */ + +/* the wake up source */ +#define RKPM_CLUSTER_L_WKUP_EN BIT(0) +#define RKPM_CLUSTER_B_WKUPB_EN BIT(1) +#define RKPM_GPIO_WKUP_EN BIT(2) +#define RKPM_SDIO_WKUP_EN BIT(3) +#define RKPM_SDMMC_WKUP_EN BIT(4) +#define RKPM_SIM_WKUP_EN BIT(5) +#define RKPM_TIMER_WKUP_EN BIT(6) +#define RKPM_USB_WKUP_EN BIT(7) +#define RKPM_SFT_WKUP_EN BIT(8) +#define RKPM_WDT_M0_WKUP_EN BIT(9) +#define RKPM_TIME_OUT_WKUP_EN BIT(10) + #endif -- 2.34.1