Skip to content

Commit b331ed7

Browse files
khoa-nguyen-18kartben
authored andcommitted
tests: drivers: comparator: Add support gpio_loopback for RA8
Add support gpio_loopback to run test app on ek_ra8m1, ek_ra8d1, mck_ra8t1 Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
1 parent 540aa0b commit b331ed7

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
&acmphs_global {
19+
status = "okay";
20+
21+
acmphs0 {
22+
pinctrl-0 = <&acmphs_ivref0 &acmphs0_ivcmp0>;
23+
pinctrl-names = "default";
24+
interrupts = <90 12>;
25+
interrupt-names = "hs";
26+
reference-input-source = "ivref0";
27+
compare-input-source = "ivcmp0";
28+
noise-filter = <1>;
29+
status = "okay";
30+
};
31+
};
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
&acmphs_global {
19+
status = "okay";
20+
21+
acmphs0 {
22+
pinctrl-0 = <&acmphs_ivref0 &acmphs0_ivcmp0>;
23+
pinctrl-names = "default";
24+
interrupts = <90 12>;
25+
interrupt-names = "hs";
26+
reference-input-source = "ivref0";
27+
compare-input-source = "ivcmp0";
28+
noise-filter = <1>;
29+
status = "okay";
30+
};
31+
};
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 6 GPIO_ACTIVE_HIGH>;
15+
};
16+
};
17+
18+
&acmphs_global {
19+
status = "okay";
20+
21+
acmphs0 {
22+
pinctrl-0 = <&acmphs_ivref0 &acmphs0_ivcmp0>;
23+
pinctrl-names = "default";
24+
interrupts = <90 12>;
25+
interrupt-names = "hs";
26+
reference-input-source = "ivref0";
27+
compare-input-source = "ivcmp0";
28+
noise-filter = <1>;
29+
status = "okay";
30+
};
31+
};

0 commit comments

Comments
 (0)