Skip to content

Commit f8e92ef

Browse files
khoa-nguyen-18kartben
authored andcommitted
tests: drivers: comparator: Add support gpio_loopback for ek_ra8p1 cm33
Add support test app ``gpio_loopback`` for Renesas ek_ra8p1 cm33 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 400859d commit f8e92ef

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/gpio/gpio.h>
7+
8+
/ {
9+
aliases {
10+
test-comp = &acmphs0;
11+
};
12+
13+
zephyr,user {
14+
test-gpios = <&ioport6 0 GPIO_ACTIVE_HIGH>;
15+
};
16+
};
17+
18+
&pinctrl {
19+
acmphs0_ivcmp0: acmphs0_ivcmp0 {
20+
group1 {
21+
/* CH0 IVCMP0 */
22+
psels = <RA_PSEL(RA_PSEL_ACMPHS, 8, 5)>;
23+
renesas,analog-enable;
24+
};
25+
};
26+
};
27+
28+
&acmphs_global {
29+
status = "okay";
30+
31+
acmphs0 {
32+
pinctrl-0 = <&acmphs0_ivcmp0>;
33+
pinctrl-names = "default";
34+
interrupts = <90 12>;
35+
interrupt-names = "hs";
36+
reference-input-source = "ivref2";
37+
compare-input-source = "ivcmp0";
38+
noise-filter = <1>;
39+
status = "okay";
40+
};
41+
};

0 commit comments

Comments
 (0)