From 5584fca1caeaa2d7129bd94f5c82c168f9dc664a Mon Sep 17 00:00:00 2001 From: Marco Gulino Date: Wed, 14 Jan 2026 17:37:57 +0000 Subject: [PATCH] Support for Orange Pi 5 Ultra --- adafruit_platformdetect/board.py | 2 ++ adafruit_platformdetect/constants/boards.py | 1 + 2 files changed, 3 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 8d4cc40..a391abe 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -535,6 +535,8 @@ def _orange_pi_id(self) -> Optional[str]: board_value = self.detector.get_device_model() if "OPi 5 Max" in board_value: return boards.ORANGE_PI_5_MAX + if "OPi 5 Ultra" in board_value: + return boards.ORANGE_PI_5_ULTRA if "OPi 5 Pro" in board_value: return boards.ORANGE_PI_5_PRO if "Orange Pi 5 Max" in board_value: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index dcaab5d..03ce0a5 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_ULTRA = "ORANGE_PI_5_ULTRA" ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS" ORANGE_PI_5_PRO = "ORANGE_PI_5_PRO"