Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f92f87f
manifest: update revision of hal_renesas to latest
khoatranyj Mar 5, 2025
e238c9a
soc: renesas: ra: Add support for Renesas RA4T1 SoC series
khoatranyj Oct 30, 2025
143e407
dt-bindings: misc: Add ELC enum dts bindings for RA4T1 SoC
khoatranyj Oct 31, 2025
de8c1ae
dts: arm: renesas: Add dts support for Renesas RA4T1 SoC series
khoatranyj Oct 30, 2025
d58412f
boards: renesas: Add board support for Renesas mck_ra4t1
khoatranyj Oct 30, 2025
65e1de5
samples: drivers: counter: Add sample support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
bcade40
samples: drivers: dac: Add sample support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
0b2448f
samples: drivers: adc: Add sample support for Renesas mck_ra4t1
khoatranyj Nov 6, 2025
0834eeb
samples: boards: renesas: Add ELC sample support for mck_ra4t1
khoatranyj Oct 31, 2025
046ebd6
tests: drivers: uart: Add test support for mck_ra4t1
khoatranyj Oct 31, 2025
9f348a5
tests: drivers: spi: Add test support for mck_ra4t1
khoatranyj Oct 31, 2025
7808d8b
tests: drivers: pwm: Add test support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
79ad9cd
tests: drivers: counter: Add test support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
a46cc33
tests: drivers: adc: Add tests support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
36cec7b
tests: drivers: dac: Add tests support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
e83ba6e
tests: drivers: dma: Add tests support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
eb22956
tests: drivers: flash: Add tests support for Renesas mck_ra4t1
khoatranyj Oct 31, 2025
98c3f5e
tests: boards: renesas: Add ELC test support for mck_ra4t1
khoatranyj Oct 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions boards/renesas/mck_ra4t1/Kconfig.mck_ra4t1
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_MCK_RA4T1
select SOC_R7FA4T1BB3CFM
8 changes: 8 additions & 0 deletions boards/renesas/mck_ra4t1/board.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

board_runner_args(jlink "--device=R7FA4T1BB")
board_runner_args(pyocd "--target=R7FA4T1BB")

include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
6 changes: 6 additions & 0 deletions boards/renesas/mck_ra4t1/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
board:
name: mck_ra4t1
full_name: RA4T1 Motor Control Kit
vendor: renesas
socs:
- name: r7fa4t1bb3cfm
148 changes: 148 additions & 0 deletions boards/renesas/mck_ra4t1/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
.. zephyr:board:: mck_ra4t1

Overview
********

The MCK-RA4T1 is an Motor Control Kit for Renesas RA4T1 MCU Group which integrates multiple series of software and
pin-compatible Arm®-based 32-bit cores that share a common set of Renesas peripherals to facilitate design scalability
and efficient platform-based product development.

The MCU in this series incorporates a high-performance Arm Cortex®-M33 core running up to 100 MHz with the following
features:

- Up to 256 KB code flash memory
- 40 KB SRAM
- Analog peripherals
- Security and safety features

MCK-RA4T1 kit includes the items below:

- RA4T1 CPU board (`MCB-RA4T1`_)
- Inverter board (`MCI-LV-1`_)
- Brushless DC Motor
- Accessories (cables, standoffs, etc.)

The specifications of the CPU board are shown below:

**MCU specifications**

- 100 MHz Arm® Cortex®-M33 core based RA4T1 MCU 64 pins, LFQFP package
- ROM/SRAM size: 256KB/40KB
- MCU input clock: 10MHz (Generate with external crystal oscillator)
- Power supply: DC 5V, select one way automatically from the below:

- Power is supplied from compatible inverter board
- Power is supplied from USB connector

**Connector**

- Inverter board connector
- USB connector for J-Link OB
- SCI connector for Renesas Motor Workbench communication
- Through hole for CAN communication
- 10 pin through hole for Arm debugger
- PMOD connectors
- MCU reset switch
- User-controllable LED x2, Power LED x1

**Onboard debugger**

This product has the onboard debugger circuit, J-Link On-Board (hereinafter called “J-Link-OB”). When you write a program,
connect the CPU board to PC with USB cable. J-Link-OB operates as debugger equivalent to J-Link. If connecting from flash
programing tool (e.g. J-Flash Lite by SEGGER), set the type of debugger (tool) to “JLink”

Hardware
********
Detailed Hardware features for the RA4T1 MCU group can be found at:
- The RA4T1 MCU group: `RA4T1 Group User's Manual Hardware`_
- The MCB-RA4T1 board: `MCB-RA4T1 - User's Manual`_

Supported Features
==================

.. zephyr:board-supported-hw::

Programming and Debugging
*************************

.. zephyr:board-supported-runners::

Applications for the ``mck_ra4t1`` 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.

Configuring the Debug Probe
===========================

The MCK-RA4T1 board includes an on-board SEGGER J-Link debugger.
SEGGER J-Link drivers are available at https://www.segger.com/downloads/jlink

To use the on-board J-Link debugger, ensure that:

1. The J-Link OB is connected to the host PC via the USB port (CN9).

2. The J-Link OB jumper is in the default configuration as described in the `MCB-RA4T1 - User's Manual`_.

