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 <nhut.nguyen.kc@renesas.com> Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
This commit is contained in:
parent
31397c2c76
commit
ba028433a8
9 changed files with 248 additions and 0 deletions
5
boards/renesas/rzt2l_rsk/Kconfig.rzt2l_rsk
Normal file
5
boards/renesas/rzt2l_rsk/Kconfig.rzt2l_rsk
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_RZT2L_RSK
|
||||
select SOC_R9A07G074M04GBG
|
5
boards/renesas/rzt2l_rsk/board.cmake
Normal file
5
boards/renesas/rzt2l_rsk/board.cmake
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(jlink "--device=R9A07G074M04")
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
6
boards/renesas/rzt2l_rsk/board.yml
Normal file
6
boards/renesas/rzt2l_rsk/board.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
board:
|
||||
name: rzt2l_rsk
|
||||
full_name: Renesas Starter Kit+ for RZ/T2L
|
||||
vendor: renesas
|
||||
socs:
|
||||
- name: r9a07g074m04gbg
|
113
boards/renesas/rzt2l_rsk/doc/index.rst
Normal file
113
boards/renesas/rzt2l_rsk/doc/index.rst
Normal file
|
@ -0,0 +1,113 @@
|
|||
.. zephyr:board:: rzt2l_rsk
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
Renesas Starter Kit+ for RZ/T2L is an evaluation and development kit for the RZ/T2L MPU.
|
||||
By simply connecting the bundled cable to your PC, you can immediately start evaluation through an
|
||||
on-board emulator. This product contains rich functional ICs such as Gigabit Ethernet PHY and
|
||||
Octal Flash so you can evaluate various functions of the RZ/T2L without an extension board.
|
||||
|
||||
* On-board RZ/T2L MPU 196-pin (R9A07G074M04GBG)
|
||||
* Rich functional ICs such as Gigabit Ethernet PHY and Octal Flash
|
||||
so you can evaluate various functions of the RZ/T2L without an extension board
|
||||
* Generic interfaces such as Pmod/Grove/QWIIC/mikroBUS
|
||||
* Pin headers for external extension enable you to evaluate many use cases
|
||||
* Emulator circuit is mounted, and program debugging can be started by simply connecting USB cable
|
||||
to PC (two USB cables are included, one for emulator and the other for power supply)
|
||||
* On-board memory components:
|
||||
|
||||
* Octa Flash (512MBit)
|
||||
* HyperRAM (64Mbit)
|
||||
* QSPI Serial Flash (128Mbit)
|
||||
* I2C EEPROM (16Kbit)
|
||||
|
||||
* Communication interfaces include:
|
||||
|
||||
* Debug interfaces (J-Link OB, MIPI-10, MIPI-20, Mictor-38)
|
||||
* Ethernet
|
||||
* CAN
|
||||
* USB
|
||||
* RS485
|
||||
* UART
|
||||
* I2C
|
||||
* SPI
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
The Renesas RZ/T2L MPU documentation can be found at `RZ/T2L Group Website`_
|
||||
|
||||
.. figure:: rzt2l_block_diagram.webp
|
||||
:width: 500px
|
||||
:align: center
|
||||
:alt: RZ/T2L group feature
|
||||
|
||||
RZ/T2L block diagram (Credit: Renesas Electronics Corporation)
|
||||
|
||||
Detailed hardware features for the board can be found at `RZ/T2L-RSK Website`_
|
||||
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
.. zephyr: board-supported-hw::
|
||||
|
||||
Connections and IOs
|
||||
===================
|
||||
|
||||
By default, the board is configured for use with:
|
||||
|
||||
* UART0 connected to the USB serial port (pins G12, G11),
|
||||
* UART2 connected to the PMOD Header (J25, pins M1, L2),
|
||||
* LEDs defined as ``led1`` and ``led3``,
|
||||
|
||||
The Zephyr console uses UART0.
|
||||
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
Applications for the ``rzt2l_rsk`` board can be
|
||||
built, flashed, and debugged in the usual way. See :ref:`build_an_application`
|
||||
and :ref:`application_run` for more details on building and running.
|
||||
|
||||
To use J-Link OB on RSK+RZT2L,
|
||||
|
||||
1. Open the jumper pin (J9) for switching the debug connection.
|
||||
|
||||
2. Connect the micro-USB type-B to J-Link OB USB connector (J10), and then the LED6 is lighted.
|
||||
|
||||
Console
|
||||
=======
|
||||
|
||||
The UART port is accessed by USB-Serial port (CN16).
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
Here is an example for building and debugging with the :zephyr:code-sample:`hello_world` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: rzt2l_rsk
|
||||
:goals: build debug
|
||||
|
||||
Flashing
|
||||
=========
|
||||
|
||||
Before using ``flash`` command, the board must be set to xSPI1 boot mode.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: rzt2l_rsk
|
||||
:goals: build flash
|
||||
|
||||
References
|
||||
**********
|
||||
|
||||
.. target-notes::
|
||||
|
||||
.. _RZ/T2L Group Website:
|
||||
https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus/rzt2l-high-performance-mpu-realizing-high-speed-and-high-precision-real-time-control-ethercat
|
||||
|
||||
.. _RZ/T2L-RSK Website:
|
||||
https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus/rzt2l-rsk-renesas-starter-kit-rzt2l
|
BIN
boards/renesas/rzt2l_rsk/doc/rzt2l_block_diagram.webp
Normal file
BIN
boards/renesas/rzt2l_rsk/doc/rzt2l_block_diagram.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
boards/renesas/rzt2l_rsk/doc/rzt2l_rsk.webp
Normal file
BIN
boards/renesas/rzt2l_rsk/doc/rzt2l_rsk.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
94
boards/renesas/rzt2l_rsk/rzt2l_rsk.dts
Normal file
94
boards/renesas/rzt2l_rsk/rzt2l_rsk.dts
Normal file
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Renesas Electronics Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
#include <arm/renesas/rz/rzt/r9a07g074.dtsi>
|
||||
#include <freq.h>
|
||||
#include "rzt2l_rsk-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Renesas Starter Kit+ for RZ/T2L";
|
||||
compatible = "renesas,rzt2l-rsk";
|
||||
|
||||
chosen {
|
||||
zephyr,sram = &atcm;
|
||||
zephyr,flash = &xspi1_cs0;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &led1;
|
||||
sw0 = &sw2;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led1: led1 {
|
||||
gpios = <&gpio17 6 0>;
|
||||
label = "led1";
|
||||
};
|
||||
|
||||
led3: led3 {
|
||||
gpios = <&gpio18 1 0>;
|
||||
label = "led3";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
sw1: sw1 {
|
||||
label = "sw1";
|
||||
gpios = <&gpio14 2 0>;
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
|
||||
sw2: sw2 {
|
||||
label = "sw2";
|
||||
gpios = <&gpio16 3 0>;
|
||||
zephyr,code = <INPUT_KEY_1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sci0 {
|
||||
pinctrl-0 = <&sci0_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
|
||||
uart0: uart {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&gpio14 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio16 {
|
||||
irqs = <3 7>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio17 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio18 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&irq7 {
|
||||
trigger-type = "falling";
|
||||
pinctrl-0 = <&irq7_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
13
boards/renesas/rzt2l_rsk/rzt2l_rsk.yaml
Normal file
13
boards/renesas/rzt2l_rsk/rzt2l_rsk.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
identifier: rzt2l_rsk
|
||||
name: Renesas Starter Kit+ for RZ/T2L
|
||||
type: mcu
|
||||
arch: arm
|
||||
toolchain:
|
||||
- zephyr
|
||||
supported:
|
||||
- uart
|
||||
- gpio
|
||||
vendor: renesas
|
12
boards/renesas/rzt2l_rsk/rzt2l_rsk_defconfig
Normal file
12
boards/renesas/rzt2l_rsk/rzt2l_rsk_defconfig
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2025 Renesas Electronics Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_XIP=n
|
||||
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
||||
# Enable console
|
||||
CONFIG_CONSOLE=y
|
Loading…
Add table
Add a link
Reference in a new issue