Skip to content

Commit 5f267b0

Browse files
committed
tests: drivers: lin: add ek_ra8m1 support
Add ek_ra8m1 lin_api test support Signed-off-by: The Nguyen <[email protected]>
1 parent 1224e02 commit 5f267b0

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

boards/renesas/ek_ra8m1/ek_ra8m1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ supported:
1919
- adc
2020
- spi
2121
- sdhc
22+
- lin
2223
vendor: renesas
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
master = &lin0;
10+
slave = &lin1;
11+
};
12+
};
13+
14+
&pinctrl {
15+
sci0_default: sci0_default {
16+
group1 {
17+
/* TXD */
18+
psels = <RA_PSEL(RA_PSEL_SCI_0, 6, 9)>;
19+
drive-strength = "high";
20+
};
21+
22+
group2 {
23+
/* RXD */
24+
psels = <RA_PSEL(RA_PSEL_SCI_0, 6, 10)>;
25+
};
26+
};
27+
28+
sci1_default: sci1_default {
29+
group1 {
30+
/* TXD */
31+
psels = <RA_PSEL(RA_PSEL_SCI_1, 7, 7)>;
32+
drive-strength = "high";
33+
};
34+
35+
group2 {
36+
/* RXD */
37+
psels = <RA_PSEL(RA_PSEL_SCI_1, 7, 6)>;
38+
};
39+
};
40+
};
41+
42+
&sci0 {
43+
pinctrl-0 = <&sci0_default>;
44+
pinctrl-names = "default";
45+
interrupts = <95 1>, <94 1>, <93 1>, <92 1>;
46+
interrupt-names = "rxi", "txi", "tei", "eri";
47+
status = "okay";
48+
49+
lin0: lin {
50+
status = "okay";
51+
};
52+
};
53+
54+
&sci1 {
55+
pinctrl-0 = <&sci1_default>;
56+
pinctrl-names = "default";
57+
interrupts = <87 1>, <86 1>, <85 1>, <84 1>, <83 1>, <82 1>;
58+
interrupt-names = "rxi", "txi", "tei", "eri", "aed", "bfd";
59+
status = "okay";
60+
61+
lin1: lin {
62+
status = "okay";
63+
};
64+
};
65+
66+
/* Disable unused nodes that conflict with LIN interrupts */
67+
&port_irq12 {
68+
status = "disabled";
69+
};
70+
71+
&port_irq13 {
72+
status = "disabled";
73+
};
74+
75+
&pmod1_serial {
76+
status = "disabled";
77+
};

tests/drivers/lin/lin_api/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ common:
44
- drivers
55
depends_on: lin
66
tests:
7+
drivers.lin.api:
8+
integration_platforms:
9+
- ek_ra8m1/r7fa8m1ahecbd
710
drivers.lin.api.skeleton:
811
extra_args:
912
- EXTRA_DTC_OVERLAY_FILE="lin_skeleton.overlay"

0 commit comments

Comments
 (0)