Merge pull request #388 from avenstewart/add-orange-pi-5-pro

Added support for Orange Pi 5 Pro board
This commit is contained in:
Melissa LeBlanc-Williams 2025-08-15 11:59:38 -07:00 committed by GitHub
commit 80ec116668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 2 deletions

View file

@ -209,6 +209,8 @@ class Board:
or self._ameridroid_id()
or self._vicharak_id()
)
elif chip_id == chips.RK3588S:
board_id = self._orange_pi_id() or self._armbian_id()
elif chip_id == chips.RYZEN_V1605B:
board_id = self._udoo_id()
elif chip_id == chips.PENTIUM_N3710:
@ -448,6 +450,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":
@ -515,9 +519,12 @@ class Board:
return None
def _orange_pi_id(self) -> Optional[str]:
# pylint: disable=too-many-return-statements
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:
@ -528,6 +535,8 @@ class Board:
return boards.ORANGE_PI_3B
return None
# pylint: enable=too-many-return-statements
def _sama5_id(self) -> Optional[str]:
"""Check what type sama5 board."""
board_value = self.detector.get_device_model()

View file

@ -274,6 +274,9 @@ class Chip:
if self.detector.check_dt_compatible_value("rockchip,rk3568"):
return chips.RK3568
if self.detector.check_dt_compatible_value("rockchip,rk3588s"):
return chips.RK3588S
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
return chips.RK3588

View file

@ -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
@ -553,8 +555,8 @@ _OLIMEX_IDS = (OLIMEX_LIME2,)
# https://github.com/beagleboard/image-builder
# Thanks to zmatt on freenode #beagle for pointers.
_BEAGLEBONE_BOARD_IDS = {
BEAGLE_PLAY: (("A0", "7.BEAGLE")),
BEAGLEBONE_AI64: (("B0", "7.BBONEA")),
BEAGLE_PLAY: ("A0", "7.BEAGLE"),
BEAGLEBONE_AI64: ("B0", "7.BBONEA"),
# Original bone/white:
BEAGLEBONE: (
("A3", "A335BONE00A3"),

View file

@ -68,6 +68,7 @@ RK3288 = "RK3288"
RK3566 = "RK3566"
RK3568 = "RK3568"
RK3588 = "RK3588"
RK3588S = "RK3588S"
RV1103 = "RV1103"
RV1106 = "RV1106"
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core