Configuring a Console
=====================

Connect a USB cable from your PC to the on-board virtual COM port (CN9), and use a
serial terminal of your choice (minicom, PuTTY, etc.) with the following settings:

- Speed: 115200
- Data: 8 bits
- Parity: None
- Stop bits: 1

Flashing
========

Here is an example for the :zephyr:code-sample:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mck_ra4t1
:goals: flash

Open a serial terminal, reset the board (push the reset switch S1), and you should
see the following message in the terminal:

.. code-block:: console

***** Booting Zephyr OS v4.3.0-xxx-xxxxxxxxxxxxx *****
Hello World! mck_ra4t1

Debugging
=========

Here is an example for the :zephyr:code-sample:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mck_ra4t1
:goals: debug

Open a serial terminal, step through the application in your debugger, and you
should see the following message in the terminal:

References
**********
- `MCK-RA4T1 Website`_
- `RA4T1 MCU group Website`_

.. _MCK-RA4T1 Website:
https://www.renesas.com/en/design-resources/boards-kits/mck-ra4t1

.. _RA4T1 MCU group Website:
https://www.renesas.com/en/products/ra4t1

.. _MCB-RA4T1 - User's Manual:
https://www.renesas.com/en/document/mat/mcb-ra4t1-users-manual

.. _RA4T1 Group User's Manual Hardware:
https://www.renesas.com/en/document/mah/ra4t1-group-users-manual-hardware

.. _MCB-RA4T1:
https://www.renesas.com/en/design-resources/boards-kits/mcb-ra4t1

.. _MCI-LV-1:
https://www.renesas.com/en/design-resources/boards-kits/mci-lv-1
Binary file added boards/renesas/mck_ra4t1/doc/mck_ra4t1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions boards/renesas/mck_ra4t1/mck_ra4t1-pinctrl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
sci9_default: sci9_default {
group1 {
/* TXD9 RXD9 */
psels = <RA_PSEL(RA_PSEL_SCI_9, 1, 9)>,
<RA_PSEL(RA_PSEL_SCI_9, 1, 10)>;
drive-strength = "high";
};
};

spi0_default: spi0_default {
group1 {
/* MISOA MOSIA RSPCKA SSLA0 */
psels = <RA_PSEL(RA_PSEL_SPI, 2, 6)>,
<RA_PSEL(RA_PSEL_SPI, 2, 7)>,
<RA_PSEL(RA_PSEL_SPI, 3, 2)>,
<RA_PSEL(RA_PSEL_SPI, 3, 1)>;
drive-strength = "high";
};
};
};
87 changes: 87 additions & 0 deletions boards/renesas/mck_ra4t1/mck_ra4t1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <renesas/ra/ra4/r7fa4t1bb3cfm.dtsi>
#include <dt-bindings/gpio/gpio.h>
#include "mck_ra4t1-pinctrl.dtsi"

/ {
model = "Renesas MCK-RA4T1";
compatible = "renesas,ra4t1", "renesas,ra";

chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart9;
zephyr,shell-uart = &uart9;
zephyr,entropy = &trng;
zephyr,flash-controller = &flash0;
zephyr,crc = &crc;
};

leds {
compatible = "gpio-leds";

led1: led1 {
gpios = <&ioport1 13 GPIO_ACTIVE_LOW>;
label = "LED1";
};

led2: led2 {
gpios = <&ioport1 6 GPIO_ACTIVE_LOW>;
label = "LED2";
};
};

aliases {
led0 = &led1;
watchdog0 = &wdt;
};
};

&xtal {
clock-frequency = <DT_FREQ_M(10)>;
status = "okay";
};

&pll {
status = "okay";
};

&ioport1 {
status = "okay";
};

&sci9 {
pinctrl-0 = <&sci9_default>;
pinctrl-names = "default";
status = "okay";

uart9: uart {
current-speed = <115200>;
status = "okay";
};
};

&spi0 {
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
};

&wdt {
status = "okay";
};

&crc {
status = "okay";
};

&trng {
status = "okay";
};

pmod_spi: &spi0 {};
12 changes: 12 additions & 0 deletions boards/renesas/mck_ra4t1/mck_ra4t1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
identifier: mck_ra4t1
name: Renesas MCK-RA4T1
type: mcu
arch: arm
ram: 40
flash: 256
toolchain:
- zephyr
supported:
- gpio
- uart
vendor: renesas
11 changes: 11 additions & 0 deletions boards/renesas/mck_ra4t1/mck_ra4t1_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

# Enable GPIO
CONFIG_GPIO=y

# Enable Console
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_CONSOLE=y
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1b93cfj.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_32.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1x9.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1b93cfl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_48.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1x9.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1b93cfm.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_64.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1x9.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1b93cne.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_48.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1x9.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1b93cnh.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_32.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1x9.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1bb3cfj.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_32.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1xb.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1bb3cfl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_48.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1xb.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1bb3cfm.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_64.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1xb.dtsi>
8 changes: 8 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4t1bb3cne.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <arm/renesas/ra/ra4/r7fa4t1bx_48.dtsi>
#include <arm/renesas/ra/ra4/r7fa4t1xb.dtsi>
Loading