Skip to content

Commit 40b6db5

Browse files
committed
Add detection for Radxa ZERO 3 boards (3E with ethernet and 3W with Wifi).
1 parent f991454 commit 40b6db5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ def _armbian_id(self) -> Optional[str]:
426426
board = boards.PCDUINO3
427427
elif board_value == "rock-3a":
428428
board = boards.ROCK_PI_3A
429+
elif board_value == "radxa-zero3":
430+
board = boards.RADXA_ZERO3
429431
elif board_value == "repka-pi3-h5":
430432
board = boards.REPKA_PI_3_H5
431433
elif board_value == "repka-pi4-h6":
@@ -575,6 +577,8 @@ def _rk3566_id(self) -> Optional[str]:
575577
board = boards.LUBANCAT1
576578
if board_value and "Radxa CM3 IO" in board_value:
577579
board = boards.RADXA_CM3
580+
if board_value and "Radxa ZERO 3" in board_value:
581+
board = boards.RADXA_ZERO3
578582
if board_value and "Radxa ROCK3 Model C" in board_value:
579583
board = boards.ROCK_PI_3C
580584
if board_value and "Rockchip RK3566 OPi 3B" in board_value:

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
QUARTZ64_A = "QUARTZ64_A"
193193

194194
RADXA_ZERO = "RADXA_ZERO"
195+
RADXA_ZERO3 = "RADXA_ZERO3"
195196
RADXA_CM3 = "RADXA_CM3"
196197

197198
ROCK_PI_3A = "ROCK_PI_3A"
@@ -526,6 +527,7 @@
526527
ROCK_PI_X,
527528
ROCK_PI_E,
528529
RADXA_ZERO,
530+
RADXA_ZERO3,
529531
ROCK_PI_5,
530532
RADXA_CM3,
531533
ROCK_PI_3A,

0 commit comments

Comments
 (0)