From 40b6db5b11a12b6f1052ff7c887099bfafda4b8f Mon Sep 17 00:00:00 2001 From: Jens Oberender <1905126+burberius@users.noreply.github.com> Date: Wed, 17 Apr 2024 20:25:02 +0200 Subject: [PATCH] Add detection for Radxa ZERO 3 boards (3E with ethernet and 3W with Wifi). --- adafruit_platformdetect/board.py | 4 ++++ adafruit_platformdetect/constants/boards.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index bffa6a3..e06d759 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -426,6 +426,8 @@ def _armbian_id(self) -> Optional[str]: board = boards.PCDUINO3 elif board_value == "rock-3a": board = boards.ROCK_PI_3A + elif board_value == "radxa-zero3": + board = boards.RADXA_ZERO3 elif board_value == "repka-pi3-h5": board = boards.REPKA_PI_3_H5 elif board_value == "repka-pi4-h6": @@ -575,6 +577,8 @@ def _rk3566_id(self) -> Optional[str]: board = boards.LUBANCAT1 if board_value and "Radxa CM3 IO" in board_value: board = boards.RADXA_CM3 + if board_value and "Radxa ZERO 3" in board_value: + board = boards.RADXA_ZERO3 if board_value and "Radxa ROCK3 Model C" in board_value: board = boards.ROCK_PI_3C if board_value and "Rockchip RK3566 OPi 3B" in board_value: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index f0254b2..5a9af9f 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -192,6 +192,7 @@ QUARTZ64_A = "QUARTZ64_A" RADXA_ZERO = "RADXA_ZERO" +RADXA_ZERO3 = "RADXA_ZERO3" RADXA_CM3 = "RADXA_CM3" ROCK_PI_3A = "ROCK_PI_3A" @@ -526,6 +527,7 @@ ROCK_PI_X, ROCK_PI_E, RADXA_ZERO, + RADXA_ZERO3, ROCK_PI_5, RADXA_CM3, ROCK_PI_3A,