From 2833e0a8594dcfa01b8b77833b85ec19c7e09b17 Mon Sep 17 00:00:00 2001 From: mbedNoobNinja Date: Tue, 7 Mar 2023 11:23:04 +0200 Subject: [PATCH] tests/renesas-ra: Adjust ra specific tests to support new boards. tests: Integration to the existing renesas-ra family tests. --- tests/renesas-ra/freq.py | 24 ++++++++++++++++++++++++ tests/renesas-ra/i2c.py | 4 +++- tests/renesas-ra/spi.py | 6 +++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/tests/renesas-ra/freq.py b/tests/renesas-ra/freq.py index 6fbf6ce09630a..84d4c79955197 100644 --- a/tests/renesas-ra/freq.py +++ b/tests/renesas-ra/freq.py @@ -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 @@ -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") @@ -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") diff --git a/tests/renesas-ra/i2c.py b/tests/renesas-ra/i2c.py index bb22509e453ec..7cd3a9097cd62 100644 --- a/tests/renesas-ra/i2c.py +++ b/tests/renesas-ra/i2c.py @@ -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 diff --git a/tests/renesas-ra/spi.py b/tests/renesas-ra/spi.py index eb24f3714706a..a846f70047797 100644 --- a/tests/renesas-ra/spi.py +++ b/tests/renesas-ra/spi.py @@ -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: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy