Skip to content

Commit 9687122

Browse files
authored
Merge pull request #306 from jgdempsey/main
added Nanopi Neo 2 board
2 parents af62ea4 + 9b33be2 commit 9687122

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

adafruit_platformdetect/board.py

+4
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ def _armbian_id(self) -> Optional[str]:
398398
board = boards.NANOPI_DUO2
399399
elif board_value == "nanopineo":
400400
board = boards.NANOPI_NEO
401+
elif board_value == "nanopineo2":
402+
board = boards.NANOPI_NEO_2
401403
elif board_value == "nezha":
402404
board = boards.LICHEE_RV
403405
elif board_value == "pcduino2":
@@ -663,6 +665,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
663665
if "nanopi" in board_value:
664666
if "neo" in board_value and "SUN8I" in chip_id:
665667
board = boards.NANOPI_NEO_AIR
668+
elif "neo2" in board_value and "H5" in chip_id:
669+
board = boards.NANOPI_NEO_2
666670
elif any(x in board_value for x in ("orange pi", "orangepi")):
667671
if "zero" in board_value:
668672
if "H5" in chip_id:

adafruit_platformdetect/constants/boards.py

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
6464
NANOPI_DUO2 = "NANOPI_DUO2"
6565
NANOPI_NEO = "NANOPI_NEO"
66+
NANOPI_NEO_2 = "NANOPI_NEO_2"
67+
6668

6769
# Banana Pi boards
6870
BANANA_PI_M2_ZERO = "BANANA_PI_M2_ZERO"
@@ -250,6 +252,7 @@
250252
NANOPI_NEO_AIR,
251253
NANOPI_DUO2,
252254
NANOPI_NEO,
255+
NANOPI_NEO_2,
253256
)
254257

255258
# BananaPI

0 commit comments

Comments
 (0)