Skip to content

Commit f090408

Browse files
nordic-piksnordicjm
authored andcommitted
tests: benchmarks: power_consumption: qdec: enable PM_DEVICE
Define sleep configuration. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 1edc609 commit f090408

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

tests/benchmarks/power_consumption/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
CONFIG_NRFS=y
22

3-
# Enable runtime power management for peripheral
4-
CONFIG_PM_DEVICE=y
5-
CONFIG_PM_DEVICE_RUNTIME=y
6-
73
CONFIG_PM=y
84
CONFIG_PM_S2RAM=y
95
CONFIG_POWEROFF=y

tests/benchmarks/power_consumption/qdec/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<NRF_PSEL(QDEC_B, 1, 10)>;
2929
};
3030
};
31+
32+
qdec_sleep_pinctrl: qdec_sleep_pinctrl {
33+
group1 {
34+
psels = <NRF_PSEL(QDEC_A, 1, 8)>,
35+
<NRF_PSEL(QDEC_B, 1, 10)>;
36+
low-power-enable;
37+
};
38+
};
3139
};
3240

3341
&gpio1 {
@@ -37,7 +45,9 @@
3745
&qdec20 {
3846
status = "okay";
3947
pinctrl-0 = <&qdec_pinctrl>;
40-
pinctrl-names = "default";
48+
pinctrl-1 = <&qdec_sleep_pinctrl>;
49+
pinctrl-names = "default", "sleep";
4150
steps = <127>;
4251
led-pre = <500>;
52+
zephyr,pm-device-runtime-auto;
4353
};

tests/benchmarks/power_consumption/qdec/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
CONFIG_SENSOR=y
22

3+
# Enable runtime power management for peripheral
4+
CONFIG_PM_DEVICE=y
5+
CONFIG_PM_DEVICE_RUNTIME=y
6+
37
CONFIG_CONSOLE=n
48
CONFIG_UART_CONSOLE=n
59
CONFIG_SERIAL=n

0 commit comments

Comments
 (0)