-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: amd: Add board support for the versalnet rpu on Versal net SOC
Add generic board support for the RPU, real-time processing unit on Versal NET SoC. It is based on Cortext-R52 processor. Signed-off-by: Mubin Sayyed <[email protected]> Signed-off-by: Appana Durga Kedareswara rao <[email protected]>
- Loading branch information
Appana Durga Kedareswara rao
committed
Feb 27, 2025
1 parent
d4ba188
commit efa3d16
Showing
7 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
# | ||
# Copyright (c) 2025 Advanced Micro Devices, Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
config BOARD_VERSALNET_RPU | ||
select SOC_AMD_VERSALNET_RPU |
This file contains 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,7 @@ | ||
# | ||
# Copyright (c) 2025 Advanced Micro Devices, Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
include(${ZEPHYR_BASE}/boards/common/xsdb.board.cmake) |
This file contains 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 @@ | ||
board: | ||
name: versalnet_rpu | ||
vendor: amd | ||
socs: | ||
- name: amd_versalnet_rpu |
This file contains 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,44 @@ | ||
# Copyright (c) 2025 Advanced Micro Devices, Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
proc load_image args { | ||
set elf_file [lindex $args 0] | ||
|
||
if { [info exists ::env(HW_SERVER_URL)] } { | ||
connect -url $::env(HW_SERVER_URL) | ||
} else { | ||
connect | ||
} | ||
|
||
after 100 | ||
targets -set -nocase -filter {name =~ "Versal*"} | ||
after 100 | ||
rst -system | ||
after 100 | ||
|
||
if { [info exists ::env(PDI_FILE_PATH)] } { | ||
device program $::env(PDI_FILE_PATH) | ||
} else { | ||
puts "Error: env variable PDI_FILE_PATH is not set" | ||
exit | ||
} | ||
|
||
after 100 | ||
targets -set -nocase -filter {name =~ "DPC"} | ||
after 100 | ||
# Configure timestamp generator to run global timer gracefully | ||
# Ideally these registers should be set from bootloader (cdo) | ||
mwr -force 0xeb5b0000 0x1 | ||
mwr -force 0xeb5b0020 100000000 | ||
after 100 | ||
|
||
targets -set -nocase -filter {name =~ "*Cortex-R52 #0.0"} | ||
rst -proc | ||
after 100 | ||
dow -force $elf_file | ||
con | ||
exit | ||
} | ||
|
||
load_image {*}$argv |
This file contains 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,45 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* (C) Copyright 2025, Advanced Micro Devices, Inc. | ||
* | ||
* Mubin Sayyed <[email protected]> | ||
*/ | ||
|
||
/dts-v1/; | ||
#include <arm/xilinx/versalnet_r52.dtsi> | ||
|
||
/ { | ||
chosen { | ||
zephyr,sram = &sram0; | ||
zephyr,console = &uart0; | ||
zephyr,shell-uart = &uart0; | ||
zephyr,ocm = &ocm; | ||
}; | ||
}; | ||
|
||
&cpu0 { | ||
clock-frequency = <100000000>; | ||
}; | ||
|
||
&soc { | ||
sram0: memory@0 { | ||
compatible = "mmio-sram"; | ||
reg = <0x00000 DT_SIZE_M(2048)>; | ||
}; | ||
}; | ||
|
||
&ocm { | ||
status = "okay"; | ||
}; | ||
|
||
&uart1 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
clock-frequency = <100000000>; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
clock-frequency = <100000000>; | ||
}; |
This file contains 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 @@ | ||
identifier: versalnet_rpu | ||
name: AMD Development board for Versal NET RPU | ||
arch: arm | ||
toolchain: | ||
- zephyr | ||
testing: | ||
ignore_tags: | ||
- net | ||
- bluetooth | ||
vendor: amd |
This file contains 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,9 @@ | ||
# Enable UART driver | ||
CONFIG_SERIAL=y | ||
|
||
# Enable console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# Enable serial port | ||
CONFIG_UART_PL011=y |