zephyr: npcx: hibernate_psl: make this option relies on dt node's status

Make the Kconfig hibernate_psl option enable automatically if the
'nuvoton,npcx-power-psl' DT node's status is 'okay'. The CL also
removes this option in the prj.conf files since we needn't enable it
explicitly.

BRANCH=none
BUG=none
TEST=Compared the .config on herobrine, skyrim, and nivviks. Passed
     'hibernate' console command on npcx9 evb.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Change-Id: Ic2aa6ea091a5b108237307884531a32d4107885d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3757281
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
diff --git a/zephyr/Kconfig.system b/zephyr/Kconfig.system
index c9b67a6..66586b6 100644
--- a/zephyr/Kconfig.system
+++ b/zephyr/Kconfig.system
@@ -2,6 +2,8 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+DT_COMPAT_NUVOTON_NPCX_POWER_PSL := nuvoton,npcx-power-psl
+
 if PLATFORM_EC
 
 config PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD
@@ -20,6 +22,7 @@
 
 config PLATFORM_EC_HIBERNATE_PSL
 	bool "System hibernating with PSL (Power Switch Logic) mechanism"
+	default $(dt_compat_enabled,$(DT_COMPAT_NUVOTON_NPCX_POWER_PSL))
 	depends on SOC_FAMILY_NPCX
 	help
 	  Use PSL (Power Switch Logic) for hibernating. It turns off VCC power
diff --git a/zephyr/projects/brya/prj.conf b/zephyr/projects/brya/prj.conf
index 7ce897a..fc2b87e 100644
--- a/zephyr/projects/brya/prj.conf
+++ b/zephyr/projects/brya/prj.conf
@@ -86,9 +86,6 @@
 CONFIG_PLATFORM_EC_THERMISTOR=y
 CONFIG_PLATFORM_EC_TEMP_SENSOR_POWER=y
 
-# Miscellaneous configs
-CONFIG_PLATFORM_EC_HIBERNATE_PSL=y
-
 # MKBP event
 CONFIG_PLATFORM_EC_MKBP_EVENT=y
 CONFIG_PLATFORM_EC_MKBP_INPUT_DEVICES=y
diff --git a/zephyr/projects/herobrine/prj.conf b/zephyr/projects/herobrine/prj.conf
index e16d5c7..81b2718 100644
--- a/zephyr/projects/herobrine/prj.conf
+++ b/zephyr/projects/herobrine/prj.conf
@@ -26,9 +26,6 @@
 CONFIG_SHELL_TAB=y
 CONFIG_SHELL_TAB_AUTOCOMPLETION=y
 
-# Miscellaneous configs
-CONFIG_PLATFORM_EC_HIBERNATE_PSL=y
-
 # LED
 CONFIG_PLATFORM_EC_LED_COMMON=n
 CONFIG_PLATFORM_EC_LED_DT=y
diff --git a/zephyr/projects/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf
index 22b32b1..aa7e36a 100644
--- a/zephyr/projects/npcx_evb/npcx9/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx9/prj.conf
@@ -57,7 +57,4 @@
 # Avoid underflow info from tachometer
 CONFIG_SENSOR_LOG_LEVEL_ERR=y
 
-# Hibernate and wake
-CONFIG_PLATFORM_EC_HIBERNATE_PSL=y
-
 CONFIG_SYSCON=y
diff --git a/zephyr/projects/skyrim/prj.conf b/zephyr/projects/skyrim/prj.conf
index 47e9c1d..c6b5d3a 100644
--- a/zephyr/projects/skyrim/prj.conf
+++ b/zephyr/projects/skyrim/prj.conf
@@ -133,7 +133,6 @@
 
 # Hibernate and wake
 CONFIG_PLATFORM_EC_BOARD_RESET_AFTER_POWER_ON=y
-CONFIG_PLATFORM_EC_HIBERNATE_PSL=y
 
 # Motion sense
 CONFIG_PLATFORM_EC_MOTIONSENSE=y