Skip to content

Commit be5c800

Browse files
khoa-nguyen-18kartben
authored andcommitted
samples: boards: renesas: Add support comparator for ek_ra8p1 cm33
Add support sample ``renesas/comparator`` for Renesas ek_ra8p1 cm33 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 0e67325 commit be5c800

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
sample-comp = &acmphs0;
9+
};
10+
};
11+
12+
&pinctrl {
13+
acmphs0_ivcmp3: acmphs0_ivcmp3 {
14+
group1 {
15+
/* CH0 IVCMP3 */
16+
psels = <RA_PSEL(RA_PSEL_ACMPHS, 0, 1)>;
17+
renesas,analog-enable;
18+
};
19+
};
20+
};
21+
22+
&acmphs_global {
23+
status = "okay";
24+
25+
acmphs0 {
26+
pinctrl-0 = <&acmphs0_ivcmp3>;
27+
pinctrl-names = "default";
28+
interrupts = <90 12>;
29+
interrupt-names = "hs";
30+
reference-input-source = "ivref2";
31+
compare-input-source = "ivcmp3";
32+
noise-filter = <1>;
33+
status = "okay";
34+
};
35+
};

0 commit comments

Comments
 (0)