diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 05110740..8a4ed450 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -166,7 +166,7 @@ def id(self) -> Optional[str]: elif chip_id == chips.RK3568: board_id = self._rk3568_id() elif chip_id == chips.RK3588: - board_id = self._rock_pi_id() + board_id = self._rock_pi_id() or self._armbian_id() elif chip_id == chips.RYZEN_V1605B: board_id = self._udoo_id() elif chip_id == chips.PENTIUM_N3710: @@ -342,6 +342,8 @@ def _armbian_id(self) -> Optional[str]: board = boards.ORANGE_PI_4 elif board_value == "orangepi4-lts": board = boards.ORANGE_PI_4_LTS + elif board_value == "orangepi5": + board = boards.ORANGE_PI_5 elif board_value == "bananapim2zero": board = boards.BANANA_PI_M2_ZERO elif board_value == "bananapim2plus": diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 79cf06c9..5becca30 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -53,6 +53,7 @@ ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS" ORANGE_PI_4 = "ORANGE_PI_4" ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS" +ORANGE_PI_5 = "ORANGE_PI_5" # Nano Pi boards NANOPI_NEO_AIR = "NANOPI_NEO_AIR" @@ -220,6 +221,7 @@ ORANGE_PI_3_LTS, ORANGE_PI_4, ORANGE_PI_4_LTS, + ORANGE_PI_5, ) # NanoPi