Skip to content

Commit df630d6

Browse files
nhutnguyenkckartben
authored andcommitted
boards: renesas: Maintain the minimal support of board RSK+ RZ/T2M
Renesas takes over the maintainer of board RSK+ RZ/T2M to unify with other RZ boards - Rename rzt2m_starter_kit to rzt2m_rsk - Support xSPI boot mode to boot code from flash - Change to use HAL Renesas Signed-off-by: Nhut Nguyen <[email protected]> Signed-off-by: Binh Nguyen <[email protected]>
1 parent 4c8b47e commit df630d6

13 files changed

+168
-144
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2023 Nordic Semiconductor ASA
2+
# Copyright (c) 2025 Renesas Electronics Corporation
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
config BOARD_RZT2M_RSK
6+
select SOC_R9A07G075M24GBG

boards/renesas/rzt2m_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: rzt2m_rsk
3+
full_name: Renesas Starter Kit+ for RZ/T2M
4+
vendor: renesas
5+
socs:
6+
- name: r9a07g075m24gbg
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
.. zephyr:board:: rzt2m_rsk
2+
3+
Overview
4+
********
5+
6+
The Renesas Starter Kit+ for RZ/T2M is an evaluation and development kit for the RZ/T2M MPU.
7+
The board is powered through a 5V input via a DC Power Jack or USB Type-C Connector.
8+
9+
* On-board RZ/T2M MPU 320-pin (R9A07G075M24GBG)
10+
* Rich functional ICs such as Gigabit Ethernet PHY and Octal Flash are mounted,
11+
functions of target MPU can be fully evaluated
12+
* Generic interface such as Pmod/Grove/QWIIC/mikroBUS
13+
* The pin header enables users to freely combine with the user's hardware system and evaluate RZ/T2M
14+
* Emulator circuit is mounted, can start program debugging by simply connecting USB cable
15+
to PC (two USB cables are bundled: one for emulator, and the other for power supply)
16+
* On-board memory components:
17+
18+
* SDRAM (256MBit)
19+
* NOR Flash (256MBit)
20+
* Octa Flash (512MBit)
21+
* HyperRAM (512Mbit)
22+
* QSPI Serial Flash (512Mbit)
23+
* I2C EEPROM (32Kbit)
24+
25+
* Communication interfaces include:
26+
27+
* Debug interfaces (J-Link OB, MIPI-10, MIPI-20)
28+
* Ethernet
29+
* CAN
30+
* USB
31+
* RS485
32+
* UART
33+
* I2C
34+
* SPI
35+
36+
Hardware
37+
********
38+
39+
The Renesas RZ/T2M MPU documentation can be found at `RZT2M Product page`_
40+
41+
.. figure:: rzt2m_block_diagram.webp
42+
:width: 500px
43+
:align: center
44+
:alt: RZ/T2M group feature
45+
46+
Supported Features
47+
==================
48+
49+
.. zephyr:board-supported-hw::
50+
51+
Connections and IOs
52+
===================
53+
54+
By default, the board is configured for use with:
55+
56+
* UART0 connected to the USB serial port (pins K18, K19),
57+
* UART3 connected to the PMOD Header (J25, pins H16, G20),
58+
* LEDs defined as ``led0``, ``led1``, ``led2`` and ``led3``,
59+
60+
The Zephyr console uses UART0.
61+
62+
Programming and Debugging
63+
*************************
64+
65+
Applications for the ``rzt2m_rsk`` board can be built in the usual way as
66+
documented in :ref:`build_an_application`.
67+
68+
To use J-Link OB on RSK+RZT2M,
69+
70+
1. Open the jumper pin (J9) for switching the debug connection.
71+
72+
2. Connect the micro-USB type-B to J-Link OB USB connector (J10), and then the LED4 is lighted.
73+
74+
Console
75+
=======
76+
77+
The UART port is accessed by USB-Serial port (CN16).
78+
79+
Debugging
80+
=========
81+
82+
Here is an example for building and debugging with the :zephyr:code-sample:`hello_world` application.
83+
84+
.. zephyr-app-commands::
85+
:zephyr-app: samples/hello_world
86+
:board: rzt2m_rsk/r9a07g075m24gbg/cr520
87+
:goals: build debug
88+
89+
Flashing
90+
=========
91+
92+
Before using ``flash`` command, the board must be set to xSPI boot mode.
93+
94+
.. zephyr-app-commands::
95+
:zephyr-app: samples/hello_world
96+
:board: rzt2m_rsk/r9a07g075m24gbg/cr520
97+
:goals: build flash
98+
99+
References
100+
**********
101+
102+
.. target-notes::
103+
104+
.. _RZT2M Product page: https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rz-mpus/rzt2m-high-performance-multi-function-mpu-realizing-high-speed-processing-and-high-precision-control
Binary file not shown.
35.6 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
/*
22
* Copyright (c) 2023 Antmicro <www.antmicro.com>
3+
* Copyright (c) 2025 Renesas Electronics Corporation
34
*
45
* SPDX-License-Identifier: Apache-2.0
56
*/
67

