Skip to content

Commit d1dcc74

Browse files
Hau Hoquytranpzz
authored andcommitted
boards: renesas: Intial support for EK-RX261 boards
Intial support for EK-RX261 board Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
1 parent 6c9460d commit d1dcc74

File tree

7 files changed

+162
-0
lines changed

7 files changed

+162
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_EK_RX261
5+
select SOC_R5F52618BGFP

boards/renesas/ek_rx261/board.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# options after "--tool-opt=" are directly passed to the tool. So instead of "--iface=JTAG" you could also write "--tool-opt=-if JTAG"
5+
board_runner_args(jlink "--device=R5F52618" "--iface=FINE" "--speed=1000" "--tool-opt=-jtagconf -1,-1 -autoconnect 1" )
6+
board_runner_args(rfp "--device=RX200" "--tool=e2l" "--interface=fine" "--erase")
7+
8+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/rfp.board.cmake)

boards/renesas/ek_rx261/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: ek_rx261
3+
full_name: RX261 Evaluation Kit
4+
vendor: renesas
5+
socs:
6+
- name: r5f52618bgfp
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
sci6_default: sci6_default {
9+
group1 {
10+
psels = <RX_PSEL(RX_PSEL_SCI_6, 11, 1)>, /* TX */
11+
<RX_PSEL(RX_PSEL_SCI_6, 11, 0)>; /* RX */
12+
};
13+
};
14+
};

boards/renesas/ek_rx261/ek_rx261.dts

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <renesas/r5f52618bgfp.dtsi>
10+
#include <dt-bindings/gpio/gpio.h>
11+
#include "ek_rx261-pinctrl.dtsi"
12+
#include <zephyr/dt-bindings/input/input-event-codes.h>
13+
14+
/ {
15+
model = "Renesas EK-RX261 KIT";
16+
compatible = "renesas,ek_rx261","renesas,rxv3";
17+
18+
chosen {
19+
zephyr,sram = &sram0;
20+
zephyr,flash = &code_flash;
21+
zephyr,console = &uart6;
22+
zephyr,shell-uart = &uart6;
23+
};
24+
25+
leds {
26+
compatible = "gpio-leds";
27+
28+
led1: led1 {
29+
gpios = <&ioportj 1 GPIO_ACTIVE_LOW>;
30+
label = "LED1";
31+
};
32+
33+
led2: led2 {
34+
gpios = <&ioportc 5 GPIO_ACTIVE_LOW>;
35+
label = "LED2";
36+
};
37+
38+
led3: led3 {
39+
gpios = <&ioporta 3 GPIO_ACTIVE_LOW>;
40+
label = "LED3";
41+
};
42+
43+
};
44+
45+
aliases {
46+
led0 = &led1;
47+
led1 = &led2;
48+
led2 = &led3;
49+
};
50+
};
51+
52+
&xtal {
53+
clock-frequency = <DT_FREQ_M(8)>;
54+
mosel = <0>;
55+
#clock-cells = <0>;
56+
status = "okay";
57+
};
58+
59+
&pll {
60+
div = <1>;
61+
mul = <RX_PLL_MUL_8>;
62+
status = "okay";
63+
};
64+
65+
&cmt {
66+
clock-frequency = <4000000>;
67+
status = "okay";
68+
};
69+
70+
&ioport3 {
71+
status = "okay";
72+
};
73+
74+
&ioporta {
75+
status = "okay";
76+
};
77+
78+
&ioportc {
79+
status = "okay";
80+
};
81+
82+
&ioportd {
83+
status = "okay";
84+
};
85+
86+
&ioportj {
87+
status = "okay";
88+
};
89+
90+
&sci6 {
91+
pinctrl-0 = <&sci6_default>;
92+
pinctrl-names = "default";
93+
status = "okay";
94+
uart6: uart {
95+
current-speed = <115200>;
96+
status = "okay";
97+
};
98+
};

boards/renesas/ek_rx261/ek_rx261.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
identifier: ek_rx261
5+
name: Renesas EK-RX261
6+
type: mcu
7+
arch: rx
8+
toolchain:
9+
- cross-compile
10+
supported:
11+
- gpio
12+
- serial
13+
- timer
14+
ram: 128
15+
flash: 512
16+
testing:
17+
timeout_multiplier: 5
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Enable GPIO
5+
CONFIG_GPIO=y
6+
7+
# Enable uart driver
8+
CONFIG_SERIAL=y
9+
CONFIG_UART_INTERRUPT_DRIVEN=y
10+
11+
# Enable console
12+
CONFIG_CONSOLE=y
13+
CONFIG_UART_CONSOLE=y

0 commit comments

Comments
 (0)