Skip to content

Commit cd26bd7

Browse files
nordic-seglcfriedt
authored andcommitted
tests: boards: nrf: comp: Enable test on nrf54lm20dk
Add overlay required to run the test on nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent cfd6a06 commit cd26bd7

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_TEST_COMP_SE_PSEL_AIN_INDEX=1
2+
CONFIG_TEST_COMP_SE_EXTREFSEL_AIN_INDEX=4
3+
CONFIG_TEST_COMP_DIFF_PSEL_AIN_INDEX=6
4+
CONFIG_TEST_COMP_DIFF_EXTREFSEL_AIN_INDEX=5
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Two loopbacks are used
2+
* Each loopback is between analog input and GPIO.
3+
* first-gpios (P1.03) -> AIN6 (P1.04)
4+
* second-gpios (P1.30, AIN2) -> AIN1 (P1.31)
5+
* AIN4 (P1.06) tied to VDD
6+
*/
7+
8+
/ {
9+
aliases {
10+
test-comp = &comp;
11+
};
12+
13+
zephyr,user {
14+
first-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
15+
second-gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
16+
};
17+
};
18+
19+
&gpio1 {
20+
status = "okay";
21+
};
22+
23+
&comp {
24+
status = "okay";
25+
psel = "AIN4";
26+
refsel = "AREF";
27+
extrefsel= "AIN3";
28+
sp-mode = "NORMAL";
29+
th-up = <36>;
30+
th-down = <30>;
31+
isource = "DISABLED";
32+
enable-hyst;
33+
};

tests/boards/nrf/comp/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ tests:
1212
platform_allow:
1313
- nrf54h20dk/nrf54h20/cpuapp
1414
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54lm20dk/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)