Skip to content
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

soc: renesas_ra: port to HWMv2 #68700

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_UNO_R4_MINIMA
bool "Arduino Uno R4 Minima board"
depends on SOC_R7FA4M1AB3CFM
select SOC_R7FA4M1AB3CFM
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

/dts-v1/;

#include <renesas/ra/r7fa4m1ab3cfm.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>

#include "arduino_uno_r4_common.dtsi"
#include "arduino_uno_r4_minima-pinctrl.dtsi"

/ {
model = "Arduino Uno R4 Minima";
compatible = "arduino,uno-r4-minima";

Check failure on line 16 in boards/arduino/arduino_uno_r4_minima/arduino_uno_r4_minima.dts

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/arduino/arduino_uno_r4_minima/arduino_uno_r4_minima.dts:16 code indent should use tabs where possible

Check warning on line 16 in boards/arduino/arduino_uno_r4_minima/arduino_uno_r4_minima.dts

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/arduino/arduino_uno_r4_minima/arduino_uno_r4_minima.dts:16 please, no spaces at the start of a line

chosen {
zephyr,console = &uart2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_RA4M1=y
CONFIG_SOC_R7FA4M1AB3CFM=y

CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000

CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_USE_DT_CODE_PARTITION=y

# enable uart driver
CONFIG_SERIAL=y
Expand All @@ -15,12 +12,3 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# enable GPIO
CONFIG_GPIO=y

CONFIG_PINCTRL=y

CONFIG_CLOCK_CONTROL=y

CONFIG_USE_DT_CODE_PARTITION=y
5 changes: 5 additions & 0 deletions boards/arduino/arduino_uno_r4_minima/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_uno_r4_minima
vendor: GigaDevice Semiconductor
socs:
- name: r7fa4m1ab3cfm
Binary file not shown.
9 changes: 0 additions & 9 deletions boards/boards_legacy/arm/arduino_uno_r4/Kconfig.defconfig

This file was deleted.

13 changes: 0 additions & 13 deletions boards/boards_legacy/arm/arduino_uno_r4/arduino_uno_r4_common.dtsi

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

source "soc/soc_legacy/arm/renesas_ra/*/Kconfig.defconfig.series"
config SOC_FAMILY_RENESAS_RA
select BUILD_OUTPUT_HEX

rsource "*/Kconfig"
14 changes: 14 additions & 0 deletions soc/renesas_ra/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

if SOC_FAMILY_RENESAS_RA

rsource "*/Kconfig.defconfig.series"

config PINCTRL
default y

config CLOCK_CONTROL
default y

endif # SOC_FAMILY_RENESAS_RA
10 changes: 10 additions & 0 deletions soc/renesas_ra/Kconfig.soc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

config SOC_FAMILY_RENESAS_RA
bool

config SOC_FAMILY
default "renesas_ra" if SOC_FAMILY_RENESAS_RA

rsource "*/Kconfig.soc"
6 changes: 6 additions & 0 deletions soc/renesas_ra/ra4m1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(.)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ config SOC_SERIES_RA4M1
select CPU_HAS_ARM_MPU
select CPU_CORTEX_M_HAS_SYSTICK
select DYNAMIC_INTERRUPTS
select SOC_FAMILY_RA
select SOC_FAMILY_RENESAS_RA
select TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
select XIP
17 changes: 17 additions & 0 deletions soc/renesas_ra/ra4m1/Kconfig.soc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

config SOC_SERIES_RA4M1
bool
help
Renesas RA4M1 SoC Selection

config SOC_SERIES
default "ra4m1" if SOC_SERIES_RA4M1

config SOC_R7FA4M1AB3CFM
bool
select SOC_SERIES_RA4M1

config SOC
default "r7fa4m1ab3cfm" if SOC_R7FAM1AB3CFM
File renamed without changes.
6 changes: 6 additions & 0 deletions soc/renesas_ra/soc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
family:
- name: renesas_ra
series:
- name: ra4
socs:
- name: r7fa4m1ab3cfm
18 changes: 0 additions & 18 deletions soc/soc_legacy/arm/renesas_ra/Kconfig

This file was deleted.

4 changes: 0 additions & 4 deletions soc/soc_legacy/arm/renesas_ra/Kconfig.soc

This file was deleted.

4 changes: 0 additions & 4 deletions soc/soc_legacy/arm/renesas_ra/ra4m1/CMakeLists.txt

This file was deleted.

11 changes: 0 additions & 11 deletions soc/soc_legacy/arm/renesas_ra/ra4m1/Kconfig.soc

This file was deleted.

Loading