78
/dts-v1/;
8-
#include <dt-bindings/pinctrl/renesas-rzt2m-pinctrl.h>
9-
#include <arm/renesas/rz/rzt2m.dtsi>
109
#include <zephyr/dt-bindings/input/input-event-codes.h>
10+
#include <arm/renesas/rz/rzt/r9a07g075.dtsi>
11+
#include "rzt2m_rsk-pinctrl.dtsi"
1112

1213
/ {
13-
model = "RZT/2M Starter Kit";
14-
compatible = "renesas,rzt2m_starter_kit";
14+
model = "Renesas Starter Kit+ for RZ/T2M";
15+
compatible = "renesas,rzt2m-rsk";
1516

1617
chosen {
1718
zephyr,sram = &cpu0_atcm;
19+
zephyr,flash = &xspi0_cs0;
20+
zephyr,code-partition = &slot0_partition;
1821
zephyr,console = &uart0;
1922
zephyr,shell-uart = &uart0;
2023
};
@@ -26,18 +29,22 @@
2629

2730
leds {
2831
compatible = "gpio-leds";
32+
2933
led0: led0 {
3034
gpios = <&gpio19 6 0>;
3135
label = "led0";
3236
};
37+
3338
led1: led1 {
3439
gpios = <&gpio19 4 0>;
3540
label = "led1";
3641
};
42+
3743
led2: led2 {
3844
gpios = <&gpio20 0 0>;
3945
label = "led2";
4046
};
47+
4148
led3: led3 {
4249
gpios = <&gpio23 4 0>;
4350
label = "led3";
@@ -46,11 +53,13 @@
4653

4754
gpio_keys {
4855
compatible = "gpio-keys";
56+
4957
sw1: sw1 {
5058
label = "sw1";
5159
gpios = <&gpio10 5 0>;
5260
zephyr,code = <INPUT_KEY_0>;
5361
};
62+
5463
sw2: sw2 {
5564
label = "sw2";
5665
gpios = <&gpio16 3 0>;
@@ -59,36 +68,41 @@
5968
};
6069
};
6170

71+
&sci0 {
72+
pinctrl-0 = <&sci0_default>;
73+
pinctrl-names = "default";
74+
status = "okay";
6275

63-
&pinctrl {
64-
uart0_default: uart0_default {
65-
group1 {
66-
pinmux = <UART0TX_P16_5>;
67-
};
68-
group2 {
69-
pinmux = <UART0RX_P16_6>;
70-
input-enable;
71-
};
72-
};
73-
uart3_default: uart3_default {
74-
group1 {
75-
pinmux = <UART3TX_P18_0>;
76-
};
77-
group2 {
78-
pinmux = <UART3RX_P17_7>;
79-
input-enable;
80-
};
76+
uart0: uart {
77+
current-speed = <115200>;
78+
status = "okay";
8179
};
8280
};
8381

84-
&uart0 {
85-
status = "okay";
86-
pinctrl-0 = <&uart0_default>;
82+
&irq2 {
83+
trigger-type = "falling";
84+
pinctrl-0 = <&irq2_default>;
8785
pinctrl-names = "default";
86+
status = "okay";
8887
};
8988

90-
&uart3 {
89+
&gpio10 {
90+
irqs = <5 2>;
91+
status = "okay";
92+
};
93+
94+
&gpio16 {
95+
status = "okay";
96+
};
97+
98+
&gpio19 {
99+
status = "okay";
100+
};
101+
102+
&gpio20 {
103+
status = "okay";
104+
};
105+
106+
&gpio23 {
91107
status = "okay";
92-
pinctrl-0 = <&uart3_default>;
93-
pinctrl-names = "default";
94108
};
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Copyright (c) 2023 Antmicro <www.antmicro.com>
2+
# Copyright (c) 2025 Renesas Electronics Corporation
23
# SPDX-License-Identifier: Apache-2.0
34

4-
identifier: rzt2m_starter_kit
5-
name: Renesas RZ/T2M Starter Kit+
5+
identifier: rzt2m_rsk/r9a07g075m24gbg/cr520
6+
name: Renesas Starter Kit+ for RZ/T2M
67
type: mcu
78
arch: arm
89
ram: 2048
910
toolchain:
1011
- zephyr
1112
supported:
12-
- counter
1313
- uart
1414
- gpio
1515
vendor: renesas
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Copyright (c) 2023 Antmicro <www.antmicro.com>
2+
# Copyright (c) 2025 Renesas Electronics Corporation
23
# SPDX-License-Identifier: Apache-2.0
34

5+
CONFIG_XIP=n
6+
7+
# Enable UART driver
48
CONFIG_SERIAL=y
5-
CONFIG_CONSOLE=y
69
CONFIG_UART_CONSOLE=y
710
CONFIG_UART_INTERRUPT_DRIVEN=y
11+
12+
# Enable console
13+
CONFIG_CONSOLE=y

0 commit comments

Comments
 (0)