Skip to content

Commit 6c9460d

Browse files
Phi Tranquytranpzz
authored andcommitted
boards: renesas: rx: Initial support for FPB-RX261
Initial support for board FPB-RX261 Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
1 parent 077a0c0 commit 6c9460d

File tree

7 files changed

+151
-0
lines changed

7 files changed

+151
-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_FPB_RX261
5+
select SOC_R5F52618BGFP

boards/renesas/fpb_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/rfp.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/renesas/fpb_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: fpb_rx261
3+
full_name: RX261 Fast Prototyping Board
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+
sci5_default: sci5_default {
9+
group1 {
10+
psels = <RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x3)>, /* TX */
11+
<RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x2)>; /* RX */
12+
};
13+
};
14+
};
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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 "fpb_rx261-pinctrl.dtsi"
12+
#include <zephyr/dt-bindings/input/input-event-codes.h>
13+
14+
/ {
15+
model = "Renesas FPB-RX261";
16+
compatible = "renesas,fpb_rx261","renesas,rxv3";
17+
18+
chosen {
19+
zephyr,sram = &sram0;
20+
zephyr,flash = &code_flash;
21+
zephyr,console = &uart5;
22+
zephyr,shell-uart = &uart5;
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+
39+
aliases {
40+
led0 = &led1;
41+
led1 = &led2;
42+
};
43+
};
44+
45+
&subclk {
46+
status = "okay";
47+
};
48+
49+
&cmt {
50+
clock-frequency = <4000000>;
51+
status = "okay";
52+
};
53+
54+
&pclkblock {
55+
clocks = <&hoco>;
56+
};
57+
58+
&clkout {
59+
clocks = <&hoco>;
60+
};
61+
62+
&uclk {
63+
clocks = <&hoco>;
64+
};
65+
66+
&ioport3 {
67+
status = "okay";
68+
};
69+
70+
&ioportc {
71+
status = "okay";
72+
};
73+
74+
&ioportj {
75+
status = "okay";
76+
};
77+
78+
&sci5 {
79+
pinctrl-0 = <&sci5_default>;
80+
pinctrl-names = "default";
81+
status = "okay";
82+
83+
uart5: uart {
84+
current-speed = <115200>;
85+
status = "okay";
86+
};
87+
};
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: fpb_rx261
5+
name: Renesas RX261 Fast Prototyping Board
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)