Skip to content

Commit 9970d21

Browse files
tiennguyenzgkartben
authored andcommitted
soc: renesas: Add initial support for Renesas RZ/V2H
Add initial support for Renesas RZ/V2H Signed-off-by: Tien Nguyen <[email protected]> Signed-off-by: Quang Le <[email protected]>
1 parent 769ae5c commit 9970d21

File tree

9 files changed

+129
-0
lines changed

9 files changed

+129
-0
lines changed

soc/renesas/rz/rzv2h/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_include_directories(.)
5+
6+
if(CONFIG_SOC_R9A09G057H44GBG_CM33)
7+
zephyr_include_directories(cm33)
8+
zephyr_sources(cm33/soc.c)
9+
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
10+
endif()

soc/renesas/rz/rzv2h/Kconfig

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 SOC_R9A09G057H44GBG_CM33
5+
select ARM
6+
select CPU_CORTEX_M33
7+
select CPU_HAS_ARM_MPU
8+
select HAS_RENESAS_RZ_FSP
9+
select CPU_CORTEX_M_HAS_DWT
10+
select SOC_EARLY_INIT_HOOK
11+
select CPU_HAS_FPU
12+
select ARMV8_M_DSP
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SOC_SERIES_RZV2H
5+
6+
rsource "Kconfig.defconfig.*"
7+
8+
endif # SOC_SERIES_RZV2H
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SOC_R9A09G057H44GBG_CM33
5+
6+
config NUM_IRQS
7+
default 480
8+
9+
config SYS_CLOCK_HW_CYCLES_PER_SEC
10+
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)
11+
12+
config FLASH_SIZE
13+
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)
14+
15+
config FLASH_BASE_ADDRESS
16+
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
17+
18+
config SYS_CLOCK_EXISTS
19+
default y
20+
21+
config INIT_ARCH_HW_AT_BOOT
22+
default y
23+
24+
endif # SOC_R9A09G057H44GBG_CM33

soc/renesas/rz/rzv2h/Kconfig.soc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_SERIES_RZV2H
5+
bool
6+
select SOC_FAMILY_RENESAS_RZ
7+
help
8+
Renesas RZ/V2H series
9+
10+
config SOC_SERIES
11+
default "rzv2h" if SOC_SERIES_RZV2H
12+
13+
config SOC_R9A09G057H44GBG
14+
bool
15+
select SOC_SERIES_RZV2H
16+
help
17+
R9A09G057H44GBG
18+
19+
config SOC_R9A09G057H44GBG_CM33
20+
bool
21+
select SOC_R9A09G057H44GBG
22+
help
23+
RZ/V2H CM33
24+
25+
config SOC
26+
default "r9a09g057h44gbg" if SOC_R9A09G057H44GBG

soc/renesas/rz/rzv2h/cm33/soc.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @file
9+
* @brief System/hardware module for Renesas RZ/V2H Group
10+
*/
11+
12+
#include <zephyr/init.h>
13+
#include <bsp_api.h>
14+
15+
/* System core clock is set to 200 MHz after reset */
16+
uint32_t SystemCoreClock = 200000000;
17+
18+
void soc_early_init_hook(void)
19+
{
20+
bsp_clock_init();
21+
}

soc/renesas/rz/rzv2h/cm33/soc.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_SOC_RENESAS_RZV2H_SOC_H_
8+
#define ZEPHYR_SOC_RENESAS_RZV2H_SOC_H_
9+
10+
#include <bsp_api.h>
11+
12+
#endif /* ZEPHYR_SOC_RENESAS_RZV2H_SOC_H_ */

soc/renesas/rz/rzv2h/pinctrl_soc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#ifndef ZEPHYR_SOC_RENESAS_RZ_RZV2H_PINCTRL_SOC_H_
7+
#define ZEPHYR_SOC_RENESAS_RZ_RZV2H_PINCTRL_SOC_H_
8+
9+
#include <pinctrl_rzv.h>
10+
11+
#endif /* ZEPHYR_SOC_RENESAS_RZ_RZV2H_PINCTRL_SOC_H_ */

soc/renesas/rz/soc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ family:
2525
- name: r9a07g054l23gbg
2626
cpuclusters:
2727
- name: cm33
28+
- name: rzv2h
29+
socs:
30+
- name: r9a09g057h44gbg
31+
cpuclusters:
32+
- name: cm33
2833
- name: rzn2l
2934
socs:
3035
- name: r9a07g084m04gbg

0 commit comments

Comments
 (0)