-
Notifications
You must be signed in to change notification settings - Fork 7.7k
boards: renesas: rx: Add support for RX261 boards #90708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
quytranpzz
wants to merge
10
commits into
zephyrproject-rtos:main
Choose a base branch
from
renesas:renesas_support_soc_rx261
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,364
−34
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d54010a
manifest: hal: renesas: Update commit ID for adding RX261 HAL support
quytranpzz cf40e54
scripts: west: flash: Add support for scripts to flash using the RFP …
ab5e564
arch: update fixed vectors for config HOCO frequency.
f90ac3b
soc: renesas: rx: Initial support for RX261 SOC
ffc5e1b
dts: renesas: initial support dts SoC layer on RX261.
c6bd9ba
drivers: clock control: Add support clock control for RX261
9ab1e4c
drivers: gpio: Update gpio and pinctrl driver for support RX261
9cf3fbe
drivers: uart: Update sci uart for support RX261
da4f26f
boards: renesas: rx: Initial support for FPB-RX261 board
7fd0a10
boards: renesas: Initial commit to support for EK-RX261 board
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_EK_RX261 | ||
select SOC_R5F52618BGFP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# options after "--tool-opt=" are directly passed to the tool. So instead of "--iface=JTAG" you could also write "--tool-opt=-if JTAG" | ||
board_runner_args(jlink "--device=R5F52618" "--iface=FINE" "--speed=1000" "--tool-opt=-jtagconf -1,-1 -autoconnect 1" ) | ||
board_runner_args(rfp "--device=RX200" "--tool=e2l" "--interface=fine" "--erase") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/rfp.board.cmake) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
board: | ||
name: ek_rx261 | ||
full_name: RX261 Evaluation Kit | ||
vendor: renesas | ||
socs: | ||
- name: r5f52618bgfp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2025 Renesas Electronics Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
sci6_default: sci6_default { | ||
group1 { | ||
psels = <RX_PSEL(RX_PSEL_SCI_6, 11, 1)>, /* TX */ | ||
<RX_PSEL(RX_PSEL_SCI_6, 11, 0)>; /* RX */ | ||
}; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* Copyright (c) 2025 Renesas Electronics Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <renesas/r5f52618bgfp.dtsi> | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include "ek_rx261-pinctrl.dtsi" | ||
|
||
/ { | ||
model = "Renesas EK-RX261 KIT"; | ||
compatible = "renesas,ek_rx261","renesas,rxv3"; | ||
|
||
chosen { | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &code_flash; | ||
zephyr,console = &uart6; | ||
zephyr,shell-uart = &uart6; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led1: led1 { | ||
gpios = <&ioportj 1 GPIO_ACTIVE_LOW>; | ||
label = "LED1"; | ||
}; | ||
|
||
led2: led2 { | ||
gpios = <&ioportc 5 GPIO_ACTIVE_LOW>; | ||
label = "LED2"; | ||
}; | ||
|
||
led3: led3 { | ||
gpios = <&ioporta 3 GPIO_ACTIVE_LOW>; | ||
label = "LED3"; | ||
}; | ||
|
||
}; | ||
|
||
aliases { | ||
led0 = &led1; | ||
led1 = &led2; | ||
led2 = &led3; | ||
}; | ||
}; | ||
|
||
&xtal { | ||
clock-frequency = <DT_FREQ_M(8)>; | ||
mosel = <0>; | ||
#clock-cells = <0>; | ||
status = "okay"; | ||
}; | ||
|
||
&pll { | ||
div = <1>; | ||
mul = <RX_PLL_MUL_8>; | ||
status = "okay"; | ||
}; | ||
|
||
&cmt { | ||
clock-frequency = <4000000>; | ||
status = "okay"; | ||
}; | ||
|
||
&ioport3 { | ||
status = "okay"; | ||
}; | ||
|
||
&ioporta { | ||
status = "okay"; | ||
}; | ||
|
||
&ioportc { | ||
status = "okay"; | ||
}; | ||
|
||
&ioportd { | ||
status = "okay"; | ||
}; | ||
|
||
&ioportj { | ||
status = "okay"; | ||
}; | ||
|
||
&sci6 { | ||
pinctrl-0 = <&sci6_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
|
||
uart6: uart { | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: ek_rx261 | ||
name: Renesas EK-RX261 | ||
type: mcu | ||
arch: rx | ||
toolchain: | ||
- cross-compile | ||
supported: | ||
- gpio | ||
- serial | ||
- timer | ||
ram: 128 | ||
flash: 512 | ||
testing: | ||
timeout_multiplier: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable GPIO | ||
CONFIG_GPIO=y | ||
|
||
# Enable UART driver | ||
CONFIG_SERIAL=y | ||
CONFIG_UART_INTERRUPT_DRIVEN=y | ||
|
||
# Enable console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_FPB_RX261 | ||
select SOC_R5F52618BGFP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# options after "--tool-opt=" are directly passed to the tool. So instead of "--iface=JTAG" you could also write "--tool-opt=-if JTAG" | ||
board_runner_args(jlink "--device=R5F52618" "--iface=FINE" "--speed=1000" "--tool-opt=-jtagconf -1,-1 -autoconnect 1" ) | ||
board_runner_args(rfp "--device=RX200" "--tool=e2l" "--interface=fine" "--erase") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/rfp.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
board: | ||
name: fpb_rx261 | ||
full_name: RX261 Fast Prototyping Board | ||
vendor: renesas | ||
socs: | ||
- name: r5f52618bgfp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2025 Renesas Electronics Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&pinctrl { | ||
sci5_default: sci5_default { | ||
group1 { | ||
psels = <RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x3)>, /* TX */ | ||
<RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x2)>; /* RX */ | ||
}; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* Copyright (c) 2025 Renesas Electronics Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <renesas/r5f52618bgfp.dtsi> | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include "fpb_rx261-pinctrl.dtsi" | ||
|
||
/ { | ||
model = "Renesas FPB-RX261"; | ||
compatible = "renesas,fpb_rx261","renesas,rxv3"; | ||
|
||
chosen { | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &code_flash; | ||
zephyr,console = &uart5; | ||
zephyr,shell-uart = &uart5; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led1: led1 { | ||
gpios = <&ioportj 1 GPIO_ACTIVE_LOW>; | ||
label = "LED1"; | ||
}; | ||
|
||
led2: led2 { | ||
gpios = <&ioportc 5 GPIO_ACTIVE_LOW>; | ||
label = "LED2"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
led0 = &led1; | ||
led1 = &led2; | ||
}; | ||
}; | ||
|
||
&subclk { | ||
status = "okay"; | ||
}; | ||
|
||
&cmt { | ||
clock-frequency = <4000000>; | ||
status = "okay"; | ||
}; | ||
|
||
&pclkblock { | ||
clocks = <&hoco>; | ||
}; | ||
|
||
&clkout { | ||
clocks = <&hoco>; | ||
}; | ||
|
||
&uclk { | ||
clocks = <&hoco>; | ||
}; | ||
|
||
&ioport3 { | ||
status = "okay"; | ||
}; | ||
|
||
&ioportc { | ||
status = "okay"; | ||
}; | ||
|
||
&ioportj { | ||
status = "okay"; | ||
}; | ||
|
||
&sci5 { | ||
pinctrl-0 = <&sci5_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
|
||
uart5: uart { | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: fpb_rx261 | ||
name: Renesas RX261 Fast Prototyping Board | ||
type: mcu | ||
arch: rx | ||
toolchain: | ||
- cross-compile | ||
supported: | ||
- gpio | ||
- serial | ||
- timer | ||
ram: 128 | ||
flash: 512 | ||
testing: | ||
timeout_multiplier: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable GPIO | ||
CONFIG_GPIO=y | ||
|
||
# Enable UART driver | ||
CONFIG_SERIAL=y | ||
CONFIG_UART_INTERRUPT_DRIVEN=y | ||
|
||
# Enable console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline on line 94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new line, thanks