Skip to content

Commit 70a4902

Browse files
jaz1-nordicmasz-nordic
authored andcommitted
tests: comp: Align boards overlays for changed input types
Align test boards overlays for changed comparator input types. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 25d1c49 commit 70a4902

14 files changed

+43
-15
lines changed

tests/benchmarks/current_consumption/system_off/boards/nrf54h20dk_nrf54h20_cpuapp_lpcomp_wakeup.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
2+
13
&gpio1 {
24
status = "okay";
35
};
46

57
&comp {
68
compatible = "nordic,nrf-lpcomp";
7-
psel = "AIN2"; /* P1.02 */
9+
psel = <NRF_COMP_AIN2>; /* P1.02 */
810
refsel = "VDD_4_8";
911
status = "okay";
1012
zephyr,pm-device-runtime-auto;

tests/benchmarks/current_consumption/system_off/boards/nrf54l15dk_nrf54l15_cpuapp_lpcomp_wakeup.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
2+
13
&comp {
24
compatible = "nordic,nrf-lpcomp";
3-
psel = "AIN1";
5+
psel = <NRF_COMP_AIN1>;
46
refsel = "VDD_4_8";
57
status = "okay";
68
enable-hyst;

tests/benchmarks/current_consumption/system_off/boards/nrf54lm20dk_nrf54lm20a_cpuapp_lpcomp_wakeup.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
2+
13
&comp {
24
compatible = "nordic,nrf-lpcomp";
3-
psel = "AIN1"; /* P1.31 */
5+
psel = <NRF_COMP_AIN1>; /* P1.31 */
46
refsel = "VDD_4_8";
57
status = "okay";
68
enable-hyst;

tests/benchmarks/current_consumption/system_off/boards/nrf54lv10dk_nrf54lv10a_cpuapp_lpcomp_wakeup.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
2+
13
&comp {
24
compatible = "nordic,nrf-lpcomp";
3-
psel = "AIN6"; /* P1.11 */
5+
psel = <NRF_COMP_AIN6>; /* P1.11 */
46
refsel = "VDD_4_8";
57
status = "okay";
68
enable-hyst;

tests/benchmarks/multicore/idle_comp/boards/comp.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
&comp {
810
main-mode = "SE";
9-
psel = "AIN2"; /* P1.02 */
11+
psel = <NRF_COMP_AIN2>; /* P1.02 */
1012
refsel = "INT_1V2";
1113
sp-mode = "HIGH";
1214
th-up = <63>;

tests/benchmarks/multicore/idle_comp/boards/lpcomp.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
&comp {
810
compatible = "nordic,nrf-lpcomp";
9-
psel = "AIN2"; /* P1.02 */
11+
psel = <NRF_COMP_AIN2>; /* P1.02 */
1012
refsel = "VDD_4_8";
1113
status = "okay";
1214
};

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
/ {
810
aliases {
911
led = &led0;
@@ -21,7 +23,7 @@
2123

2224
&comp {
2325
compatible = "nordic,nrf-lpcomp";
24-
psel = "AIN0"; /* P0.04 */
26+
psel = <NRF_COMP_AIN0>; /* P0.04 */
2527
refsel = "VDD_4_8";
2628
status = "okay";
2729
};

tests/benchmarks/power_consumption/lpcomp/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
/ {
810
aliases {
911
led = &led0;
@@ -24,7 +26,7 @@
2426

2527
&comp {
2628
compatible = "nordic,nrf-lpcomp";
27-
psel = "AIN2"; /* P1.02 */
29+
psel = <NRF_COMP_AIN2>; /* P1.02 */
2830
refsel = "VDD_4_8";
2931
status = "okay";
3032
zephyr,pm-device-runtime-auto;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
/ {
810
aliases {
911
led = &button3;
@@ -21,7 +23,7 @@
2123

2224
&comp {
2325
compatible = "nordic,nrf-lpcomp";
24-
psel = "AIN4"; /* P1.11 */
26+
psel = <NRF_COMP_AIN4>; /* P1.11 */
2527
refsel = "VDD_4_8";
2628
status = "okay";
2729
};

tests/benchmarks/power_consumption/lpcomp/boards/nrf54lm20dk_nrf54lm20a_cpuapp.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/dt-bindings/comparator/nrf-comp.h>
8+
79
/ {
810
aliases {
911
led = &led0;
@@ -24,7 +26,7 @@
2426

2527
&comp {
2628
compatible = "nordic,nrf-lpcomp";
27-
psel = "AIN1"; /* P1.31 */
29+
psel = <NRF_COMP_AIN1>; /* P1.31 */
2830
refsel = "VDD_4_8";
2931
status = "okay";
3032
};

0 commit comments

Comments
 (0)