-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Support Retronix Sparrow Hawk board based on Renesas R-Car V4H SoC #97783
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
DuyDang007
wants to merge
6
commits into
zephyrproject-rtos:main
Choose a base branch
from
DuyDang007:main_sparrowhawk
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,807
−4
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
73eb16c
dts: bindings: Add clock-frequency property to Arm v8 timer
DuyDang007 acdbad6
soc: renesas: rcar: Support V4H SoC
DuyDang007 16ec18e
board: rcar: Support Retronix Sparrow Hawk board
DuyDang007 56fb0f0
driver: clock_control: Add V4H clock control driver
DuyDang007 3fbf932
driver: pinctrl: Add support R-Car V4H SoC
DuyDang007 1c122f8
board: rcar: Add document for Retronix Sparrow Hawk board
DuyDang007 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| .. _boards-retronix: | ||
|
|
||
| Retronix Technology Inc | ||
| ####################### | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
| :glob: | ||
|
|
||
| **/* | ||
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 BUILD_OUTPUT_BIN | ||
| default y if BOARD_SPARROWHAWK_RCAR_V4H_R8A779G0_R52 |
5 changes: 5 additions & 0 deletions
5
boards/retronix/sparrowhawk_rcar_v4h/Kconfig.sparrowhawk_rcar_v4h
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_SPARROWHAWK_RCAR_V4H | ||
| select SOC_R8A779G0_R52 if BOARD_SPARROWHAWK_RCAR_V4H_R8A779G0_R52 |
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 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| if(CONFIG_BOARD_SPARROWHAWK_RCAR_V4H_R8A779G0_R52) | ||
| board_runner_args(openocd "--use-elf") | ||
| include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
| endif() |
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: sparrowhawk_rcar_v4h | ||
| full_name: Sparrow Hawk R-Car V4H SBC | ||
| vendor: retronix | ||
| socs: | ||
| - name: r8a779g0 |
Binary file added
BIN
+59.8 KB
boards/retronix/sparrowhawk_rcar_v4h/doc/img/sparrowhawk_rcar_v4h.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 148 additions & 0 deletions
148
boards/retronix/sparrowhawk_rcar_v4h/doc/sparrow_hawk_rcar_v4h_r52.rst
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,148 @@ | ||
| .. zephyr:board:: sparrowhawk_rcar_v4h | ||
| Overview | ||
| ******** | ||
| Retronix Sparrow Hawk Single Board Computer (SBC) is powered by the latest Renesas R-Car V4H | ||
| System-on-Chip. Sparrow Hawk focuses on robotics, industrial automation, and rapid prototyping, | ||
| offering a highly flexible and cost-effective development platform. | ||
|
|
||
| The R-Car V4H system-on-chip is tailored for central processing for advanced driver-assistance (ADAS) | ||
| and automated driving (AD) systems. The R-Car V4H achieves deep learning performance of up to 34 TOPS | ||
| (Tera Operations Per Second), enabling high-speed image recognition and processing of surrounding | ||
| objects by automotive cameras, radar, and Light Detection and Ranging (LiDAR). | ||
|
|
||
| Hardware | ||
| ******** | ||
|
|
||
| Hardware capabilities of the board can be found on `Retronix Sparrow Hawk`_ page. | ||
| All the features of Renesas R-Car V4H SoC are described in the product page `Renesas R-Car V4H`_. | ||
|
|
||
| Supported Features | ||
| ================== | ||
|
|
||
| We support Zephyr running on Cortex R52 processor that is provided for RTOS purpose. | ||
|
|
||
| .. zephyr:board-supported-hw:: | ||
| Connections and IOs | ||
| =================== | ||
|
|
||
| For the connections and IO interfaces, refer to the official page `Retronix Sparrow Hawk`_ | ||
|
|
||
| UART | ||
| ---- | ||
|
|
||
| Here is information about serial ports provided on Sparrow Hawk board : | ||
|
|
||
| +--------------------------+--------------------+--------------------+-------------+---------------------------+ | ||
| | Software interface | Physical Interface | Hardware Interface | Converter | Usage Note | | ||
| +==========================+====================+====================+=============+===========================+ | ||
| | /tty/USBx, COMn (lower) | CN4 USB Port | HSCIF0 | FT2232H | Used by U-Boot and Linux | | ||
| +--------------------------+--------------------+--------------------+-------------+---------------------------+ | ||
| | /tty/USBy, COMm (higher) | CN4 USB Port | HSCIF1 | FT2232H | Default for Zephyr | | ||
| +--------------------------+--------------------+--------------------+-------------+---------------------------+ | ||
|
|
||
| .. note:: | ||
| By default, Zephyr console output is assigned to HSCIF1 with 921600 8N1 without | ||
| hardware flow control. | ||
|
|
||
| Programming and Debugging | ||
| ************************* | ||
|
|
||
| You can build the applications as usual. This is the example for Hello World: | ||
|
|
||
| .. zephyr-app-commands:: | ||
| :zephyr-app: samples/hello_world | ||
| :board: sparrowhawk_rcar_v4h/r8a779g0/r52 | ||
| :goals: build | ||
|
|
||
| Configuring a Console | ||
| ===================== | ||
|
|
||
| Connect a USB cable from your PC to CN4 USB port. There are two COM ports (or /tty/USB devices) available. | ||
| Both of them are used for booting procedure. Use the following settings with your serial terminal of choice | ||
| (minicom, putty, etc.): | ||
|
|
||
| * Speed: 921600 | ||
| * Data: 8 bits | ||
| * Parity: None | ||
| * Stop bits: 1 | ||
|
|
||
| Flashing | ||
| ======== | ||
|
|
||
| The board does not support flashing Zephyr image. However, the image writing and loading | ||
| can be done with U-Boot. | ||
|
|
||
| Make sure you have already flashed the board with U-Boot, see the guideline at: `Retronix Sparrow Hawk`_, | ||
| section "4.2.1. Flashing loader". | ||
| Connect the terminal software to the serial port of HSCIF0 (lower /tty/USBx or COMn). | ||
| Powerup the board by pressing SW1 switch. You would see the boot log: | ||
|
|
||
| .. code-block:: console | ||
| U-Boot SPL 2025.07 (Aug 07 2025 - 04:02:12 +0000) | ||
| Trying to boot from SPI | ||
| U-Boot 2025.07 (Aug 07 2025 - 04:02:12 +0000) | ||
| CPU: Renesas Electronics R8A779G0 rev 3.0 | ||
| Model: Retronix Sparrow Hawk board based on r8a779g3 | ||
DuyDang007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| DRAM: 2 GiB (total 16 GiB) | ||
| Core: 87 devices, 23 uclasses, devicetree: separate | ||
| MMC: mmc@ee140000: 0 | ||
| Loading Environment from SPIFlash... SF: Detected w77q51nw with page size 256 Bytes, erase size 64 KiB, total 64 MiB | ||
| OK | ||
| In: serial@e6540000 | ||
| Out: serial@e6540000 | ||
| Err: serial@e6540000 | ||
| Net: eth0: ethernet@e6800000 | ||
| => | ||
| Press any key to stop the booting and continue at the U-Boot prompt. | ||
|
|
||
| Method 1: Using TFTP to transfer Zephyr image | ||
|
|
||
| This assumes that you have already installed a TFTP server in the host PC. | ||
| Put the image bin file ``build/zephyr/zephyr.bin`` inside TFTP root directory. Run these | ||
| U-Boot commands: | ||
|
|
||
| .. code-block:: console | ||
| => setenv ipaddr <board.ip> | ||
| => setenv serverip <tftp.server.ip> | ||
| => tftp 0x40040000 zephyr.bin | ||
| => rproc init; rproc load 0:3 0x40040000 0x200000; rproc start 0 | ||
| Method 2: Using serial to transfer Zephyr image | ||
|
|
||
| Some terminal software support transferring file via serial using Kermit protocol. Use this U-Boot commands: | ||
|
|
||
| .. code-block:: console | ||
| => loadb 0x40040000 921600 | ||
| ## Ready for binary (kermit) download to 0x40040000 at 921600 bps... | ||
nordicjm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| (Transfer zephyr.bin after this line) | ||
| ## Total Size = 0x00009f2c = 40748 Bytes | ||
| ## Start Addr = 0x40040000 | ||
| => rproc init; rproc load 0:3 0x40040000 0x200000; rproc start 0 | ||
| You should see Zephyr boot log in the terminal of HSCIF1: | ||
|
|
||
| .. code-block:: console | ||
| *** Booting Zephyr OS build v4.2.0-4945-g8fc6351ef451 *** | ||
| Hello World! sparrowhawk_rcar_v4h/r8a779g0/r52 | ||
| References | ||
| ********** | ||
|
|
||
| - `Renesas R-Car V4H`_ | ||
| - `Retronix Sparrow Hawk`_ | ||
|
|
||
| .. _Renesas R-Car V4H: | ||
| https://www.renesas.com/en/products/r-car-v4h | ||
|
|
||
| .. _Retronix Sparrow Hawk: | ||
| https://rcar-community.github.io/Sparrow-Hawk/index.html | ||
25 changes: 25 additions & 0 deletions
25
boards/retronix/sparrowhawk_rcar_v4h/sparrowhawk_rcar_v4h_r8a779g0_r52-pinctrl.dtsi
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,25 @@ | ||||||||
| /* | ||||||||
| * Copyright (c) 2025 Renesas Electronics Corporation | ||||||||
| * | ||||||||
| * SPDX-License-Identifier: Apache-2.0 | ||||||||
| */ | ||||||||
|
|
||||||||
| #include <dt-bindings/pinctrl/renesas/pinctrl-r8a779g0.h> | ||||||||
|
|
||||||||
| &pfc { | ||||||||
| hscif0_data_tx_default: hscif0_data_tx_default { | ||||||||
| pin = <PIN_HRX0 FUNC_HRX0>; | ||||||||
| }; | ||||||||
|
|
||||||||
| hscif0_data_rx_default: hscif0_data_rx_default { | ||||||||
| pin = <PIN_HTX0 FUNC_HTX0>; | ||||||||
| }; | ||||||||
|
|
||||||||
| hscif1_data_tx_default: hscif1_data_tx_default { | ||||||||
| pin = <PIN_MSIOF2_SYNC FUNC_HRX1>; | ||||||||
| }; | ||||||||
|
|
||||||||
| hscif1_data_rx_default: hscif1_data_rx_default { | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| pin = <PIN_MSIOF2_SS1 FUNC_HTX1>; | ||||||||
| }; | ||||||||
| }; | ||||||||
34 changes: 34 additions & 0 deletions
34
boards/retronix/sparrowhawk_rcar_v4h/sparrowhawk_rcar_v4h_r8a779g0_r52.dts
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,34 @@ | ||
| /* | ||
| * Copyright (c) 2025 Renesas Electronics Corporation | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| #include <arm/renesas/rcar/gen4/r8a779g0.dtsi> | ||
| #include "sparrowhawk_rcar_v4h_r8a779g0_r52-pinctrl.dtsi" | ||
|
|
||
| / { | ||
| model = "Retronix Sparrow Hawk on R-Car V4H"; | ||
| compatible = "retronix,sparrowhawk-v4h-cr52"; | ||
|
|
||
| chosen { | ||
| zephyr,sram = &sram0; | ||
| zephyr,console = &hscif1; | ||
| zephyr,shell-uart = &hscif1; | ||
| }; | ||
| }; | ||
|
|
||
| /* USB serial */ | ||
| &hscif0 { | ||
| pinctrl-0 = <&hscif0_data_tx_default &hscif0_data_rx_default>; | ||
| pinctrl-names = "default"; | ||
| status = "disabled"; | ||
| }; | ||
|
|
||
| &hscif1 { | ||
| pinctrl-0 = <&hscif1_data_tx_default &hscif1_data_rx_default>; | ||
| pinctrl-names = "default"; | ||
| status = "okay"; | ||
| }; |
11 changes: 11 additions & 0 deletions
11
boards/retronix/sparrowhawk_rcar_v4h/sparrowhawk_rcar_v4h_r8a779g0_r52.yaml
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,11 @@ | ||
| identifier: sparrowhawk_rcar_v4h/r8a779g0/r52 | ||
| name: Retronix Sparrow Hawk with Renesas R-Car V4H Cortex R52 | ||
| type: mcu | ||
| arch: arm | ||
| toolchain: | ||
| - zephyr | ||
| - gnuarmemb | ||
| supported: | ||
| - gpio | ||
| - clock_control | ||
| - uart |
11 changes: 11 additions & 0 deletions
11
boards/retronix/sparrowhawk_rcar_v4h/sparrowhawk_rcar_v4h_r8a779g0_r52_defconfig
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,11 @@ | ||
| CONFIG_CLOCK_CONTROL=y | ||
|
|
||
| # UART driver | ||
| CONFIG_SERIAL=y | ||
| CONFIG_UART_USE_RUNTIME_CONFIGURE=y | ||
| CONFIG_UART_INTERRUPT_DRIVEN=n | ||
|
|
||
| # Console | ||
| CONFIG_CONSOLE=y | ||
| CONFIG_RAM_CONSOLE=n | ||
| 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
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.
Uh oh!
There was an error while loading. Please reload this page.