Skip to content

Commit 580e76c

Browse files
nordic-baminordic-piks
authored andcommitted
tests: benchmarks: PM - several fixes for the legacy platforms
Fix GPIO and QDEC tests for nrf52 and nrf53 Signed-off-by: Bartosz Miller <[email protected]>
1 parent 040445a commit 580e76c

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

tests/benchmarks/power_consumption/gpio/boards/nrf52840dk_nrf52840.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
compatible = "gpio-leds";
99

1010
output0: output_0 {
11-
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
11+
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
1212
label = "GPIO output 0";
1313
};
1414
};
@@ -17,7 +17,7 @@
1717
compatible = "gpio-keys";
1818

1919
input0: input_0 {
20-
gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH)>;
20+
gpios = <&gpio1 13 (GPIO_ACTIVE_HIGH)>;
2121
label = "GPIO input 0";
2222
};
2323
};

tests/benchmarks/power_consumption/gpio/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
compatible = "gpio-leds";
99

1010
output0: output_0 {
11-
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
11+
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
1212
label = "GPIO output 0";
1313
};
1414
};
@@ -17,7 +17,7 @@
1717
compatible = "gpio-keys";
1818

1919
input0: input_0 {
20-
gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH)>;
20+
gpios = <&gpio1 13 (GPIO_ACTIVE_HIGH)>;
2121
label = "GPIO input 0";
2222
};
2323
};

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020
encoder-emulate {
2121
compatible = "gpio-leds";
2222
phase_a: phase_a {
23-
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
23+
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
2424
};
2525
phase_b: phase_b {
26-
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
26+
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
2727
};
2828
};
2929
};
3030

3131
&pinctrl {
3232
qdec_pinctrl: qdec_pinctrl {
3333
group1 {
34-
psels = <NRF_PSEL(QDEC_A, 1, 2)>,
35-
<NRF_PSEL(QDEC_B, 1, 4)>;
34+
psels = <NRF_PSEL(QDEC_A, 1, 13)>,
35+
<NRF_PSEL(QDEC_B, 1, 15)>;
3636
};
3737
};
3838
qdec_sleep_pinctrl: qdec_sleep_pinctrl {
3939
group1 {
40-
psels = <NRF_PSEL(QDEC_A, 1, 2)>,
41-
<NRF_PSEL(QDEC_B, 1, 4)>;
40+
psels = <NRF_PSEL(QDEC_A, 1, 13)>,
41+
<NRF_PSEL(QDEC_B, 1, 15)>;
4242
low-power-enable;
4343
};
4444
};

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,31 @@
2020
encoder-emulate {
2121
compatible = "gpio-leds";
2222
phase_a: phase_a {
23-
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
23+
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
2424
};
2525
phase_b: phase_b {
26-
gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
26+
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
2727
};
2828
};
2929
};
3030

3131
&pinctrl {
3232
qdec_pinctrl: qdec_pinctrl {
3333
group1 {
34-
psels = <NRF_PSEL(QDEC_A, 0, 5)>,
35-
<NRF_PSEL(QDEC_B, 0, 7)>;
34+
psels = <NRF_PSEL(QDEC_A, 1, 13)>,
35+
<NRF_PSEL(QDEC_B, 1, 15)>;
3636
};
3737
};
3838
qdec_sleep_pinctrl: qdec_sleep_pinctrl {
3939
group1 {
40-
psels = <NRF_PSEL(QDEC_A, 0, 5)>,
41-
<NRF_PSEL(QDEC_B, 0, 7)>;
40+
psels = <NRF_PSEL(QDEC_A, 1, 13)>,
41+
<NRF_PSEL(QDEC_B, 1, 15)>;
4242
low-power-enable;
4343
};
4444
};
4545
};
4646

47-
&gpio0 {
47+
&gpio1 {
4848
status = "okay";
4949
};
5050

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ CONFIG_PM=y
22
CONFIG_PM_S2RAM=y
33
CONFIG_POWEROFF=y
44
CONFIG_PM_S2RAM_CUSTOM_MARKING=y
5+
6+
CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y

0 commit comments

Comments
 (0)