Skip to content

Commit bd31383

Browse files
committed
tests: comparator: micorchip: Add board overlay file
Add board overlay file for sam_e54_xpro to enable comparator test cases to run on this board. Signed-off-by: Arunprasath P <arunprasath.p@microchip.com>
1 parent 58b1aba commit bd31383

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* PA4 looped back to PA5
9+
*/
10+
11+
/ {
12+
aliases {
13+
test-comp = &ac;
14+
};
15+
16+
zephyr,user {
17+
test-gpios = <&porta 5 GPIO_ACTIVE_HIGH>;
18+
};
19+
};
20+
21+
&porta {
22+
status = "okay";
23+
};
24+
25+
&ac {
26+
comparator-channel = <0>;
27+
positive-mux-input = "pin0";
28+
negative-mux-input = "bandgap";
29+
interrupt-selection = "toggle";
30+
run-standby;
31+
hysteresis-enable;
32+
hysteresis-level = "hyst150";
33+
filter-length = "maj5";
34+
// single-shot-mode;
35+
36+
/* Assign pinctrl for PA04 */
37+
pinctrl-0 = <&pinctrl_ac>;
38+
pinctrl-names = "default";
39+
40+
status = "okay";
41+
};
42+
43+
&pinctrl {
44+
pinctrl_ac: ac_pins {
45+
group1 {
46+
pinmux = <PA4B_AC_AIN0>; /* PA5B_AC_AIN1 */
47+
};
48+
};
49+
};

0 commit comments

Comments
 (0)