Skip to content

Commit 7fd0a10

Browse files
Hau Hoquytranpzz
authored andcommitted
boards: renesas: Initial commit to support for EK-RX261 board
Initial support for EK-RX261 board using RX261 SOC Singed-off-by: Quy Tran <quy.tran.pz@renesas.com> Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
1 parent da4f26f commit 7fd0a10

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+
13+
/ {
14+
model = "Renesas EK-RX261 KIT";
15+
compatible = "renesas,ek_rx261","renesas,rxv3";
16+
17+
chosen {
18+
zephyr,sram = &sram0;
19+
zephyr,flash = &code_flash;
20+
zephyr,console = &uart6;
21+
zephyr,shell-uart = &uart6;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
27+
led1: led1 {
28+
gpios = <&ioportj 1 GPIO_ACTIVE_LOW>;
29+
label = "LED1";
30+
};
31+
32+
led2: led2 {
33+
gpios = <&ioportc 5 GPIO_ACTIVE_LOW>;
34+
label = "LED2";
35+
};
36+
37+
led3: led3 {
38+
gpios = <&ioporta 3 GPIO_ACTIVE_LOW>;
39+
label = "LED3";
40+
};
41+
42+
};
43+
44+
aliases {
45+
led0 = &led1;
46+
led1 = &led2;
47+
led2 = &led3;
48+
};
49+
};
50+
51+
&xtal {
52+
clock-frequency = <DT_FREQ_M(8)>;
53+
mosel = <0>;
54+
#clock-cells = <0>;
55+
status = "okay";
56+
};
57+
58+
&pll {
59+
div = <1>;
60+
mul = <RX_PLL_MUL_8>;
61+
status = "okay";
62+
};
63+
64+
&cmt {
65+
clock-frequency = <4000000>;
66+
status = "okay";
67+
};
68+
69+
&ioport3 {
70+
status = "okay";
71+
};
72+
73+
&ioporta {
74+
status = "okay";
75+
};
76+
77+
&ioportc {
78+
status = "okay";
79+
};
80+
81+
&ioportd {
82+
status = "okay";
83+
};
84+
85+
&ioportj {
86+
status = "okay";
87+
};
88+
89+
&sci6 {
90+
pinctrl-0 = <&sci6_default>;
91+
pinctrl-names = "default";
92+
status = "okay";
93+
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)