Skip to content

Commit dfb49d1

Browse files
authored
Merge pull request #271 from RealCorebb/main
Add Supported to Orange Pi 5
2 parents 491d46a + 6b3ab18 commit dfb49d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def id(self) -> Optional[str]:
166166
elif chip_id == chips.RK3568:
167167
board_id = self._rk3568_id()
168168
elif chip_id == chips.RK3588:
169-
board_id = self._rock_pi_id()
169+
board_id = self._rock_pi_id() or self._armbian_id()
170170
elif chip_id == chips.RYZEN_V1605B:
171171
board_id = self._udoo_id()
172172
elif chip_id == chips.PENTIUM_N3710:
@@ -342,6 +342,8 @@ def _armbian_id(self) -> Optional[str]:
342342
board = boards.ORANGE_PI_4
343343
elif board_value == "orangepi4-lts":
344344
board = boards.ORANGE_PI_4_LTS
345+
elif board_value == "orangepi5":
346+
board = boards.ORANGE_PI_5
345347
elif board_value == "bananapim2zero":
346348
board = boards.BANANA_PI_M2_ZERO
347349
elif board_value == "bananapim2plus":

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS"
5454
ORANGE_PI_4 = "ORANGE_PI_4"
5555
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
56+
ORANGE_PI_5 = "ORANGE_PI_5"
5657

5758
# Nano Pi boards
5859
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
@@ -220,6 +221,7 @@
220221
ORANGE_PI_3_LTS,
221222
ORANGE_PI_4,
222223
ORANGE_PI_4_LTS,
224+
ORANGE_PI_5,
223225
)
224226

225227
# NanoPi

0 commit comments

Comments
 (0)