Skip to content

Commit 1c1689b

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: zephyr: boards: nrf: comp: Enable test on PCA10197
Add overlays that define correct Loopbacks for the test to be run on PCA10197. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent adac777 commit 1c1689b

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

tests/zephyr/boards/nrf/comp/boards/nrf54lm20apdk_nrf54lm20a_cpuapp.overlay

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
/* Two loopbacks are used
2+
* Each loopback is between analog input and GPIO.
3+
* first-gpios (P1.19) -> AIN3 (P1.29)
4+
* second-gpios (P1.30, AIN2) -> AIN1 (P1.31)
5+
* AIN5 (P1.05) tied to low (UART1_RX)
6+
*/
7+
18
/ {
29
aliases {
310
test-comp = &comp;
411
};
512

613
zephyr,user {
7-
first-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
8-
second-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
14+
first-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
15+
second-gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
916
};
1017
};
1118

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/ {
2+
aliases {
3+
test-comp = &comp;
4+
};
5+
6+
zephyr,user {
7+
first-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
8+
second-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
9+
};
10+
};
11+
12+
&gpio1 {
13+
status = "okay";
14+
};
15+
16+
&comp {
17+
status = "okay";
18+
psel = "AIN4";
19+
refsel = "AREF";
20+
extrefsel= "AIN3";
21+
sp-mode = "NORMAL";
22+
th-up = <36>;
23+
th-down = <30>;
24+
isource = "DISABLED";
25+
enable-hyst;
26+
};

tests/zephyr/boards/nrf/comp/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ tests:
1111
- nrf54l09pdk/nrf54l09/cpuapp
1212
- nrf54l20pdk/nrf54l20/cpuapp
1313
- nrf54lm20apdk/nrf54lm20a/cpuapp
14+
- [email protected]/nrf54lm20a/cpuapp
1415
- nrf54lv10apdk/nrf54lv10a/cpuapp
1516
integration_platforms:
1617
- nrf54l09pdk/nrf54l09/cpuapp
1718
- nrf54l20pdk/nrf54l20/cpuapp
1819
- nrf54lm20apdk/nrf54lm20a/cpuapp
20+
- [email protected]/nrf54lm20a/cpuapp
1921
- nrf54lv10apdk/nrf54lv10a/cpuapp

0 commit comments

Comments
 (0)