Skip to content

tests/renesas-ra: Add support for VK-RA4W1, VK_RA6M3 & VK-RA6M5 boards. #10955

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
24 changes: 24 additions & 0 deletions tests/renesas-ra/freq.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
MACHINE_RA4M1_CLICKER = "RA4M1_CLICKER with RA4M1"
MACHINE_RA4M1_EK = "RA4M1_EK with RA4M1"
MACHINE_RA4W1_EK = "RA4W1_EK with RA4W1"
MACHINE_VK_RA4W1 = "VK-RA4W1 with RA4W1"
MACHINE_RA6M1_EK = "RA6M1_EK with RA6M1"
MACHINE_RA6M2_EK = "RA6M2_EK with RA6M2"
MACHINE_VK_RA6M3 = "VK-RA6M3 with RA6M3"
MACHINE_VK_RA6M5 = "VK-RA6M5 with RA6M5"
SYSCLK_RA4M1_CLICKER = 48000000
SYSCLK_RA4M1_EK = 48000000
SYSCLK_RA4W1_EK = 48000000
SYSCLK_VK_RA4W1 = 48000000
SYSCLK_RA6M1_EK = 120000000
SYSCLK_RA6M2_EK = 120000000
SYSCLK_VK_RA6M3 = 120000000
SYSCLK_VK_RA6M5 = 200000000

#
# machine
Expand Down Expand Up @@ -46,6 +52,12 @@
else:
print("freq: NG")

if m == MACHINE_VK_RA4W1:
if f == SYSCLK_VK_RA4W1:
print("freq: OK")
else:
print("freq: NG")

if m == MACHINE_RA6M1_EK:
if f == SYSCLK_RA6M1_EK:
print("freq: OK")
Expand All @@ -57,3 +69,15 @@
print("freq: OK")
else:
print("freq: NG")

if m == MACHINE_VK_RA6M3:
if f == SYSCLK_VK_RA6M3:
print("freq: OK")
else:
print("freq: NG")

if m == MACHINE_VK_RA6M5:
if f == SYSCLK_VK_RA6M5:
print("freq: OK")
else:
print("freq: NG")
4 changes: 3 additions & 1 deletion tests/renesas-ra/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
import time

n = os.uname().machine
if "RA6M2_EK" in n:
if ("RA6M2_EK" in n) or ("VK-RA6M5" in n):
i2c_id = 2
elif "RA6M1_EK" in n:
i2c_id = 0
elif ("RA4M1_CLICKER" in n) or ("RA4M1_EK" in n) or ("RA4W1_EK" in n):
print("SKIP")
raise SystemExit
elif ("VK-RA4W1" in n) or ("VK-RA6M3" in n):
i2c_id = 1
else:
i2c_id = 0

Expand Down
6 changes: 5 additions & 1 deletion tests/renesas-ra/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
):
spis = (-1, 0)
else:
spis = (-1, 0, 1)
if ("VK-RA4W1" in machine) or ("VK-RA6M3" in machine) or ("VK-RA6M5" in machine):
print("SKIP")
raise SystemExit
else:
spis = (-1, 0, 1)

# test we can correctly create by id
for bus in spis:
Expand Down