Skip to content

Commit a18a79e

Browse files
adamkondraciukgmarull
authored andcommitted
Revert "[nrf fromlist] dts: arm: nordic: Add power states for nRF54H20"
This reverts commit 1eef25b. Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent 581e638 commit a18a79e

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

dts/common/nordic/nrf54h20.dtsi

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
device_type = "cpu";
3232
clocks = <&cpuapp_hsfll>;
3333
clock-frequency = <DT_FREQ_M(320)>;
34-
cpu-power-states = <&idle_cache_disabled &s2ram>;
34+
cpu-power-states = <&idle &s2ram>;
3535
};
3636

3737
cpurad: cpu@3 {
@@ -40,7 +40,6 @@
4040
device_type = "cpu";
4141
clocks = <&cpurad_hsfll>;
4242
clock-frequency = <DT_FREQ_M(256)>;
43-
cpu-power-states = <&idle_cache_disabled>;
4443
};
4544

4645
cpuppr: cpu@d {
@@ -129,14 +128,12 @@
129128
};
130129

131130
power-states {
132-
// substate-id = <0>; is reserved for "idle", cache powered on
133-
// substate-id = <1>; is reserved for "idle-cache-retained"
134-
idle_cache_disabled: idle_cache_disabled {
131+
idle: idle {
135132
compatible = "zephyr,power-state";
136133
power-state-name = "suspend-to-idle";
137-
substate-id = <2>;
138134
min-residency-us = <100000>;
139135
};
136+
140137
s2ram: s2ram {
141138
compatible = "zephyr,power-state";
142139
power-state-name = "suspend-to-ram";

soc/nordic/nrf54h/power.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void nrf_poweroff(void)
6868
nrf_resetinfo_resetreas_local_set(NRF_RESETINFO, 0);
6969
nrf_resetinfo_restore_valid_set(NRF_RESETINFO, false);
7070

71-
#if !defined(NRF_RADIOCORE)
71+
#if !defined(CONFIG_SOC_NRF54H20_CPURAD)
7272
/* Disable retention */
7373
nrf_lrcconf_retain_set(NRF_LRCCONF010, NRF_LRCCONF_POWER_MAIN, false);
7474
nrf_lrcconf_retain_set(NRF_LRCCONF010, NRF_LRCCONF_POWER_DOMAIN_0, false);
@@ -98,7 +98,7 @@ static void s2idle_enter(uint8_t substate_id)
9898
case 1: /* Substate for idle with cache retained - not implemented yet. */
9999
break;
100100
case 2: /* Substate for idle with cache disabled. */
101-
#if !defined(NRF_RADIOCORE)
101+
#if !defined(CONFIG_SOC_NRF54H20_CPURAD)
102102
soc_lrcconf_poweron_request(node, NRF_LRCCONF_POWER_MAIN);
103103
#endif
104104
common_suspend();
@@ -127,7 +127,7 @@ static void s2idle_exit(uint8_t substate_id)
127127
break;
128128
case 2: /* Substate for idle with cache disabled. */
129129
common_resume();
130-
#if !defined(NRF_RADIOCORE)
130+
#if !defined(CONFIG_SOC_NRF54H20_CPURAD)
131131
soc_lrcconf_poweron_release(node, NRF_LRCCONF_POWER_MAIN);
132132
#endif
133133
default: /* Unknown substate. */
@@ -140,7 +140,7 @@ static void s2idle_exit(uint8_t substate_id)
140140
static void s2ram_exit(void)
141141
{
142142
common_resume();
143-
#if !defined(NRF_RADIOCORE)
143+
#if !defined(CONFIG_SOC_NRF54H20_CPURAD)
144144
/* Re-enable domain retention. */
145145
nrf_lrcconf_retain_set(NRF_LRCCONF010, NRF_LRCCONF_POWER_DOMAIN_0, true);
146146
#endif
@@ -156,7 +156,7 @@ static int sys_suspend_to_ram(void)
156156
NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK);
157157
nrf_resetinfo_restore_valid_set(NRF_RESETINFO, true);
158158

159-
#if !defined(NRF_RADIOCORE)
159+
#if !defined(CONFIG_SOC_NRF54H20_CPURAD)
160160
/* Disable retention */
161161
nrf_lrcconf_retain_set(NRF_LRCCONF010, NRF_LRCCONF_POWER_DOMAIN_0, false);
162162
#endif

0 commit comments

Comments
 (0)