Skip to content

Commit 752608b

Browse files
khoatranyjkartben
authored andcommitted
tests: subsys: can: Add tests for iso tp on MCK_RA8T2 boards
This commit adds testing support for CAN ISO-TP on MCK_RA8T2 - tests/subsys/canbus/isotp/conformance - tests/subsys/canbus/isotp/implementation Signed-off-by: Khoa Tran <[email protected]>
1 parent a428dba commit 752608b

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
chosen {
8+
zephyr,canbus = &canfd1;
9+
};
10+
};
11+
12+
&pinctrl {
13+
canfd1_default: canfd1_default {
14+
group1 {
15+
/* CRX1 CTX1 */
16+
psels = <RA_PSEL(RA_PSEL_CANFD, 12, 15)>,
17+
<RA_PSEL(RA_PSEL_CANFD, 13, 0)>;
18+
drive-strength = "high";
19+
};
20+
};
21+
};
22+
23+
&canfdclk {
24+
status = "okay";
25+
};
26+
27+
&canfd_global {
28+
interrupts = <95 1>, <94 1>;
29+
interrupt-names = "rxf", "glerr";
30+
status = "okay";
31+
32+
canfd1 {
33+
pinctrl-0 = <&canfd1_default>;
34+
pinctrl-names = "default";
35+
rx-max-filters = <16>;
36+
interrupts = <93 1>, <92 1>, <91 1>;
37+
interrupt-names = "err", "tx", "rx";
38+
status = "okay";
39+
};
40+
};
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
chosen {
8+
zephyr,canbus = &canfd1;
9+
};
10+
};
11+
12+
&pinctrl {
13+
canfd1_default: canfd1_default {
14+
group1 {
15+
/* CRX1 CTX1 */
16+
psels = <RA_PSEL(RA_PSEL_CANFD, 12, 15)>,
17+
<RA_PSEL(RA_PSEL_CANFD, 13, 0)>;
18+
drive-strength = "high";
19+
};
20+
};
21+
};
22+
23+
&canfdclk {
24+
status = "okay";
25+
};
26+
27+
&canfd_global {
28+
interrupts = <95 1>, <94 1>;
29+
interrupt-names = "rxf", "glerr";
30+
status = "okay";
31+
32+
canfd1 {
33+
pinctrl-0 = <&canfd1_default>;
34+
pinctrl-names = "default";
35+
rx-max-filters = <16>;
36+
interrupts = <93 1>, <92 1>, <91 1>;
37+
interrupt-names = "err", "tx", "rx";
38+
status = "okay";
39+
};
40+
};

0 commit comments

Comments
 (0)