Skip to content

Commit ba02843

Browse files
nhutnguyenkckartben
authored andcommitted
boards: renesas: Add minimal support for board RSK+ for RZ/T2L
Add minimal support for board RSK+ for RZ/T2L Signed-off-by: Nhut Nguyen <[email protected]> Signed-off-by: Hieu Nguyen <[email protected]>
1 parent 31397c2 commit ba02843

File tree

9 files changed

+248
-0
lines changed

9 files changed

+248
-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_RZT2L_RSK
5+
select SOC_R9A07G074M04GBG
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+
board_runner_args(jlink "--device=R9A07G074M04")
5+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/renesas/rzt2l_rsk/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: rzt2l_rsk
3+
full_name: Renesas Starter Kit+ for RZ/T2L
4+
vendor: renesas
5+
socs:
6+
- name: r9a07g074m04gbg
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
.. zephyr:board:: rzt2l_rsk
2+
3+
Overview
4+
********
5+
6+
Renesas Starter Kit+ for RZ/T2L is an evaluation and development kit for the RZ/T2L MPU.
7+
By simply connecting the bundled cable to your PC, you can immediately start evaluation through an
8+
on-board emulator. This product contains rich functional ICs such as Gigabit Ethernet PHY and
9+
Octal Flash so you can evaluate various functions of the RZ/T2L without an extension board.
10+
11+
* On-board RZ/T2L MPU 196-pin (R9A07G074M04GBG)
12+
* Rich functional ICs such as Gigabit Ethernet PHY and Octal Flash
13+
so you can evaluate various functions of the RZ/T2L without an extension board
14+
* Generic interfaces such as Pmod/Grove/QWIIC/mikroBUS
15+
* Pin headers for external extension enable you to evaluate many use cases
16+
* Emulator circuit is mounted, and program debugging can be started by simply connecting USB cable
17+
to PC (two USB cables are included, one for emulator and the other for power supply)
18+
* On-board memory components:
19+
20+
* Octa Flash (512MBit)
21+
* HyperRAM (64Mbit)
22+
* QSPI Serial Flash (128Mbit)
23+
* I2C EEPROM (16Kbit)
24+
25+
* Communication interfaces include:
26+
27+
* Debug interfaces (J-Link OB, MIPI-10, MIPI-20, Mictor-38)
28+
* Ethernet
29+
* CAN
30+
* USB
31+
* RS485
32+
* UART
33+
* I2C
34+
* SPI
35+
36+
Hardware
37+
********
38+
39+
The Renesas RZ/T2L MPU documentation can be found at `RZ/T2L Group Website`_
40+
41+
.. figure:: rzt2l_block_diagram.webp
42+
:width: 500px
43+
:align: center
44+
:alt: RZ/T2L group feature
45+
46+
RZ/T2L block diagram (Credit: Renesas Electronics Corporation)
47+
48+
Detailed hardware features for the board can be found at `RZ/T2L-RSK Website`_
49+
50+
Supported Features
51+
==================
52+
53+
.. zephyr: board-supported-hw::
54+
55+
Connections and IOs
56+
===================
57+
58+
By default, the board is configured for use with:
59+
60+
* UART0 connected to the USB serial port (pins G12, G11),
61+
* UART2 connected to the PMOD Header (J25, pins M1, L2),
62+
* LEDs defined as ``led1`` and ``led3``,
63+
64+
The Zephyr console uses UART0.
65+
66+
Programming and Debugging
67+
*************************
68+
69+
Applications for the ``rzt2l_rsk`` board can be
70+
built, flashed, and debugged in the usual way. See :ref:`build_an_application`
71+
and :ref:`application_run` for more details on building and running.
72+
73+
To use J-Link OB on RSK+RZT2L,
74+
75+
1. Open the jumper pin (J9) for switching the debug connection.
76+
77+
2. Connect the micro-USB type-B to J-Link OB USB connector (J10), and then the LED6 is lighted.
78+
79+
Console
80+
=======
81+
82+
The UART port is accessed by USB-Serial port (CN16).
83+
84+
Debugging
85+
=========
86+
87+
Here is an example for building and debugging with the :zephyr:code-sample:`hello_world` application.
88+
89+
.. zephyr-app-commands::
90+
:zephyr-app: samples/hello_world
91+
:board: rzt2l_rsk
92+
:goals: build debug
93+
94+
Flashing
95+
=========
96+
97+
Before using ``flash`` command, the board must be set to xSPI1 boot mode.
98+
99+
.. zephyr-app-commands::
100+
:zephyr-app: samples/hello_world
101+
:board: rzt2l_rsk
102+
:goals: build flash
103+
104+
References
105+
**********
106+
107+
.. target-notes::
108+
109+
.. _RZ/T2L Group Website:
110+
https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus/rzt2l-high-performance-mpu-realizing-high-speed-and-high-precision-real-time-control-ethercat
111+
112+
.. _RZ/T2L-RSK Website:
113+
https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus/rzt2l-rsk-renesas-starter-kit-rzt2l
45.5 KB
Loading
34.7 KB
Loading
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
#include <zephyr/dt-bindings/input/input-event-codes.h>
9+
#include <arm/renesas/rz/rzt/r9a07g074.dtsi>
10+
#include <freq.h>
11+
#include "rzt2l_rsk-pinctrl.dtsi"
12+
13+
/ {
14+
model = "Renesas Starter Kit+ for RZ/T2L";
15+
compatible = "renesas,rzt2l-rsk";
16+
17+
chosen {
18+
zephyr,sram = &atcm;
19+
zephyr,flash = &xspi1_cs0;
20+
zephyr,code-partition = &slot0_partition;
21+
zephyr,console = &uart0;
22+
zephyr,shell-uart = &uart0;
23+
};
24+
25+
aliases {
26+
led0 = &led1;
27+
sw0 = &sw2;
28+
};
29+
30+
leds {
31+
compatible = "gpio-leds";
32+
33+
led1: led1 {
34+
gpios = <&gpio17 6 0>;
35+
label = "led1";
36+
};
37+
38+
led3: led3 {
39+
gpios = <&gpio18 1 0>;
40+
label = "led3";
41+
};
42+
};
43+
44+
gpio_keys {
45+
compatible = "gpio-keys";
46+
47+
sw1: sw1 {
48+
label = "sw1";
49+
gpios = <&gpio14 2 0>;
50+
zephyr,code = <INPUT_KEY_0>;
51+
};
52+
53+
sw2: sw2 {
54+
label = "sw2";
55+
gpios = <&gpio16 3 0>;
56+
zephyr,code = <INPUT_KEY_1>;
57+
};
58+
};
59+
};
60+
61+
&sci0 {
62+
pinctrl-0 = <&sci0_default>;
63+
pinctrl-names = "default";
64+
status = "okay";
65+
66+
uart0: uart {
67+
current-speed = <115200>;
68+
status = "okay";
69+
};
70+
};
71+
72+
&gpio14 {
73+
status = "okay";
74+
};
75+
76+
&gpio16 {
77+
irqs = <3 7>;
78+
status = "okay";
79+
};
80+
81+
&gpio17 {
82+
status = "okay";
83+
};
84+
85+
&gpio18 {
86+
status = "okay";
87+
};
88+
89+
&irq7 {
90+
trigger-type = "falling";
91+
pinctrl-0 = <&irq7_default>;
92+
pinctrl-names = "default";
93+
status = "okay";
94+
};
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+
identifier: rzt2l_rsk
5+
name: Renesas Starter Kit+ for RZ/T2L
6+
type: mcu
7+
arch: arm
8+
toolchain:
9+
- zephyr
10+
supported:
11+
- uart
12+
- gpio
13+
vendor: renesas
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_XIP=n
5+
6+
# Enable UART driver
7+
CONFIG_SERIAL=y
8+
CONFIG_UART_CONSOLE=y
9+
CONFIG_UART_INTERRUPT_DRIVEN=y
10+
11+
# Enable console
12+
CONFIG_CONSOLE=y

0 commit comments

Comments
 (0)