From 85730de9d9c587acf66e7da7056afceb2e13ee47 Mon Sep 17 00:00:00 2001 From: agstewart Date: Fri, 18 Jul 2025 01:23:14 -0500 Subject: [PATCH] Added support for Orange Pi 5 Pro running Armbian and official Orange Pi jammy Ubuntu Server image --- 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 d2de03b..dfef3fa 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -448,6 +448,8 @@ class Board: board = boards.ORANGE_PI_5_PLUS elif board_value == "orangepi5": board = boards.ORANGE_PI_5 + elif board_value == "orangepi5-pro": + board = boards.ORANGE_PI_5_PRO elif board_value == "bananapim2zero": board = boards.BANANA_PI_M2_ZERO elif board_value == "bananapim2plus": @@ -518,6 +520,8 @@ class Board: board_value = self.detector.get_device_model() if "OPi 5 Max" in board_value: return boards.ORANGE_PI_5_MAX + if "OPi 5 Pro" in board_value: + return boards.ORANGE_PI_5_PRO if "Orange Pi 5 Max" in board_value: return boards.ORANGE_PI_5_MAX if "Orange Pi 5 Plus" in board_value: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 80629f3..8064ae8 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -69,6 +69,7 @@ ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS" ORANGE_PI_5 = "ORANGE_PI_5" ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX" ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS" +ORANGE_PI_5_PRO = "ORANGE_PI_5_PRO" # Nano Pi boards NANOPI_NEO_AIR = "NANOPI_NEO_AIR" @@ -314,6 +315,7 @@ _ORANGE_PI_IDS = ( ORANGE_PI_4_LTS, ORANGE_PI_5, ORANGE_PI_5_PLUS, + ORANGE_PI_5_PRO ) # NanoPi