mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
arm64: dts: rockchip: rk3568: add rockchip-suspend node
Change-Id: I1b298724bdcb527c91a5fc2656590865730539bb Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
This commit is contained in:
parent
4485e65cb4
commit
c75258fee8
|
|
@ -11,6 +11,7 @@
|
|||
#include <dt-bindings/phy/phy.h>
|
||||
#include <dt-bindings/power/rk3568-power.h>
|
||||
#include <dt-bindings/soc/rockchip-system-status.h>
|
||||
#include <dt-bindings/suspend/rockchip-rk3568.h>
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
#include "rk3568-dram-default-timing.dtsi"
|
||||
|
||||
|
|
@ -281,6 +282,26 @@ drm_logo: drm-logo@00000000 {
|
|||
};
|
||||
};
|
||||
|
||||
rockchip_suspend: rockchip-suspend {
|
||||
compatible = "rockchip,pm-rk3568";
|
||||
status = "disabled";
|
||||
rockchip,sleep-debug-en = <0>;
|
||||
rockchip,sleep-mode-config = <
|
||||
(0
|
||||
| RKPM_SLP_ARMOFF
|
||||
| RKPM_SLP_PMU_PMUALIVE_32K
|
||||
| RKPM_SLP_PMU_DIS_OSC
|
||||
| RKPM_SLP_PMIC_LP
|
||||
| RKPM_SLP_32K_EXT
|
||||
)
|
||||
>;
|
||||
rockchip,wakeup-config = <
|
||||
(0
|
||||
| RKPM_GPIO_WKUP_EN
|
||||
)
|
||||
>;
|
||||
};
|
||||
|
||||
rockchip_system_monitor: rockchip-system-monitor {
|
||||
compatible = "rockchip,system-monitor";
|
||||
|
||||
|
|
|
|||
58
include/dt-bindings/suspend/rockchip-rk3568.h
Normal file
58
include/dt-bindings/suspend/rockchip-rk3568.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
||||
/*
|
||||
* Header providing constants for Rockchip suspend bindings.
|
||||
*
|
||||
* Copyright (C) 2021, Rockchip Electronics Co., Ltd.
|
||||
* Author: XiaoDong.Huang
|
||||
*/
|
||||
|
||||
#ifndef __DT_BINDINGS_SUSPEND_ROCKCHIP_RK3568_H__
|
||||
#define __DT_BINDINGS_SUSPEND_ROCKCHIP_RK3568_H__
|
||||
/******************************bits ops************************************/
|
||||
|
||||
#ifndef BIT
|
||||
#define BIT(nr) (1 << (nr))
|
||||
#endif
|
||||
|
||||
#define RKPM_SLP_ARMPD BIT(0)
|
||||
#define RKPM_SLP_ARMOFF BIT(1)
|
||||
#define RKPM_SLP_ARMOFF_DDRPD BIT(2)
|
||||
#define RKPM_SLP_ARMOFF_LOGOFF BIT(3)
|
||||
#define RKPM_SLP_FROM_UBOOT BIT(4)
|
||||
#define RKPM_SLP_ULTRA BIT(5)
|
||||
#define RKPM_SLP_PIN_REVERSE BIT(6)
|
||||
|
||||
/* all plls except ddr's pll */
|
||||
#define RKPM_SLP_PMU_HW_PLLS_PD BIT(8)
|
||||
#define RKPM_SLP_PMU_PMUALIVE_32K BIT(9)
|
||||
#define RKPM_SLP_PMU_DIS_OSC BIT(10)
|
||||
|
||||
#define RKPM_SLP_CLK_GT BIT(16)
|
||||
#define RKPM_SLP_PMIC_LP BIT(17)
|
||||
|
||||
#define RKPM_SLP_32K_EXT BIT(24)
|
||||
#define RKPM_SLP_TIME_OUT_WKUP BIT(25)
|
||||
#define RKPM_SLP_PMU_DBG BIT(26)
|
||||
|
||||
/* the wake up source */
|
||||
#define RKPM_CLUSTER_WKUP_EN BIT(0)
|
||||
#define RKPM_GPIO_WKUP_EN BIT(2)
|
||||
#define RKPM_SDIO_WKUP_EN BIT(3)
|
||||
#define RKPM_SDMMC_WKUP_EN BIT(4)
|
||||
#define RKPM_UART0_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_TIME_OUT_WKUP_EN BIT(10)
|
||||
|
||||
#define RKPM_SLP_LDO1_ON BIT(0)
|
||||
#define RKPM_SLP_LDO2_ON BIT(1)
|
||||
#define RKPM_SLP_LDO3_ON BIT(2)
|
||||
#define RKPM_SLP_LDO4_ON BIT(3)
|
||||
#define RKPM_SLP_LDO5_ON BIT(4)
|
||||
#define RKPM_SLP_LDO6_ON BIT(5)
|
||||
#define RKPM_SLP_LDO7_ON BIT(6)
|
||||
#define RKPM_SLP_LDO8_ON BIT(7)
|
||||
#define RKPM_SLP_LDO9_ON BIT(8)
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user