Merge pull request #385 from bablokb/radxa_x4

add support for Radxa-X4 via U2IF
This commit is contained in:
Melissa LeBlanc-Williams 2025-06-18 13:56:47 -07:00 committed by GitHub
commit 46f0930498
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View file

@ -896,6 +896,8 @@ class Board:
product = dev["product_id"]
if vendor == 0xCAFE and product == 0x4005:
return boards.PICO_U2IF
if vendor == 0xCAFF and product == 0x4005:
return boards.RADXA_X4_U2IF
if vendor == 0x239A:
# Feather RP2040
if product == 0x00F1:
@ -1203,6 +1205,7 @@ class Board:
yield self.board.QT2040_TRINKEY_U2IF
yield self.board.KB2040_U2IF
yield self.board.RP2040_ONE_U2IF
yield self.board.RADXA_X4_U2IF
yield self.board.OS_AGNOSTIC_BOARD
return any(condition for condition in lazily_generate_conditions())
@ -1342,6 +1345,11 @@ class Board:
"""Check whether the current board is an RP2040 One w/ u2if."""
return self.id == boards.RP2040_ONE_U2IF
@property
def radxa_x4_u2if(self) -> bool:
"""Check whether the current board is an RP2040 One w/ u2if."""
return self.id == boards.RADXA_X4_U2IF
@property
def binho_nova(self) -> bool:
"""Check whether the current board is an BINHO NOVA."""

View file

@ -125,7 +125,8 @@ class Chip:
if (
(
# Raspberry Pi Pico
vendor == 0xCAFE
# Radxa X4
vendor in (0xCAFE, 0xCAFF)
and product == 0x4005
)
or (

View file

@ -195,6 +195,7 @@ QT2040_TRINKEY_U2IF = "QT2040_TRINKEY_U2IF"
KB2040_U2IF = "KB2040_U2IF"
RP2040_ONE_U2IF = "RP2040_ONE_U2IF"
RADXA_X4_U2IF = "RADXA_X4_U2IF"
BINHO_NOVA = "BINHO_NOVA"