Skip to content

Commit 85730de

Browse files
committed
Added support for Orange Pi 5 Pro running Armbian and official Orange Pi jammy Ubuntu Server image
1 parent ba31c3c commit 85730de

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
@@ -448,6 +448,8 @@ def _armbian_id(self) -> Optional[str]:
448448
board = boards.ORANGE_PI_5_PLUS
449449
elif board_value == "orangepi5":
450450
board = boards.ORANGE_PI_5
451+
elif board_value == "orangepi5-pro":
452+
board = boards.ORANGE_PI_5_PRO
451453
elif board_value == "bananapim2zero":
452454
board = boards.BANANA_PI_M2_ZERO
453455
elif board_value == "bananapim2plus":
@@ -518,6 +520,8 @@ def _orange_pi_id(self) -> Optional[str]:
518520
board_value = self.detector.get_device_model()
519521
if "OPi 5 Max" in board_value:
520522
return boards.ORANGE_PI_5_MAX
523+
if "OPi 5 Pro" in board_value:
524+
return boards.ORANGE_PI_5_PRO
521525
if "Orange Pi 5 Max" in board_value:
522526
return boards.ORANGE_PI_5_MAX
523527
if "Orange Pi 5 Plus" in board_value:

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
ORANGE_PI_5 = "ORANGE_PI_5"
7070
ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX"
7171
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"
72+
ORANGE_PI_5_PRO = "ORANGE_PI_5_PRO"
7273

7374
# Nano Pi boards
7475
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
@@ -314,6 +315,7 @@
314315
ORANGE_PI_4_LTS,
315316
ORANGE_PI_5,
316317
ORANGE_PI_5_PLUS,
318+
ORANGE_PI_5_PRO
317319
)
318320

319321
# NanoPi

0 commit comments

Comments
 (0)