Skip to content

Commit a4fce33

Browse files
bjarki-andreasennashif
authored andcommitted
tests: drivers: build_all: comparator: add nrf_lpcomp
Add nrf_lpcomp to build_all comparator test suite. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 04e70ab commit a4fce33

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&comp {
8+
compatible = "nordic,nrf-lpcomp";
9+
psel = "AIN0";
10+
refsel = "VDD_4_8";
11+
status = "okay";
12+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&comp {
8+
compatible = "nordic,nrf-lpcomp";
9+
psel = "AIN0";
10+
refsel = "AREF";
11+
extrefsel = "AIN1";
12+
status = "okay";
13+
};

tests/drivers/build_all/comparator/testcase.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,23 @@ tests:
4646
- nrf54h20dk/nrf54h20/cpuapp
4747
- nrf54l15dk/nrf54l15/cpuapp
4848
- nrf9280pdk/nrf9280/cpuapp
49+
drivers.build_all.comparator.nrf_lpcomp.ext_ref:
50+
extra_args:
51+
- DTC_OVERLAY_FILE="nrf_lpcomp/ext_ref.overlay"
52+
platform_allow:
53+
- nrf51dk/nrf51822
54+
- nrf52dk/nrf52832
55+
- nrf5340dk/nrf5340/cpuapp
56+
- nrf54h20dk/nrf54h20/cpuapp
57+
- nrf54l15dk/nrf54l15/cpuapp
58+
- nrf9280pdk/nrf9280/cpuapp
59+
drivers.build_all.comparator.nrf_lpcomp.int_ref:
60+
extra_args:
61+
- DTC_OVERLAY_FILE="nrf_lpcomp/int_ref.overlay"
62+
platform_allow:
63+
- nrf51dk/nrf51822
64+
- nrf52dk/nrf52832
65+
- nrf5340dk/nrf5340/cpuapp
66+
- nrf54h20dk/nrf54h20/cpuapp
67+
- nrf54l15dk/nrf54l15/cpuapp
68+
- nrf9280pdk/nrf9280/cpuapp

0 commit comments

Comments
 (0)